easy_twitter_interactors
推特(Twitter)点赞,刷阅读量程序,希望能为使用者带来益处。如果您也想贡献好的代码片段,请将代码以及描述,通过邮箱( xinkonghan@gmail.com )发送给我。代码格式是遵循自我主观,如存在不足敬请指出!
**文档地址: ** https://easy-twitter-interactors.xink.top/
**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
安装
pip install easy-twitter-interactors
主要功能
likes对指定帖子点赞reads对指定帖子刷阅读量(暂无)
简单使用
设置代理及cookie (点赞和阅读均需要设置cookie)
proxy = {
'http': 'http://127.0.0.1:10808',
'https': 'http://127.0.0.1:10808'
}
cookie = 'auth_token=686fa28f49400698820d0a3c344c51efdeeaf73a; ct0=5bed99b7faad9dcc742eda564ddbcf37888f8794abd6d4d736919234440be2172da1e9a9fc48bb068db1951d1748ba5467db2bc3e768f122794265da0a9fa6135b4ef40763e7fd91f730d0bb1298136b'
点赞使用案例(对指定帖子点赞)
from easy_spider_tool import format_json
from easy_twitter_interactors import TwitterLikes, get_headers
twitter_likes = TwitterLikes()
twitter_likes.set_proxy(proxy)
twitter_likes.set_headers(get_headers(cookie))
likes_info = twitter_likes.likes('1690065356495421444')
print(format_json(likes_info))
点赞参数说明
| 字段名 | 类型 | 必须 | 描述 |
|---|---|---|---|
| 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.
注:依赖顺序排名不分先后
链接
Github:https://github.com/hanxinkong/easy-twitter-interactors
在线文档:https://easy-twitter-interactors.xink.top
贡献者
许可证
该项目根据 MIT 许可条款获得许可.
Metadata
Release files for easy-twitter-interactors 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| easy_twitter_interactors-1.0.1.tar.gz | 5.5 kB | Without provenance | Details for easy_twitter_interactors-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| easy_twitter_interactors-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for easy_twitter_interactors-1.0.1-py3-none-any.whl |
Total release size: 13.2 kB
Release files / easy_twitter_interactors-1.0.1.tar.gz
| Download URL | easy_twitter_interactors-1.0.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
beff131111b183a9ed37d473c63353bcc4fa0342206b8976940b425a48b8b119
|
|
BLAKE2b-256 checksum How to use checksums |
54c5622660dc25f7641c876a389c0f4802c02310c1c2f65a84675330aec1b73a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.6
|
Release files / easy_twitter_interactors-1.0.1-py3-none-any.whl
| Download URL | easy_twitter_interactors-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92ada714514a9a5ec496958edd09f4f3d5a979e3f33608e1a3c8f6bd2756503e
|
|
BLAKE2b-256 checksum How to use checksums |
59a529b0d698f4beca0473eb4811246a41fe3b0402c8af4f3e19ed6004a6e4ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.6
|
Security for easy-twitter-interactors 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.