This commit is contained in:
Alexander Sheiko 2021-04-28 12:40:26 +03:00
parent 26275b5d42
commit 24811aeec7

View file

@ -138,7 +138,7 @@ import (
func main() { func main() {
scraper := twitterscraper.New().SetSearchMode(twitterscraper.SearchUsers) scraper := twitterscraper.New().SetSearchMode(twitterscraper.SearchUsers)
for profile := range scraper.SearchUsers(context.Background(), "Twitter", 50) { for profile := range scraper.SearchProfiles(context.Background(), "Twitter", 50) {
if profile.Error != nil { if profile.Error != nil {
panic(profile.Error) panic(profile.Error)
} }