Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.71 KB

README.md

File metadata and controls

21 lines (17 loc) · 1.71 KB

Street View Wallpaper Downloader

All I wanted was that my wallpapers are random Street View images. Google provides an API to download Street View photos, but the maximum size is 640x640. This script hacks around that limitation by taking a screenshot of images as they are rendered in a browser.

Requirements

Usage

  1. Clone or download this repo.
  2. Edit save_random_view.py to add your key into API_KEY variable.
  3. Edit clean_street_view.html to add your key into https://maps.googleapis.com/maps/api/js?key=ADD_YOUR_KEY-HERE&callback=initPano
  4. Run python save_random_view.py
  5. Random street view clean image will be in images folder

Details

Script uses polygons (formatted as a set of coordinates) to limit the area of images. Current repo has 2 polygons roughly covering all land on Earth. You can use custom polygons to limit the images to more specific regions.

Because there isn't a smart way to get a valid Street View coordinate, the script may take several seconds to finish. Smaller polygons may help.