add GetProfileByID method

This commit is contained in:
Valentine 2024-08-09 14:03:05 +03:00
parent c57301623b
commit a611486a08
4 changed files with 105 additions and 10 deletions

View file

@ -32,6 +32,7 @@ You can use this library to get tweets, profiles, and trends trivially.
- [Search tweets](#search-tweets)
- [Search params](#search-params)
- [Get profile](#get-profile)
- [Get profile by id](#get-profile-by-id)
- [Search profile](#search-profile)
- [Get trends](#get-trends)
- [Get following](#get-following)
@ -425,6 +426,14 @@ See [Rules and filtering](https://developer.twitter.com/en/docs/tweets/rules-and
profile, err := scraper.GetProfile("taylorswift13")
```
### Get profile by id
95 requests / 15 minutes
```golang
profile, err := scraper.GetProfileByID("17919972")
```
### Search profile
> [!IMPORTANT]