add LikeTweet and UnlikeTweet methods
This commit is contained in:
parent
f8c200b312
commit
e235a6a79f
4 changed files with 127 additions and 0 deletions
24
README.md
24
README.md
|
|
@ -35,6 +35,8 @@ You can use this library to get tweets, profiles, and trends trivially.
|
|||
- [Get following](#get-following)
|
||||
- [Get followers](#get-followers)
|
||||
- [Get space](#get-space)
|
||||
- [Like tweet](#like-tweet)
|
||||
- [Unlike tweet](#unlike-tweet)
|
||||
- [Create tweet](#create-tweet)
|
||||
- [Delete tweet](#delete-tweet)
|
||||
- [Create retweet](#create-retweet)
|
||||
|
|
@ -457,6 +459,28 @@ if strings.HasPrefix(spaceUrl, "https://twitter.com/i/spaces/") {
|
|||
space, err := scraper.GetSpace(spaceId)
|
||||
```
|
||||
|
||||
### Like tweet
|
||||
|
||||
> [!IMPORTANT]
|
||||
> Requires authentication!
|
||||
|
||||
500 requests / 15 minutes (combined with `UnlikeTweet` method)
|
||||
|
||||
```golang
|
||||
err := scraper.LikeTweet("tweet_id")
|
||||
```
|
||||
|
||||
### Unlike tweet
|
||||
|
||||
> [!IMPORTANT]
|
||||
> Requires authentication!
|
||||
|
||||
500 requests / 15 minutes (combined with `LikeTweet` method)
|
||||
|
||||
```golang
|
||||
err := scraper.UnlikeTweet("tweet_id")
|
||||
```
|
||||
|
||||
### Create tweet
|
||||
|
||||
> [!IMPORTANT]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue