Skip to content
Advertisement

Scraping Amazon products names

I am trying to gather the first two pages products names on Amazon based on seller name. When I request the page, it has all elements I need ,however, when I use BeautifulSoup – they are not being listed. Here is my code:

JavaScript

The links of products are not listed. If the Amazon API gives this information, I am open to use it (please provide some examples of its usage). Thanks a lot in advance.

Advertisement

Answer

I have extracted product names from alt attribute. Is this as intended?

JavaScript

Over two pages:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement