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=None)

# 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(.co.uk)

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: product-id-extractor-yimian-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 60c26c307aa847f051f5e36f050fa7249e4ec681a5aa5a69f42c7845bc216d00
MD5 4e8ec1a42ad98942edf72e38780067f4
BLAKE2b-256 7ce3d3c31e342092dcf01e3a258d48ef5fe92df6f7b9c204221a0041524eb90d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: product_id_extractor_yimian-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91060cef43008191b792c8f5080b2c3b0e5507acbbedd3020c03b94cb1fdc492
MD5 0d2e39763b102a413d3cfc7070101ddc
BLAKE2b-256 277c7f222efe8d94c9e680b99c6ce79f72b37c99922b820bb7c720e4a5f002f7

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