Guest User

Untitled

a guest
May 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import requests, lxml
  2. from bs4 import BeautifulSoup
  3.  
  4. r = requests.get('https://www.google.co.uk')
  5. soup = BeautifulSoup(r.content, "lxml")
  6.  
  7. f = soup.find_all("p")
  8.  
  9. for p in f:
  10. print p
Add Comment
Please, Sign In to add comment