Add get profile

This commit is contained in:
Nomadic 2019-09-21 10:59:45 +03:00
parent 70ededdd53
commit 01325ea5e8
2 changed files with 89 additions and 0 deletions

View file

@ -10,6 +10,8 @@ You can use this library to get the text of any user's Tweets trivially.
## Usage
### Get tweets
```golang
package main
@ -30,6 +32,25 @@ func main() {
It appears you can ask for up to 25 pages of tweets reliably (~486 tweets).
### Get profile
```golang
package main
import (
"fmt"
twitterscraper "github.com/n0madic/twitter-scraper"
)
func main() {
profile, err := twitterscraper.GetProfile("kennethreitz")
if err != nil {
panic(err)
}
fmt.Printf("%+v\n", profile)
}
```
## Installation
```shell