https://github.com/fazal-coder/population_scrape
In this program, the data table is scraping from the population website.
https://github.com/fazal-coder/population_scrape
pandas-python python3 selenium-python
Last synced: 11 months ago
JSON representation
In this program, the data table is scraping from the population website.
- Host: GitHub
- URL: https://github.com/fazal-coder/population_scrape
- Owner: fazal-coder
- Created: 2023-11-01T22:01:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-02T15:42:14.000Z (over 2 years ago)
- Last Synced: 2025-03-29T13:12:29.171Z (about 1 year ago)
- Topics: pandas-python, python3, selenium-python
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Population Data Scraper
This Python script uses Selenium to scrape population data by country from the Worldometer website and stores it in an Excel file.
## Instructions
1. Install the required dependencies by running `pip install -r requirements.txt`.
2. Make sure you have Google Chrome installed and download the appropriate ChromeDriver executable for your system from [https://chromedriver.chromium.org/downloads](https://chromedriver.chromium.org/downloads).
3. Edit the `webdriver_path` variable in the script to point to the location of the downloaded ChromeDriver executable.
4. Run the script. It will open a Chrome browser, scrape the data, and save it to an Excel file.
5. The scraped data will be saved in a file named `population_data.xlsx` in the same directory as the script.
## Requirements
- Python 3.x
- Chrome browser
- ChromeDriver executable (downloaded and specified in the script)
## Dependencies
- Selenium
- pandas
## Usage
```python
python population_scraper.py