Randomize subscription order

maybe that will help in the future, my ip was just banned
This commit is contained in:
GHOSCHT 2024-12-28 19:04:35 +01:00
parent f374d84d0d
commit a35e9d111a
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82

View file

@ -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)