pythonweb-scrapingbeautifulsouphtml5lib

real struggle trying to parse a table


I am trying to parse a table (of prices) from a web and it is turning out a real struggle

here is the web

url='http://www.zonebourse.com/AEX-7959/composition/'

with bs4:

r = requests.get(url)
data = r.text
soup = BeautifulSoup(data,"html5lib")
tables =soup.find('table',id='ALNI4')

print tables

with html5lib:

df=pd.read_html(url)
print df

In both cases no tables found, could anyone help me parse the table or at least understand what is the problem?

ValueError: No tables found

I would like to discard the option of xml if possible, having problems to install so dont use at all.

Thank you in advance


Solution

  • Seems you are looking for

    url='http://www.zonebourse.com/AEX-7959/composition%E2%80%8C%E2%80%8B/'