mercredi 20 octobre 2021

How print multiple page of content using Python from website?

I had the below code but it only print the 1st page content (25 records). By right it has a total of 53 pages. How could I do in order to print out the all 53 pages records?

import requests
import pandas as pd
url = 'https://www.sebi.gov.in/sebiweb/home/HomeAction.do?doListing=yes&sid=3&ssid=15&smid=10'
html = requests.get(url).content
df_list = pd.read_html(html)
df = df_list
print(df)

test




Aucun commentaire:

Enregistrer un commentaire