/mma-fight-odds

Primary LanguagePythonOtherNOASSERTION

MMA Events | Fight Odds Scrapper

Scrapper which is scrapping event details and odds from MMA recent events.

Installation

1. Installing individual package

install selenium.

pip install selenium

install webdriver-manager.

pip install webdriver-manager

install beautifulsoup4.

pip install beautifulsoup4

install Flask-BasicAuth.

pip install Flask-BasicAuth

2. Using requirements.txt file.

pip install -r requirements.txt

Database

Use SQLite database. DB mma_odds.db

Run Script

Use Python Command line to run script.

1. Run Scrapper

Use args as Limitdate to scrappe. If not set args, Default value(2013-01-01) will be set for Limitdate.

python3 run_scrapper.py 2022-01-01

2. Export data to csv file.

Use args as filename to save as file. If not set args, Default value(current time:2023-07-30_8_12_36.csv) will be set for filename.

python3 export_csv.py mydata.csv