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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors