import requests | |
import urllib.request | |
import time | |
from bs4 import BeautifulSoup | |
# Set the URL you want to webscrape from | |
url = 'http://web.mta.info/developers/turnstile.html' | |
# Connect to the URL | |
response = requests.get(url) | |
# Parse HTML and save to BeautifulSoup object¶ | |
soup = BeautifulSoup(response.text, "html.parser") | |