-
-
Save JeffersGlass/f61731bd75061bfb179e3dbec197e2d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from bs4 import BeautifulSoup | |
url = "http://jeff.glass/bs.html" | |
websiteText = requests.get(url).text | |
soup = BeautifulSoup(websiteText, 'lxml') | |
print(soup.body.ul) | |
items = soup.body.ul.find_all('li') | |
for i in items: | |
print(">>>" + i.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment