Forum Discussion

KM007's avatar
KM007
Icon for Helper II rankHelper II
6 years ago

Web scraping to access tab2

Hi Superusers

 

I am trying to scrape this site  -   

https://www.hl.co.uk/funds/fund-discounts,-prices--and--factsheets/search-results?sectorid=121&start=0&rpp=20&lo=0&sort=fd.full_description&sort_dir=asc 

for fund prices.  In the pic below fund price is on (GREEN box) Tab2 and I'd like to create a table like that in the BLUE box. Sectorid (RED box) is a choice in the URL I like the query to loop the various ids. Firstly, if I could find a way to access TAB2 I could then tackle the next part.

 

Prices & Yields tab

 

 

If I go to HOME tab > New source > Web > enter the URL above. Then if I click on Add table using examples I am unable to access Prices & yields tab so not able to build with an example. Is there another way to access it ðŸ¤”

 

Below is the website source information.

Prices & yields is data-index="2" or id="2".

The table is class = "results__table"

 

 

I have hit a brick wall with this and hoping someone in the community can find a way through?

Much appreciate any help!

Thanks

1 Reply