To do this, I used the following repository : instagrapi
The goal of this project is to post earthquakes photos captured with MapBox on Instagram with the details like location, magnitude, depth, etc.
This is a personal project and it's coded with our configuration.
There are no commercial purposes.
pip install -r requirements.txt
python run.py
To test our bot, you should change the config file by adding:
-
Path for images that will be generated (optional)
-
Path for json file that will store the earthquakes detected and posted (optional)
-
You can put your hashtags if you want (optional)
-
ACCESS_TOKEN : Your mapbox access token (you need just sign up on MapBox)
-
ACCOUNT_USERNAME, ACCOUNT_PASSWORD : Your Instagram account (username and password)
The data comes from the site depremneredeoldu.com which use itself the data of Kandilli Observatory and Earthquake Research Institute.