Guest User

Untitled

a guest
Dec 7th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. # Use requests to get the contents
  2. r = requests.get(url)
  3.  
  4. # Get the text of the contents
  5. html_content = r.text
  6.  
  7. # Convert the html content into a beautiful soup object
  8. soup = BeautifulSoup(html_content, 'html.parser')
  9.  
  10.  
  11. div = soup.find_all('div', attrs={'class', 'seq gbff'})
  12. for each in div.children:
  13. print(each)
  14. soup.find_all('span', aatrs={'class', 'ff_line'})
Add Comment
Please, Sign In to add comment