Add Trends
This commit is contained in:
parent
75d9805984
commit
cea7f72d9d
5 changed files with 159 additions and 70 deletions
21
README.md
21
README.md
|
|
@ -51,8 +51,27 @@ func main() {
|
|||
}
|
||||
```
|
||||
|
||||
### Get trends
|
||||
|
||||
```golang
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
twitterscraper "github.com/n0madic/twitter-scraper"
|
||||
)
|
||||
|
||||
func main() {
|
||||
trends, err := twitterscraper.GetTrends()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Println(trends)
|
||||
}
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
```shell
|
||||
go get -u github.com/n0madic/twitter-scraper
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue