GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kjam/python-web-scraping-tutorial: A Python-based web and data scraping tutorial

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
bs_scraper.py
bs_scraper.py
 
 
csv_scraper.py
csv_scraper.py
 
 
family_tree.py
family_tree.py
 
 
json_scraper.py
json_scraper.py
 
 
requirements.txt
requirements.txt
 
 
scrape_netflix.py
scrape_netflix.py
 
 
scraper.py
scraper.py
 
 
start_selenium.py
start_selenium.py
 
 
xlsx2csv.py
xlsx2csv.py
 
 
xlsx_scraper.py
xlsx_scraper.py
 
 
xpath_intro.py
xpath_intro.py
 
 

Repository files navigation

PyCon Introduction to Web and Data Scraping Tutorial

A tutorial-based introduction to web scraping with Python.

Virtual Env

If you'd like to use virtual environments, please follow the following instructions. It is not required for the tutorial but may be helpful.

For more details on virtual environments

If you don't have virtual env wrapper and/or pip:

$ easy_install pip
$ pip install virtualenvwrapper

and read the additional instructions here

$ mkvirtualenv scraper_tutorial
$ pip install -r requirements.txt

LXML and Selenium

You will need both LXML and Selenium to follow this tutorial in it's entirety.

If you are using a Mac, I would highly recommend using Homebrew. It will help make pip install very easy for you to use.

  • Homebrew and LXML Installation
  • More help on Installing LXML on Mac
  • And additional suggestions for LXML on Mac

If you are using Windows, it might be worth it to run this within a Linux Virtual Machine. If you are a Windows + Python guru, please follow these installation instructions. I can help as needed but I have not programmed on Windows in more than 5 years.

  • Installing Selenium on Windows
  • Installing LXML on Windows

Please reach out to me if you have any questions on getting the initial requirements set up. Thanks!

Firefox Web Browser

Firefox comes as the default web driver for Selenium. To use Selenium easily, please download and install Firefox.

Using PIP

If you have never used PIP before you will need to sudo easy_install pip or brew install pip. PIP is a python package manager and it's really super so I highly advise using it!

Questions?

/msg kjam on freenode or @kjam on twitter

About

A Python-based web and data scraping tutorial

Resources

Readme
Activity

Stars

216 stars

Watchers

24 watching

Forks

176 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.