Format code
This commit is contained in:
parent
01325ea5e8
commit
409af81a81
1 changed files with 10 additions and 10 deletions
20
README.md
20
README.md
|
|
@ -22,9 +22,9 @@ import (
|
|||
|
||||
func main() {
|
||||
for tweet := range twitterscraper.GetTweets("kennethreitz", 25) {
|
||||
if tweet.Error != nil {
|
||||
panic(tweet.Error)
|
||||
}
|
||||
if tweet.Error != nil {
|
||||
panic(tweet.Error)
|
||||
}
|
||||
fmt.Println(tweet.HTML)
|
||||
}
|
||||
}
|
||||
|
|
@ -38,16 +38,16 @@ It appears you can ask for up to 25 pages of tweets reliably (~486 tweets).
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
twitterscraper "github.com/n0madic/twitter-scraper"
|
||||
"fmt"
|
||||
twitterscraper "github.com/n0madic/twitter-scraper"
|
||||
)
|
||||
|
||||
func main() {
|
||||
profile, err := twitterscraper.GetProfile("kennethreitz")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("%+v\n", profile)
|
||||
profile, err := twitterscraper.GetProfile("kennethreitz")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("%+v\n", profile)
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue