easy-twitter-interactors
简介
推特(Twitter)点赞,刷阅读量程序,希望能为使用者带来益处。如果您也想贡献好的代码片段,请将代码以及描述,通过邮箱( xinkonghan@gmail.com
)发送给我。代码格式是遵循自我主观,如存在不足敬请指出!
链接
在线文档:
https://blog.hanxinkong.top/wiki/python-tool-library/easy-twitter-interactors
PyPi地址:
https://pypi.org/project/easy-twitter-interactors
GitHub地址:
https://github.com/hanxinkong/easy-twitter-interactors
推特三件套(有需要可自行安装)
easy_twitter_publisher推特发帖,回帖,转载 https://pypi.org/project/easy_twitter_publishereasy_twitter_crawler推特采集 https://pypi.org/project/easy-twitter-crawlereasy_twitter_interactors推特互动(点赞,刷阅读量等) https://pypi.org/project/easy_twitter_interactors
安装
1 | pip install easy-twitter-interactors |
主要功能
likes对指定帖子点赞reads对指定帖子刷阅读量(暂无)
简单使用
设置代理及cookie (点赞和阅读均需要设置cookie)
1 | proxy = { |
点赞使用案例(对指定帖子点赞)
1 | from easy_spider_tool import format_json |
点赞参数说明
| 字段名 | 类型 | 必须 | 描述 |
|---|---|---|---|
| to_tweet_id | string | 是 | 目标帖子id(https://twitter.com/elonmusk/status/1690164670441586688 中的 1690164670441586688) |
依赖
内置依赖
typingType Hints for Python.jsonType Hints for Python.
第三方依赖
requestsAn XPath for JSON.loguruAn XPath for JSON.urllib3Python library used for working with timezone information.easy_spider_toolPython library used for working with timezone information.
注:依赖顺序排名不分先后
贡献者
许可证
该项目根据 MIT 许可条款获得许可.