Randomize subscription order
maybe that will help in the future, my ip was just banned
This commit is contained in:
parent
f374d84d0d
commit
a35e9d111a
1 changed files with 6 additions and 0 deletions
6
main.go
6
main.go
|
@ -112,6 +112,12 @@ func main() {
|
|||
authResult := login(basePath, username, password)
|
||||
subscriptions := getSubscriptions(basePath, authResult.Token)
|
||||
|
||||
// randomize subscription order
|
||||
for i := range subscriptions {
|
||||
j := rand.IntN(i + 1)
|
||||
subscriptions[i], subscriptions[j] = subscriptions[j], subscriptions[i]
|
||||
}
|
||||
|
||||
for i := range subscriptions {
|
||||
fmt.Println(subscriptions[i].Name)
|
||||
visit(basePath+subscriptions[i].Url, authResult.Token)
|
||||
|
|
Loading…
Reference in a new issue