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.2.tar.gz (259.6 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.2-py3-none-any.whl (144.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsdk-0.1.2.tar.gz
  • Upload date:
  • Size: 259.6 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.2.tar.gz
Algorithm Hash digest
SHA256 7054fe33c9d4a3cb54a350670959091759e0e56175948c294c0cfae04feb913a
MD5 8d3b7d0901dfae3250e352a46727975a
BLAKE2b-256 2df752bc52b763b394607dfb5a3705d3c2ff815d8fbb60921e9cf97413962230

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tsdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 144.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f46205dcbde4629dc133a16f2365f9d3b1c9d87601bdf35932d9fe747edd625
MD5 89b5da330da0932af570f4e2fa95fff1
BLAKE2b-256 674d436e3c6cb1ccb594810b7ac1d0bcb7f6bf72e03c692a72af758543e105b2

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