Browse Source

workaround for ban time

tags/3
Roshless 10 months ago
parent
commit
abf6c0aa72
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      main.go

+ 4
- 0
main.go View File

@@ -19,6 +19,7 @@ var (
pagingURL = "https://www.steamgifts.com/giveaways/search?page="
wishlistURL = "&type=wishlist"
regionRestrictedURL = "&region_restricted=true"
bannedString = "Account has been temporarily blocked"

userAgent = "Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36"

@@ -163,6 +164,9 @@ func enterGiveaways(cookie *http.Cookie, enterWishlist bool) {
if index == "" {
fmt.Println("Cookie is wrong or something")
return
} else if strings.Contains(index, bannedString) {
fmt.Println("Banned, skipping...")
return
}

xsrfToken := xsrfRegex.FindStringSubmatch(index)[1]

Loading…
Cancel
Save