Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Commit

Permalink
补充接口相关
Browse files Browse the repository at this point in the history
  • Loading branch information
mengzonefire committed Mar 15, 2023
1 parent 37fc0e4 commit cfa76d8
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
1. https://<span></span>twitter.com/\*\*\*/status/\*\*\* (爬取单条推文)
2. https://<span></span>twitter.com/\*\*\* (推主主页, 爬取推主所有推文)
3. https://<span></span>twitter.com/\*\*\*/media (推主媒体页, 爬取推主所有媒体推文)
4. https://<span></span>twitter.com/\*\*\*/likes (推主喜欢页, 爬取所有like推文)
4. https://<span></span>twitter.com/\*\*\*/likes (推主喜爱页, 爬取所有喜爱推文)
5. https://<span></span>twitter.com/\*\*\*/following (推主关注页, 爬取关注列表)
6. @\*\*\* (用于搜索页爬取)
6. @\*\*\* (爬取搜索页)

不同接口区别: [api_关于接口](#api_关于接口)

# donate 赞助

Expand Down Expand Up @@ -96,6 +98,21 @@
8. 高级搜索: 前往 [推特高级搜索页](https://twitter.com/search-advanced?f=live) 填写并搜索,然后复制搜索框内容,将内容粘贴至 `@&advanced=` 后面
9. 关于高级搜索的tag:推特默认使用 `#taga OR #tagb` 意为包含taga或者包含tagb,但是可以手动修改为 `#taga AND #tagb` ,意为含taga并且包含tagb

# api_关于接口
目前有5个不同的下载接口,分别是单条推文、用户主页、用户媒体页、搜索页、喜爱页。

* 搜索接口: 能获取到用户所有推文, 但锁推推主的旧推文(2023年以前)可能会缺失(应该是服务端的问题)
* 主页/媒体页/喜爱页接口: 推文数量过多时会部分缺失

综上, 爬取**锁推推主**时, 建议同时使用 **搜索接口+主页/媒体页接口** 以防止缺失数据

| 接口 | 单条推文 | 用户主页 | 用户媒体页 | 搜索页 | 喜爱页 |
| :---------------------------: | :------: | :------: | :--------: | :----: | :----: |
| 推文数量 | ★☆☆☆☆ | ★★☆☆☆ | ★★★☆☆ | ★★★★★ | ★★★☆☆ |
| 包含引用 ||||||
| 包含转推 ||||||
| 高级用法<br/>(标签、日期等) ||||||

# TODO 待实现需求

1. GUI (可能要等很久才能写出来)
Expand Down

0 comments on commit cfa76d8

Please sign in to comment.