I was working on scraping data using Beautiful soup on multiple pages for the following given website and was able to do it. Can I scrape data for multiple pages using Pandas. Following is the code to scrape a single page and the URL has link to other pages as http://ift.tt/2ylrNAT .
import pandas as pd
url = 'http://ift.tt/2zvnHrp'
dframe = pd.read_html(url,header=0)
dframe[0]
dframe[0].to_csv('out.csv')
Aucun commentaire:
Enregistrer un commentaire