This Python script automates the extraction of champion statistics and images from the League of Legends Wiki page. It utilizes web scraping techniques with the Selenium library, Chrome WebDriver and bs4
- Scrapes the League of Legends Wiki page to extract champion statistics
- Stores the extracted data in a CSV file for further analysis or processing.
- Python 3.x
- Selenium library
- Chrome WebDriver
- bs4
- Install Python 3.x from the official website: https://www.python.org/downloads/
- Install the Selenium library by running the following command:
pip install selenium
- Download the Chrome WebDriver compatible with your Chrome browser version and operating system. Place the WebDriver executable in your system's PATH or the same directory as the script. WebDriver download link: https://sites.google.com/a/chromium.org/chromedriver/downloads
- Clone or download this repository to your local machine..
- Run the script using the following command:
python champion_stats_extractor.py
- The script will start extracting champion statistics
- Once the process is complete, the extracted data will be stored in a CSV file named
champion_stats.csv
.
Feel free to modify the script according to your needs, such as adding additional data extraction or customization options.