Skip to main content

Scraper for Amazon

Project description

AmazonScraper

Installation

pip install azs

OR

clone this repository and

pip install -r requirements.txt

python setup.py install

Usage

Initialization with requests

from azs import AmazonScraper

scraper = AmazonScraper()

Initialization with undetected-chromedriver

from azs import AmazonScraper
from selenium.webdriver.chrome.options import Options
import undetected_chromedriver.v2 as uc

options = Options()
options.add_argument('--headless')
options.add_argument('--disable-gpu')

driver = uc.Chrome(options=options)

scraper = AmazonScraper(driver=driver)

Initialization with Selenium

from selenium.webdriver.chrome.options import Options
from selenium import webdriver

options = Options()
options.add_argument('--headless')
options.add_argument('--disable-gpu')

driver =webdriver.Chrome(executable_path='D:\\chromedriver.exe', options=options)

scraper = AmazonScraper(driver=driver)

Get a product

product = scraper.get_product("https://www.amazon.fr/gp/product/B08VH8C3WZ")
print(str(product))

"""

Title : Western Digital WD Red Plus 3.5" 4000 Go Série ATA III
Price : 119.13 €
Evaluation : 4.6
Evaluation count : 1
Saving percentage : 10

"""

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azs-1.0.5.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file azs-1.0.5.tar.gz.

File metadata

  • Download URL: azs-1.0.5.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for azs-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ac0fc12562b43cbd65131d8732994e4a9935aa4fff9721d6123de65afe58937c
MD5 38b77fe5d1d7372db1520361d05d4c50
BLAKE2b-256 464dcb924fdc85231fb1d619eaf30e7ab7d17e423bd91fd6f9a5237a7a669135

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page