Skip to content

Script checks if new ads have been posted on Gumtree and sends sms notifications

License

Notifications You must be signed in to change notification settings

VikSil/Gumtree_notify_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gumtree_notify_bot

The script checks if new ads have been posted to a URL on Gumtree website. SMS notification about new ads is sent via mobile internet router.

Prerequisites

To run this script you will need:

  • D-Link DWR-921 C3 router with mobile internet connection via SIM card
  • A computer connected to that router

Setup

  1. Install the requirements by running pip install -r requirements.txt
  2. Add the Gumtree URLs that you want to be parsed to URLs variable on line 31 of main() function.
  3. Create a variables.env file and place it in the root directory. It should look something like this:
PHONE_NUMBER=12345678901
ROUTER_IP=192.168.0.1
ROUTER_USER=IAmAdmin
ROUTER_PASSWORD=ThisIsMyEncodedPasswordThatIPulledOutOfNetworkTabInBrowserInspectWindow
  1. Create an ads.txt file in the root directory
  2. Once per day the script sends a Heartbeat message to notify that it is still running as scheduled. Adjust time to your liking on line 26 of main() function.

Execution

Once above is done, you should be all set up to run the script on a schedule as a cron job.

About

Script checks if new ads have been posted on Gumtree and sends sms notifications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages