Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Basic Beautiful Soup Request
from bs4 import BeautifulSoup
from urllib import request
x = 4
print(x)
testlist = {1,2,3,4}
for num in testlist:
print(num)
url = 'https://github.com/davedavis'
html = request.urlopen(url)
bs = BeautifulSoup(html.read(), 'html.parser')
print(80*"*")
print(bs.h1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.