SHARE
TWEET

Untitled

a guest Jun 25th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top