https://github.com/thisisnotjustin/golden_retriever_detector
Facebook Webscraper to receive texts when golden retriever puppies are announced
https://github.com/thisisnotjustin/golden_retriever_detector
python selenium software-engineering twilio
Last synced: 3 months ago
JSON representation
Facebook Webscraper to receive texts when golden retriever puppies are announced
- Host: GitHub
- URL: https://github.com/thisisnotjustin/golden_retriever_detector
- Owner: ThisIsNotJustin
- License: other
- Created: 2023-04-11T06:03:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-19T07:43:55.000Z (about 2 years ago)
- Last Synced: 2025-01-21T20:17:16.396Z (5 months ago)
- Topics: python, selenium, software-engineering, twilio
- Language: Python
- Homepage:
- Size: 9.77 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.chromedriver
Awesome Lists containing this project
README
# Facebook-Webscraper for Golden Retriever Puppies!
This Python script uses Selenium to monitor a specific Facebook group, Asoro's Goldens, and sends text messages if specific keywords related to puppies are found in the posts of the group.
Requirements
------------------------------TWILIO (make sure to provide your own account_sid, auth_token, and phone numbers)
SELENIUM (make sure to have the chrome webdriver installed and provide the path to the executable in the service variable)
A Facebook account with access to the group you want to monitor
Usage
------------------------------Fill in your Facebook account credentials in the username.send_keys("") and password.send_keys("") lines
Fill in your Twilio account credentials and phone number in the following lines:
account_sid = '', auth_token = '', from_='', and to=''Fill in the path to your chrome webdriver in the service = Service('') line
Fill in the URL of the Facebook group you want to monitor in the driver.get("") line (currently this is the Asoro's Goldens group
Run the script

Wait for the script to find any posts with the specified keywords (currently "puppy," "born," or "pregnant") and send you a text message notification

Note: The script waits for 30 seconds after logging in to give time to approve the initial login and refreshes the page every 5 minutes to check for new posts. You can adjust the sleep time and refresh rate to fit your needs.
------------------------------