daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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'})
RAW Paste Data
Top