Skip to content

Download images from SpaceX and Hubble and upload them to instagram

License

Notifications You must be signed in to change notification settings

mukhametdinovigor/Space_Instagram

Repository files navigation

Space Instagram

These are three scripts:

  • fetch_spacex.py download images from SpaceX api
  • fetch_hubble.py download images from Hubble api
  • upload_instagram.py prepare downloaded images and upload them to instagram

How to install

Images downloading does not require any keys. To upload images you need instagram login and password. Put them into .env file, and assign login to the INSTAGRAM_LOGIN variable, assign password to the INSTAGRAM_PASSWORD variable. It should look like this:

INSTAGRAM_LOGIN='Your_Login'
INSTAGRAM_PASSWORD='Your_Password'

Python3 should be already installed. Then use pip (or pip3, if there is a conflict with Python2) to install dependencies:

pip install -r requirements.txt

Run scripts in command line:

python3 fetch_spacex.py
python3 fetch_hubble.py
python3 upload_instagram.py

Project Goals

The code is written for educational purposes on online-course for web-developers dvmn.org.

About

Download images from SpaceX and Hubble and upload them to instagram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages