Skip to main content

taobao login

Project description

TSDK

淘宝爬虫SDK,用于淘宝开放平台或淘宝登录爬取

淘宝系列爬虫系列SDK

  • 第三版
from TSDK.api.taobao.h5 import TaobaoH5

client = TaobaoH5()
# 触发登录显示二维码,扫码后即可登录
loginStatus = client.qrLogin()
if not loginStatus:
    print('登录失败')

淘宝H5API的使用

  1. 在浏览器中找到请求的接口,例如:https://h5api.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?jsv=2.4.8&appKey=12574478&t=1535803615228&sign=fa7b5f3312f9727a25662162bf502aff&api=mtop.taobao.detail.getdetail&v=6.0&dataType=json&ttid=2017%40taobao_h5_6.6.0&AntiCreep=true&type=json&data=%7B%22itemNumId%22%3A%224362046464%22%7D 这是请求商品详情的接口

  2. 将链接中的参数提取然后传入请求中

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

tsdk-0.1.1.tar.gz (257.3 kB view details)

Uploaded Source

Built Distribution

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

tsdk-0.1.1-py3-none-any.whl (143.3 kB view details)

Uploaded Python 3

File details

Details for the file tsdk-0.1.1.tar.gz.

File metadata

  • Download URL: tsdk-0.1.1.tar.gz
  • Upload date:
  • Size: 257.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Windows/11

File hashes

Hashes for tsdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9c6132cc02e75468fa769bd6910ead9d01e4da9e943d6558dd55571999dd82d8
MD5 7e9e6163f503691a026fbc37bfbe6b46
BLAKE2b-256 7682971d87e9673971b97a11be247c7399dce0f226cde733a7af16bde57f8f69

See more details on using hashes here.

File details

Details for the file tsdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tsdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 143.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Windows/11

File hashes

Hashes for tsdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa16e5f47d2c320cb99da06624b8b91854bf75b3df6f391f28be4afd958625eb
MD5 dc8c83b3b2a7526e8d1c95c80d80e41e
BLAKE2b-256 7ea188570c4e6c8727c5fab1822090803bb610dea388d055ce39934ccf4f7d22

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