Guest User

Untitled

a guest
Nov 20th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. <div class="person" age="52"</div>
  2.  
  3. soup = BeautifulSoup(source, "lxml") #source is the page.text
  4. age = soup.find("div", { "class": "person" })["age"]
Add Comment
Please, Sign In to add comment