I have no experience with python, BeautifulSoup, Selenium etc. but I\'m eager to scrape data from a website and store as a csv file. A single sample of data I need is coded
Try this:
import urllib2 from bs4 import BeautifulSoup import requests import csv MAX = 2 '''with open("lg.csv", "a") as f: w=csv.writer(f)''' ##for i in range(1,MAX+1) url="http://www.example_site.com" page=requests.get(url) soup = BeautifulSoup(page,"html.parser") print(soup.text)