Skip to main content

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. 将链接中的参数提取然后传入请求中

Metadata

Release files for TSDK 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TSDK 0.1.2
File Size Uploaded
tsdk-0.1.2.tar.gz 259.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TSDK 0.1.2
File Interpreter ABI Platform
tsdk-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 403.8 kB

Release files / tsdk-0.1.2.tar.gz

Download URL tsdk-0.1.2.tar.gz
Size 259.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7054fe33c9d4a3cb54a350670959091759e0e56175948c294c0cfae04feb913a
BLAKE2b-256 checksum
How to use checksums
2df752bc52b763b394607dfb5a3705d3c2ff815d8fbb60921e9cf97413962230
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Windows/11

Release files / tsdk-0.1.2-py3-none-any.whl

Download URL tsdk-0.1.2-py3-none-any.whl
Size 144.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f46205dcbde4629dc133a16f2365f9d3b1c9d87601bdf35932d9fe747edd625
BLAKE2b-256 checksum
How to use checksums
674d436e3c6cb1ccb594810b7ac1d0bcb7f6bf72e03c692a72af758543e105b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Windows/11

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page