Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 1.26 KB

File metadata and controls

18 lines (12 loc) · 1.26 KB

L'Italia di Andrea Lorenzon

Live on alexperathoner.github.io/ItaliaAndreaLorenzon/.

Andrea Lorenzon is an Italian youtuber who has been uploading videos showing small towns in an interesting way. These videos are available here.

How it works

A Github Action is run every couple of days, and runs a python script, which does the following things:

  1. Use the Youtube API to get info about the videos in the playlist.
  2. Parse the town's name from the title of each video
  3. Use the Mapbox geocoding API to get the coordinates of each town
  4. Create a geojson object with a point for each video, and adding its corresponding video url and town name to their properties
  5. Save the geojson file

The website is a simple mapbox map showing Italy and using the generated geojson file as data source. When clicking on a marker a popup is generated, using the properties to show an embedded video.