Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. with open('lp.csv', "w", encoding="utf-8") as lp:
  2. csv_writer= csv.writer(lp)
  3.  
  4. csv_writer.writerow(['Title', 'Excerpt', 'Slug', 'Author', 'Category'])
  5.  
  6. for urls in csv_reader:
  7. links = urls[6]
  8. pages = requests.get(links)
  9. soup = BeautifulSoup(pages.text, 'html.parser')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement