Skip to content

Instantly share code, notes, and snippets.

View michaelpetik's full-sized avatar

Michael Petik michaelpetik

  • Levvel
  • Pennsylvania
View GitHub Profile
@phillipsm
phillipsm / gist:0ed98b2585f0ada5a769
Last active November 25, 2022 14:02
Example of parsing a table using BeautifulSoup and requests in Python
import requests
from bs4 import BeautifulSoup
# We've now imported the two packages that will do the heavy lifting
# for us, reqeusts and BeautifulSoup
# Let's put the URL of the page we want to scrape in a variable
# so that our code down below can be a little cleaner
url_to_scrape = 'http://apps2.polkcountyiowa.gov/inmatesontheweb/'