Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1268

Python • Re: Showing list contents in thonny

$
0
0
Next challenge: I scraped a URL and the contents of the soup was "forbidden" Did I miss something or is this web operator forbidding me from scraping their page?

Code:

import requestsfrom bs4 import BeautifulSoupurl = "https://www.jmbullion.com/silver/silver-coins/american-silver-eagles/uncirculated-ase/"page = requests.get(url)soup = BeautifulSoup(page.content,"html.parser")#data = soup.list()print (soup.prettify())x=1
BTW when i ran instant scraper on the same page i got a useful result.

Statistics: Posted by ras_oscar — Thu Mar 27, 2025 9:03 pm



Viewing all articles
Browse latest Browse all 1268

Trending Articles