Relative Content

Tag Archive for pythonweb-scrapingbeautifulsouprequest

Web scraping… can access a website’s HTML on-site but not in my IDE

I’m attempting a mini project using Python and BS4 to compare listings on Depop. I am able to use inspect on the site to see all of the fields I wish to sort through and parse, but when I try to use requests to store the URL contents in a file, all the HTML code becomes gibberish and says I don’t have authorization. Is there a way around this? I know Depop specifically has everything disallowed in their robots.txt, is that why I can’t scrape the data?