Skip to content

Instantly share code, notes, and snippets.

@JeffersGlass
Created September 13, 2020 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeffersGlass/463d5b78b7ea1a6f359ed30cc5c96dc4 to your computer and use it in GitHub Desktop.
Save JeffersGlass/463d5b78b7ea1a6f359ed30cc5c96dc4 to your computer and use it in GitHub Desktop.
import requests
from bs4 import BeautifulSoup
url = "https://www.transitchicago.com/traintracker/arrivaltimes/?sid=40090"
websiteText = requests.get(url).text
soup = BeautifulSoup(websiteText, 'lxml')
print (soup.prettify())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment