Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AndreLuiz
Frequent Visitor

Webscraping ASPX page: high difficulty

Hello community,

I was trying to use Power Query/Get and Transform to connect to an ASPX webpage and import from it the excel file given as output after fill in some forms.

After some searching, the only tutorial I found was from Huang Caiguang in his blog post (https://pqfans.com/207.html).
The problem seems to be the parameters as __EVENTTARGET, __VIEWSTATE, among others that are sent to the website containing the information about the forms.
Obs: There is no API available from this website.

Has anyone also tried to do something similar and that could share the solution/approach?

Thanks in advance!
1 ACCEPTED SOLUTION

@AndreLuiz ,

 

If web.page() function doesn't work, I would suggest you to use python script instead. 

 

Reference:

https://docs.microsoft.com/en-us/power-bi/desktop-python-scripts

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
AndreLuiz
Frequent Visitor

Hello Matt,
Looking more carefully, it seems that what is needed is a custom connector, because there is a need to first log in the website, fill in some forms which loads another page with more forms, etc, until the excel folder is gives as output.
I think that the case in which no login is needed might be solved with the resource you indicated.

@AndreLuiz ,

 

If web.page() function doesn't work, I would suggest you to use python script instead. 

 

Reference:

https://docs.microsoft.com/en-us/power-bi/desktop-python-scripts

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Have you tried webpage by example?




* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.