cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AndreLuiz Frequent Visitor
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

Accepted Solutions
Community Support Team
Community Support Team

Re: Webscraping ASPX page: high difficulty

@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.

3 REPLIES 3
Super User
Super User

Re: Webscraping ASPX page: high difficulty

Have you tried webpage by example?




* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
AndreLuiz Frequent Visitor
Frequent Visitor

Re: Webscraping ASPX page: high difficulty

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.
Community Support Team
Community Support Team

Re: Webscraping ASPX page: high difficulty

@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.

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 281 members 2,723 guests
Please welcome our newest community members: