Skip to main content

Ecommerce Retailer Scraper

The purpose of this project is to create a library of spiders/scraper for major online ecommerce retailer shop such as Amazon, Sephora, Walmart, and many other brands. The app will return product information and review as well in JSON format.

The extracted data you can use for market research, product design, consumer buying impulse...The sky is the limit.

Instruction:

  1. How to install:
pip install ecom-scraper
  1. How to use:
from retail_scraper.spiders.sephora import Sephora

# Sephora spider take either product url or productid Sephora(url=url, productid=product_id)
url = 'https://www.sephora.com/product/huda-beauty-liquid-matte-ultra-comfort-transfer-proof-lipstick-P479843'
product_id = 'P479843'
sephora = Sephora(url=url)
# Or
sephora = Sephora(productid=product_id)
sephora.scrap_product_info()  # Instantiate the Scrap product function
info = sephora.product_info  # product info and its variants will be stored in product_info
sephora.scrap_product_reviews()  # Instantiate The Scrap product reviews function
reviews = sephora.product_reviews  # All product reviews will be stored in product_reviews

Supported Scrapers

Add a New Spider or Feature

If you want to add a spider/scraper to the app or even a new feature please use the link bellow or open it as an issue in this github repo. Most upvoted feature will be added to the app.

Add new spider or feature

Upcoming Scraper/Spiders

Contribution

You are most welcome to contribute to this project and create pull requests.

Credit

  • @diemonster for all his comments, feedbacks and instruction.
  • Everyone in the #python community in the libera IRC

Disclimar

This library is built for educational puposes ONLY, use at your own risk.

Metadata

Release files for retail-scraper 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for retail-scraper 1.1
File Size Uploaded Provenance Actions
retail_scraper-1.1.tar.gz 5.5 kB Without provenance Details for retail_scraper-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for retail-scraper 1.1
File Interpreter ABI Platform Actions
retail_scraper-1.1-py3-none-any.whl Python 3 none any Details for retail_scraper-1.1-py3-none-any.whl

Total release size: 12.1 kB

Release files / retail_scraper-1.1.tar.gz

Download URL retail_scraper-1.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b11485ecf3a937e6f41b12043dfabeb97fcd37e2deee16aa2156c2435743713c
BLAKE2b-256 checksum
How to use checksums
583cd9d3c0efcac8da5d2564074ac63401729d639c21e5fe43bc4c6951a46447
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.9

Release files / retail_scraper-1.1-py3-none-any.whl

Download URL retail_scraper-1.1-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3042bef764e0ddc54c9dfb206a652753c0799c207d7504abfeed0fa3077ddce
BLAKE2b-256 checksum
How to use checksums
427854980235a9fb208fcdad16a2b88b20db54b5ec0ef7bdd359482f5db783fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.9

Security for retail-scraper 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page