This repo contains notebooks and other resources that outline how to get started with scraping in Python using Google Drive's Colab notebooks.
This session explores the different roles that scraping can play in a story, introduces Google Colab as a platform for writing and running Python code, and explains key coding concepts that you will need to write scrapers: variables, printing, comments, lists, looping and indices.
- Notebook 1: First steps in Colab and Python
- Session 1 tasks
- All slides for session 1 are in the session1 folder
- Notebook 2: Using libraries in Python
- Bonus notebook on dictionaries
- Notebook 3: An example scraper using Beautiful Soup to drill down into scraped webpages
- Session 2 tasks
- All slides for session 2 are in the session2 folder
- Notebook: the 8 line scraper
- Bonus notebook: Creating functions in Python
- Bonus notebook: Scraping JSON in Python