0

I wanted to try use the method described here (in the updated answer) to scrape the table on this page.

When I inspect the webpage, I can see there is a table on the page. However when I try to use the method from a previous SO answer by doing:

for i in range(10,15):
    webpage = 'http://www.peptide-ligand.cn/show/' + str(i)
    r = requests.get(webpage)
    df_list = pd.read_html(r.text) # this should all the tables in webpages to a list according to previous SO answer
    df = df_list[0]
    print(df)

The output is

raise ValueError("No tables found")
ValueError: No tables found

But I can see from inspecting the page that there is a table? Could someone point to where I'm going wrong?

I saw this answer, but I don't understand why i'd have to use selenium, and the above method doesn't work.

Slowat_Kela
  • 1,377
  • 2
  • 22
  • 60

0 Answers0