Python Forum

Full Version: New in Python Amazon Scraping
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Smile ,

I'm new in Python programmation. I have followed a tutorial and written the code down below. (in between the stars)
I don't understand why only a part of the code in scraped.

I was looking to scrape the "productTitle" id.
I can find in on the source code but not when Scraping.

Can anyone explain me why ?
And what should I do to scrape the whole code and not only a part ?

Thx


***************************************************************
import requests
from bs4 import BeautifulSoup

URL = "https://www.amazon.fr/Zoom-F1-LP-IF-Console-denregistrement/dp/B079NWS24D/ref=sr_1_2?__mk_fr_FR=%C3%85M%C3%85%C5%BD%C3%95%C3%91&dchild=1&keywords=zoom+f1&qid=1593959235&sr=8-2"
r = requests.get(URL)

soup=BeautifulSoup(r.content, 'html5lib')
print(soup.prettify())


***************************************************************
(Jul-09-2020, 03:19 PM)brian1425 Wrote: [ -> ]Can anyone explain me why ?
And what should I do to scrape the whole code and not only a part ?
Look at Web-scraping part-2 under:
snippsat Wrote:JavaScript,why do i not get all content Wall
Search this forum eg my username and Selenium you will find a lot,think i help with eBay,AliExpress,...ect sites before.