Blogspot Tracker is a simple python script that can be used to keep track of your favorite blog for new updates. This is especially useful for blogs that don't have subscriptions enabled for them. When this script runs, it creates a system tray icon for windows users were one can choose to start or stop checking their blog for update. Currently the tracker is configured to check every 12 hours but this can be changed. On a detected update, the script will send an email notifying the user based on what is specified in the config.py file.
- Requires Windows and is most recently tested on Windows 10
- Requires an installation of Python
- Clone to repository to your local machine
- Create a virtual environment. See here for more details on how to setup virtual environments
- Start your virtual environment and run
pip install requirements.txtin the cmd line
In order to send automated gmails, it is necessary to get a OAuth 2.0 access token. This will allow the script to access and send emails from your account.
- Go to this link and sign up for a Google Cloud Developer account. Note it will ask you to put in your payment information for a free trial but you can skip this by clicking this link
- At the top search bar type in
Gmail Apiand select the first result - Click enable to activate the Gmail API
- On the top right of the screen click
Create Credentials - Select User data and click next. Type in an app name and add in your email where requested. Select save and continue.
- On the scopes screen click
Add or Remove Scopesand then search forGmail API. Selectgmail.sendandgmail.readonly - Finally select Desktop App for Application type and click
Done - After it should show you your keys and give you the option to download your token. Download your token to the project's root directory and name it
credentials.json.
- In config.py replace email with your email you used for the Gmail API, replace blog with the link you want to track, and past date as the date of the most recent blog post that you are tracking.
- Set
Toas the email address that your notifications will be going to. - Lastly we need to set our script to correctly find the date on the website. Use inspect element on the date of the blog's most recent post and edit line
134inmain.pyto grab the date. You may need to edit the date formats used in the code if they differ from what the blog you are tracking has. - With that when you run the program, either in python or using the provided scripts. A small email icon should appear in your status bar and you should be able to start or stop tracking the blog by right clicking the icon and selecting the corresponding setting.
- 0.1.1
- Fixed bugs with message sending
- 0.1
- Initial Release
This project is licensed under the MIT License - see the LICENSE.md file for details