Skip to content

A project that scrapes live score from cricbuzz and sends it to specified numbers as an SMS.

Notifications You must be signed in to change notification settings

hiteshk5/cricbuzzToSMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cricbuzzToSMS

cricbuzzToSMS is a program that scrapes live match details from CricBuzz using Selenium and sends it as an SMS using Fast2SMS API

Installation

  1. Use the package manager pip to install selenium.
pip install selenium
  1. Install the firefox geckodriver. You can follow this guide for installation on Linux. Guides for Windows and Mac are available on the internet.

  2. Clone the repo on your computer

Usage

  1. Create an account on Fast2SMS.
  2. In DEV API section, copy the API Key. Example API key is :
"weBQKBrtZzLnD2ZUEnUYJIO40zZGnjgZm3BA1SAUd0qZ56gHm0k3X45DWR9c" 
#Note: This key is an example key only. It will not work when trying to run the code.
  1. Open keys.py and paste the API Key. Example
API_KEY = 'weBQKBrtZzLnD2ZUEnUYJIO40zZGnjgZm3BA1SAUd0qZ56gHm0k3X45DWR9c'
  1. Add the numbers you want to send the SMS to. Example:
'numbers': '9999999999, 7777777777, 6666666666'   
  1. To only run the scrapper: Run scrapper.py . This will print the scores on the terminal.
python3 scrapper.py
  1. To run scrapper + send SMS: Run main.py
python3 main.py

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

A project that scrapes live score from cricbuzz and sends it to specified numbers as an SMS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages