GithubHelp home page GithubHelp logo

myapi's Introduction

MyApi

DouyinApi

功能:直接粘贴分享链接即可识别链接的类型进行下载。

无水印下载单个视频和相册,下载单个用户所有作品或者喜欢(改一下就行),支持合集下载,对文件名校验。

实现了话题分享下载视频。对于signature,不能用于搜索的接口。Fuck Douyin!!!!!!!!!!!!!

实现了短剧下载。

太菜了,好几个类写法都差不多,有空改进一下。音乐合集下载不想写了估计是一样的。

DouyinApi就到此结束吧,就当作练练手了。

没有实现的,音乐合集下载。

API参考:


视频和相册接口:

视频id不用多说,相册id从手机分享的url中来。返回json格式数据,其中aweme_type代表视频还是相册。在获得的下载链接中如果有/playwm/,这是有水印的,改为/play/

https://www.iesdouyin.com/web/api/v2/aweme/iteminfo/?item_ids={视频或者相册id}

用户页接口:

小姐姐测试:https://www.douyin.com/user/MS4wLjABAAAAlKSDDV19aih7W6POOHk9bh4vbkHl00HCST4hgou7beM?previous_page=app_code_link

userApi

用户作品列表api,用户secid可从url,或手机分享的url访问查看。请求中_signature可以在代码中打开自动生成,也可以一直用一个。countmax_cursor关系:max_cusor0开始代表第一页,返回的数据中max_cursor是下一页的。最后一页的max_cursor接着访问得到的是空aweme_list

https://www.iesdouyin.com/web/api/v2/aweme/post/?sec_uid={用户SecID}&count={每页数目}&max_cursor={页码}&aid=1128&_signature={signature}

合集接口:

合集列表api和合集信息api,合集id可从url,或手机分享的url访问查看。countcursor关系:cusor0开始代表第一页,返回的数据中cursor是下一页的,最后一页的cousor不变。

https://www.iesdouyin.com/web/api/mix/item/list/?mix_id={合集id}&count={每页数目}&cursor={页码}
https://www.iesdouyin.com/web/api/mix/detail/?mix_id={合集id}

话题接口:

话题作品列表api和话题信息api,话题id可从url,或手机分享的url访问查看。请求中_signature可以在代码中打开自动生成,也可以一直用一个。countcursor关系:cusor0开始代表第一页,返回的数据中cursor是本页的,不是下一页的,下一页的cursor是加上count的值。

https://www.iesdouyin.com/web/api/v2/challenge/aweme/?ch_id={话题id}&count={每页数目}&cursor={页码}&aid=1128&screen_Limit=3&download_click_limit=0&_signature={signature}
https://www.iesdouyin.com/web/api/v2/challenge/info/?ch_id={话题id}

短剧接口:

短剧作品列表api和短剧信息api,短剧id可从url,或手机分享的url访问查看。countcursor关系:cusor0开始代表第一页,返回的数据中cursor是下一页的,最后一页的cousor不变。

https://www.iesdouyin.com/web/api/playlet/item/list/?playlet_id={短剧id}&count={每页数目}&cursor={页码}
https://www.iesdouyin.com/web/api/playlet/detail/?playlet_id={短剧id}

热榜接口:

https://www.iesdouyin.com/web/api/v2/hotsearch/billboard/word/

搜索接口:

https://www.douyin.com/aweme/v1/web/search/item/?device_platform=webapp&aid=6383&channel=channel_pc_web&search_channel=aweme_video_web&sort_type=0&publish_time=0&keyword={关键字}&search_source=normal_search&query_correct_type=1&is_filter_search=0&offset=0&count=30&version_code=160100&version_name=16.1.0&cookie_enabled=true&screen_width=1536&screen_height=864&browser_language=zh-CN&browser_platform=Win32&browser_name=Mozilla&browser_version=5.0+(Windows)&browser_online=true&_signature={去他妈的_signature}

其他花里胡哨的接口:douyin_web_signature

小红书Api

感谢:爬客 | 吃饭吧

微信小程序Api

1、用户详情页 请求方式:Get

https://www.xiaohongshu.com/fe_api/burdock/weixin/v2/user/用户id

2、用户作品

https://www.xiaohongshu.com/fe_api/burdock/weixin/v2/user/用户id/notes?page=1&page_size=15

请求参数:page page_size

3、个人收藏

https://www.xiaohongshu.com/fe_api/burdock/weixin/v2/user/60faf2c80000000001008ad2/collectedNotes?num=10&start= 

图片接口:

小红书App抓包得到

http://sns-img-qc.xhscdn.com/图片id

小程序抓包得到(web端也是这样)

https://ci.xiaohongshu.com/图片id

视频接口

url=http://sns-video-hw.xhscdn.com/视频id?v=2

4、作品接口

https://www.xiaohongshu.com/fe_api/burdock/weixin/v2/note/作品id/single_feed

myapi's People

Contributors

orzchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.