Cant post my code because I'm new and it has links?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from bs4 import BeautifulSoup from urllib.request import urlopen content = urlopen(url).read() soup = BeautifulSoup(content) print ( soup.prettify()) #print(title) #>> 'title'? Python For Beginners #print soup.title.string #>> ? Python For Beginners print (soup.p) |