Giter Club home page Giter Club logo

spiders2's Introduction

spiders2's People

Contributors

coder-fly avatar jingttkx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spiders2's Issues

头条网页版貌似失效了?

试用了下头条网页版,生成signature,爬取指定用户的feed列表

输入:https://www.toutiao.com/c/user/token/MS4wLjABAAAAP09LrX61xFpIWrgGdBDqkp-5om9Lans_kuIZ_ipAGRE/?source=feed&log_from=eaf124025aa9e_1651888131770

生成的signature: _02B4Z6wo00101Bz3DRAAAIDCpOVyFIga6AQc3wmAAGVOb8

import requests

headers = {
    "user-agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36",
    'accept': 'application/json, text/plain, */*',
    'referer': 'https://www.toutiao.com/?wid=1641028484634',
}

uid = 'MS4wLjABAAAAP09LrX61xFpIWrgGdBDqkp-5om9Lans_kuIZ_ipAGRE'
sign = '_02B4Z6wo00101Bz3DRAAAIDCpOVyFIga6AQc3wmAAGVOb8'
url = f'https://www.toutiao.com/api/pc/list/user/feed?category=pc_profile_article&token={uid}&max_behot_time=0&aid=24&app_name=toutiao_web&_signature={sign}'

response = requests.get(url,headers=headers)
print(response.url)
print(response.json())

结果打印

https://www.toutiao.com/api/pc/list/user/feed?category=pc_profile_article&token=MS4wLjABAAAAP09LrX61xFpIWrgGdBDqkp-5om9Lans_kuIZ_ipAGRE&max_behot_time=0&aid=24&app_name=toutiao_web&_signature=_02B4Z6wo00101Bz3DRAAAIDCpOVyFIga6AQc3wmAAGVOb8

{'data': [], 'decision': '{"code":"10000","from":"","type":"verify","version":"","region":"cn","subtype":"3d","detail":"k87OAt17RgTAQ7Gl7Z4DLmcP8UURvubqqf0M*SsHcDHF29s0jJwVleRhMU2ukEC7*FBoO7nCJ0rrc17JWBp55kpbrqUmS3C*T04Y*MB5dIjaJlBYWFj5bCJUChb6rc2e7tvqsIRD69Sw8r0-ujhZYK*SBnf7hc9nDBmTSiYXxaSgXcwOvu*hGfFGt0y-9HAJ9rn6l9T2sGgxkFPgFNP1Dkf98JdH6qhfpAw7R*fmFN*msRrQPBXxu3loRxBxxhXrxU40QljhRfbC*hMr36vaqEmkU*6yo-rYpoDAKgXKmW5s9v*9krQBYilpzUt8L27LXuHaEkYgBzKtdKyIxveczg1MZSsb73AZgvX5PGs49st9hPmADukgFW2v1GzwZCVd2WIFJWOtDl9uEC69AGmDV2vU55km1jtdqALvXsLXpN3T3Q..","verify_event":"","fp":"verify_7675712d2130cc97b00d5c9ebc5664ca","server_sdk_env":"{\\"idc\\":\\"lf\\",\\"region\\":\\"CN\\",\\"server_type\\":\\"business\\"}"}', 'has_more': False, 'message': 'success'}

是否哪里需要改造呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.