Skip to main content

A tiny package to extract product id

Project description

A extractor to extract product id from an provided url of specific platforms.

Installation

pip install product-id-extractor-yimian

Examples

from product_id_extractor import Extractor

# Initialize Extractor Object
# Leave platform parameter None to use auto detection
example = Extractor("https://item.taobao.com/item.htm?spm=a230r.1.14.141.34655b0c4rO8sl&id=637790875524&ns=1&abbucket=16#detail",platform='')

# specify platform if needed by passing it to Extractor object
example.platform = 'taobao'

# call Extractor.extract() function to get product_id
example.extract()

print(example) # 637790875524

Notes

  1. Only support URL of items from following platforms:
    1. taobao
    2. tmall
    3. jd
    4. suning
    5. amazon

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

product-id-extractor-yimian-0.0.4.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

product_id_extractor_yimian-0.0.4-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file product-id-extractor-yimian-0.0.4.tar.gz.

File metadata

  • Download URL: product-id-extractor-yimian-0.0.4.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.6.4

File hashes

Hashes for product-id-extractor-yimian-0.0.4.tar.gz
Algorithm Hash digest
SHA256 feac430507b597409b2a941564f7cde892464100a7ba97a0008916e04a47b8a2
MD5 afe4a5c61138d57701ad07ec56439b86
BLAKE2b-256 4a572a4b9b3a42c067f771512c19940693b67c0661e033fb635ac31e3063554e

See more details on using hashes here.

File details

Details for the file product_id_extractor_yimian-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: product_id_extractor_yimian-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.6.4

File hashes

Hashes for product_id_extractor_yimian-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e5adf739a817fc89f7407ccb643e59e2e50170100b55ca57e4b022834ef533ee
MD5 a00282b65af2db18e2bf4c672191b866
BLAKE2b-256 e354fc83c8e2e1e0caab38de65567d842202665b0d5bbfb67aaf55ab37723fd0

See more details on using hashes here.

Supported by

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