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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
setis
Post Partisan
Post Partisan

Bypass cookies consent on web scraping

Dear experts, 

 

I'm trying to extract a table from here https://www.nordea.dk/privat/produkter/kort/valutakurser.html , but the only thing I'm able to see is data related to the cookies consent pop up. 

 

Is there any way to bypass this?

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

I believe you can pass the cookie values in the header to avoid that like this. You would have to look at the site to get the cookie name and value for it.  I copied this from a previous solved post - https://community.powerbi.com/t5/Desktop/Passing-Cookie-using-Web-Contents-in-PowerBI-Desktop/td-p/4...

 

= Web.Contents("https://myapp.example.com/api/test.php", [Headers=[Cookie="PHPSESSID=123abc"]])

 

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Same problem here.
I'm unable to fetch data from https://www.synology.com/fr-fr/compatibility?search_by=category&category=hdds_no_ssd_trim

Blocked by that popup

 


This is getting more en more annoying for connections from Europe because of new legislations that require user consent for accepting cookies

This is going to completely break getting content from web in Power Query.

phsc
Regular Visitor

Hi  Setis

 

Di you solve you problem?

 

i am trying to extract dasta from the same url as you, but I am stuck on Cookie consent tables.....

Hi @phsc sorry, I did not. Please let me know if find a way. 

mahoneypat
Microsoft Employee
Microsoft Employee

I believe you can pass the cookie values in the header to avoid that like this. You would have to look at the site to get the cookie name and value for it.  I copied this from a previous solved post - https://community.powerbi.com/t5/Desktop/Passing-Cookie-using-Web-Contents-in-PowerBI-Desktop/td-p/4...

 

= Web.Contents("https://myapp.example.com/api/test.php", [Headers=[Cookie="PHPSESSID=123abc"]])

 

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.