Etsy Scraper
Retrieves info from Etsy using UrlLib and Beautiful Soup and returns the data in JSON.
Note: This is a web scraper, therefore, it will work until Etsy changes the tags we use to locate and extract the different fields in the page. Be aware of that if you plan on using it in any large scale project. Please see the Contribution section to help me keep it up-to-date!
Installation
Run the following to install:
pip install etsy_scraper
Usage
To retrieve product data:
from etsy_scraper.product_scraper import productScrape
# Retrieve product data from URL
productScrape(PRODUCT_URL)
# Returns
# {
# "id": id,
# "title": title,
# "description": description,
# "currency":currency,
# "price":price,
# "materials":materials,
# "images":images,
# }
To retrieve vendor data:
from etsy_scraper.vendor_scraper import vendorScrape
# Retrieve vendor data from URL
vendorScrape(VENDOR_URL)
# Returns something like
# {
# "name": name,
# "subtitle": subtitle,
# "location": location,
# "vendor_since": vendor_since,
# "number_of_sales": number_of_sales,
# "banner_image": banner_image,
# "vendor_image": vendor_image,
# "featured_products": featured_products,
# "all_products": all_products,
# }
Contribute
If you plan on using / are using the tool and notice that Etsy updated in a way that breaks this code, please notify me, either by raising an issue or submitting a PR.
License
This code is distributed under the MIT license.
Metadata
Release files for etsy-scraper 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| etsy_scraper-0.0.1.tar.gz | 4.3 kB | Without provenance | Details for etsy_scraper-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| etsy_scraper-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for etsy_scraper-0.0.1-py3-none-any.whl |
Total release size: 9.2 kB
Release files / etsy_scraper-0.0.1.tar.gz
| Download URL | etsy_scraper-0.0.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62a6e126771ce5adb64744192907b34eff4ecc2758f19eaf2fd3adc4941e5576
|
|
BLAKE2b-256 checksum How to use checksums |
0713c0226fadf582e8756c0ca681181b1e1df6ffd865a12bb1f063e77d2304b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
|
Release files / etsy_scraper-0.0.1-py3-none-any.whl
| Download URL | etsy_scraper-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ace079c7ccbe85f1ac071d118bf7ec07410e6f17d21e88c9a6b9bb6e8f64d81c
|
|
BLAKE2b-256 checksum How to use checksums |
5ab08e30248f5079d81bb16fc45fdbee8145130d51c1143b4c57fd4a68273774
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
|
Security for etsy-scraper 0.0.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.