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.3.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.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: product-id-extractor-yimian-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 3802c892a6d358275c9aac609e9836e0d2e7a114f84cf80cc3a02109377197e5
MD5 4a7504faea198e9f7b41e3cf0570b02f
BLAKE2b-256 851894358ef484c1947920d3f43e3cdaf9f22a83efc88da94fc726b6984a777f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: product_id_extractor_yimian-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 77720ddc227f17acee796059395fdc3f874082c3c1ad5fa0a90658e243d5c512
MD5 a7b08f8587b36048cbced83a1c37d300
BLAKE2b-256 a440f1cfdcf0cc97b14a560fc3923629517f6f15ecaf31878fa528f877c23450

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