Add get profile
This commit is contained in:
parent
70ededdd53
commit
01325ea5e8
2 changed files with 89 additions and 0 deletions
21
README.md
21
README.md
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue