This repository contains Python scripts of my attempt at web scraping exercises found on Scrapethissite.com.
-
Hockey Teams: Forms, Searching and Pagination: Scrape NHL team stats from a page with pagination and tables.
-
Oscar Winning Films: AJAX and Javascript: Scrape award-winning films information from a page with asynchronous content loading.
-
Countries of the World: A Simple Example: Scrape country information from a single page.
-
Clone this repository:
git clone git@github.com:eliasbnk/web-scraping-sandbox.git
-
Navigate to the project directory:
cd web-scraping-sandbox
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- Windows:
venv\Scripts\activate
- Mac/Linux:
source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
Run scripts to complete exercises. For example:
python teams.py
MIT License. See LICENSE.