Mercury is named after the Roman god of messages/communication.
Have you ever forgotten to ping your club members when there is an ISS pass over your city? Mercury will help you from now on.
- facebook-sdk
- feedparser
- fly
- Access to a server that allows cron jobs.
- Modify the feed source to your city. You can find it at this website. Click on Location lookup, enter the details and click on the RSS button to get the feed.
- Set up a cron job to run this script periodically. Once in a day would be a good choice.
Do this in the terminal:
crontab -e
0 10 * * * python mercury/mercury/chennai.py
-> this runs the script at 10 AM everyday(change the city as per your needs).
- You need to specify an access token to post to the page. To do so,
- Create a file named access_token in the mercury directory. Do not give it a file extension.
- Create a new app on Facebook and generate a long lived access token. Refer this
- Enter the access token obtained in the file that you created in step 3.1
MIT © Chennai Astronomy Club