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

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

Reply
ludovicLaurent
Frequent Visitor

scrapping notebook python

HI  

    i have created a python program on my computer to scrap an url , i works 

 

    but if i put in a pyspark notebook , i have a 403 error .

    I tried to add header   in the request.get command  , but same result : error 403 

 

    Have you some idea to solve this problem 


   my code is 

import requests

print(response)
print(response.content)

thanks
2 REPLIES 2
Anonymous
Not applicable

Hi @ludovicLaurent,

Any update on this? Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi @ludovicLaurent ,

The 403 error code meaning access to the requested resource is forbidden. (the server understood the request, but will not fulfill it, if it was correct)

HTTP 403 - Wikipedia

AFAIK, the notebook is works on the cloud-based sandbox with required environment and libraries. Did these operations require any additional authrisons or need to write data to the current local folder/file? (the pyspark notebook sandbox not allowed to operate with its physical path)

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric 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.