简易、好用的推特点赞,刷阅读量程序
Project description
easy_twitter_interactors
推特(Twitter)点赞,刷阅读量程序,希望能为使用者带来益处。如果您也想贡献好的代码片段,请将代码以及描述,通过邮箱( xinkonghan@gmail.com )发送给我。代码格式是遵循自我主观,如存在不足敬请指出!
推特三件套(有需要可自行安装)
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) |
链接
Github:https://github.com/hanxinkong/easy_twitter_interactors
在线文档:https://easy_twitter_interactors.xink.top
贡献者
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for easy_twitter_interactors-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 576b8ac586c17ff2171cc2e5ddd48a9f5f9456ec3b629db724d4f31385d96a7e |
|
MD5 | a31f650e754a72ca9a4e2d0ce89cdc97 |
|
BLAKE2b-256 | 30d301629bac732f2dd582b0152a3bc40a8728ceb4ddd82f8fbc22935c26310a |
Close
Hashes for easy_twitter_interactors-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31f87ff4382cd394ff2702ce22e02e41d02460a0cf59f14e280f2f064adb4933 |
|
MD5 | b500dded169d5a94bc87e07d1336c537 |
|
BLAKE2b-256 | 7119280c64f2f93eeaa1695ee2a621639bc2fef5cc68553fec51d71e11403412 |