Skip to main content

Python API for downloading Google Earth View images

Project description

python-earth-view

Google Earth View is a gallery of at least 2,604 visually appealing satellite images. Each has a resolution of 1800x1200, making them suitable wallpapers or placeholder images. For example, there's a Chrome extension that displays a new Earth View image each time you open a new tab, and a GNOME extension that regularly sets the wallpaper to a new Earth View image.

I wrote this package to make it a little bit easier to hit the ground running with Earth View images. It provides a command-line tool and Python API that make it easy to download images and access their metadata.

How to use

In Python

from earth_view import EarthViewImage

By default, initializing an EarthViewImage will download a random image:

>>> my_image = EarthViewImage()
>>> print(my_image.geocode("establishment"])
Volcán Isluga National Park

If you want, you can request a specific image ID:

# id parameter can be int or str
specific_image = EarthViewImage(1004)

Save it for later:

# if you don't specify path, default is your current working directory
EarthViewImage().save(path="/home/user/Desktop")

Command-line

The earth-view command makes it easy to download a new Earth View image.

# download a random image to the current directory
earth-view 

# download a specific image to your Downloads folder, overwriting if file exists
earth-view ~/Downloads --id 1004 --overwrite

A word of warning

This package entirely relies on a free service hosted by Google. At any time, Google may decide to end the service. Enjoy it while it's here.

Contributing

Feel free to file an issue, submit a pull request, or reach out to me directly. I'd love to hear from you.

License

This code is licensed under GPLv3 or any later version. See LICENSE.md for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

earth_view_api-0.0.1.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

earth_view_api-0.0.1-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file earth_view_api-0.0.1.tar.gz.

File metadata

  • Download URL: earth_view_api-0.0.1.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for earth_view_api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4ab20148a2001c92a978d90c16a90f0ac221d4e36d39d85ad28cf050ed4b2be5
MD5 014b85e179c492edc6b6f8ccb070744e
BLAKE2b-256 ec58d38829508c11be5447fd7cf78cc6d791e3575c215bf62ab5940d31750fc0

See more details on using hashes here.

File details

Details for the file earth_view_api-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: earth_view_api-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for earth_view_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa9b6120bb31538cc01d22a0047ea415d7c5ac834fd3b8cd5ba2f45e71140aee
MD5 fc8c8e25a5789358dd5c8f356d97b405
BLAKE2b-256 46caea1831d41e1d94c5ed4e97675a1e5f08203a0e9e47594bad2b2fb6afa022

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page