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() {
|
func main() {
|
||||||
for tweet := range twitterscraper.GetTweets("kennethreitz", 25) {
|
for tweet := range twitterscraper.GetTweets("kennethreitz", 25) {
|
||||||
if tweet.Error != nil {
|
if tweet.Error != nil {
|
||||||
panic(tweet.Error)
|
panic(tweet.Error)
|
||||||
}
|
}
|
||||||
fmt.Println(tweet.HTML)
|
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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
twitterscraper "github.com/n0madic/twitter-scraper"
|
twitterscraper "github.com/n0madic/twitter-scraper"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
profile, err := twitterscraper.GetProfile("kennethreitz")
|
profile, err := twitterscraper.GetProfile("kennethreitz")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
fmt.Printf("%+v\n", profile)
|
fmt.Printf("%+v\n", profile)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue