Reputation: 47
Please could you advise on how to scrape from the following URL:
... so that the result can sit in a table like this:
The issue I'm having is multiple HTML tags with the same class 'engineTable'.
Thank you!
Upvotes: 1
Views: 2045
Reputation: 2804
Try it:
import pandas as pd
df = pd.read_html("https://stats.espncricinfo.com/ci/engine/stats/index.html?class=1;filter=advanced;orderby=innings;size=200;spanmax1=07+Aug+2020;spanmin1=07+Aug+2015;spanval1=span;template=results;type=batting")[2]
Upvotes: 2