Advertisement
Guest User

Untitled

a guest
Jan 14th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1.  from bs4 import BeautifulSoup
  2.  
  3. ALL_SUBSTANCE = "https://www.erowid.org/experiences/exp_list.shtml"
  4.     substance_list = []
  5.     data = requests.get(ALL_SUBSTANCE)
  6.     content = data.content
  7.     substance_soup = BeautifulSoup(content, 'html.parser')
  8.     for link in substance_soup.findAll('a'):
  9.             print(link)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement