Python Forum
New in Python Amazon Scraping - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: New in Python Amazon Scraping (/thread-28209.html)



New in Python Amazon Scraping - brian1425 - Jul-09-2020

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())


***************************************************************


RE: New in Python Amazon Scraping - snippsat - Jul-10-2020

(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.