It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
Magnitus: Sorry for necroing this old thread, it's for a good cause.

I adapted the flash/insomnia promo script for the Chinese new years "flash" promo so you can keep track of potential promos for games you are interested in while still having a productive day.

The repo is here: https://github.com/Magnitus-/GOG-Flash-Promo-Script

I tested it with the pattern & new game recognition for like 15 minutes and it works so far.

Only thing I'm not sure about at this point is that the flash promo url which currently is https://www.gog.com/flashDealsSets/14674

Not sure if the 14674 is a constant or an evolving value (it's about ~100 days over the number of days since epoch, but that could just be a coincidence).

If the flash promo url stops working later for the script, I'll have to take a more serious look at where the number is coming from (that or just make the script try a couple of values before throwing the towel if the value simply increments in a predictable fashion, we'll see).
You could try centralizing the URL to a URL you have control over: ie, "pull the URL from a text file at this URL"
avatar
kohlrak: You could try centralizing the URL to a URL you have control over: ie, "pull the URL from a text file at this URL"
So far, so good, but If it got to the point where it was that bad (ie, randomly changing url that I just couldn't figure out in a sane amount of time), I'd probably just add a selenium dependency and extract the url that way.

I think that unless you are a larger institution (a successful business or a fairly well established community/non-profit), a server-side dependency is significantly less trustworthy than a standalone client (assuming the code for the client is freely available and simple enough to be understood).

As someone who does work on his computer, I tend to be particularly sensitive to the kind of needs such an audience would have.
Post edited February 14, 2018 by Magnitus
avatar
kohlrak: You could try centralizing the URL to a URL you have control over: ie, "pull the URL from a text file at this URL"
avatar
Magnitus: So far, so good, but If it got to the point where it was that bad (ie, randomly changing url that I just couldn't figure out in a sane amount of time), I'd probably just add a selenium dependency and extract the url that way.

I think that unless you are a larger institution (a successful business or a fairly well established community/non-profit), a server-side dependency is significantly less trustworthy than a standalone client (assuming the code for the client is freely available and simple enough to be understood).

As someone who does work on his computer, I tend to be particularly sensitive to the kind of needs such an audience would have.
I know that feeling, but i was thinking you could throw that URL onto github or something.
avatar
kohlrak: I know that feeling, but i was thinking you could throw that URL onto github or something.
It ended up being a non-issue.

One possibility with this, is that had I been of ill intent, I could have updated the repo the code points to with a bad file, though admittedly, it is somewhat more transparent than a remote file server thanks to the ability to follow and access in a user-friendly manner repo changes on Github.
avatar
kohlrak: I know that feeling, but i was thinking you could throw that URL onto github or something.
avatar
Magnitus: It ended up being a non-issue.

One possibility with this, is that had I been of ill intent, I could have updated the repo the code points to with a bad file, though admittedly, it is somewhat more transparent than a remote file server thanks to the ability to follow and access in a user-friendly manner repo changes on Github.
you have that option regardless of distribution though. We have a lot of blind trust, here, to be honest.