Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am trying to extract all the pages of data from this URL https://www.cahss.ca/surveillanceDiseaseAlert/equine/ . I am able to bring in the first 10 in a nice table with web connector and extract HTML but I need all the pages. The URL does not change as you move through the pages on the site.
I have looked at a number of the suggestions in the forum
https://www.mattmasson.com/2014/11/iterating-over-multiple-pages-of-web-data-using-power-query/
https://exceleratorbi.com.au/using-power-query-extracting-non-tabular-data-web-pages/
https://www.sumproduct.com/thought/referencing-multi-page-data-from-a-web-site-with-a-single-url
but all require the URL to have a page number reference which mine does not have.
Any help would be appreciated.
Thanks
Solved! Go to Solution.
Hello
Using just the first line of code from https://www.mattmasson.com/2014/11/iterating-over-multiple-pages-of-web-data-using-power-query/ as an example, I tried:
= Web.Page(Web.Contents("https://www.cahss.ca/surveillanceDiseaseAlert/equine/"))
This resulted in a table that I could expand with all the pages required.
As soon as I ask for help . . . the brain kicks in.
@SLR71 Hello! were you able to find a solution where the URL does not have a page indicator. Thanks!
Hello
Using just the first line of code from https://www.mattmasson.com/2014/11/iterating-over-multiple-pages-of-web-data-using-power-query/ as an example, I tried:
= Web.Page(Web.Contents("https://www.cahss.ca/surveillanceDiseaseAlert/equine/"))
This resulted in a table that I could expand with all the pages required.
As soon as I ask for help . . . the brain kicks in.
Hi @SLR71 , the link to Matt Masson's page leads to a Wordpress Error. By chance, do you have this code you're referring to? I am trying to scrape rows from the site: https://www.coronavirus.vic.gov.au/exposure-sites but it ceases at 30 records only.
Thanks heaps in advance!
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
This is great! So how do you get the data into excel?
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
45 |