Hello,

I have checked the search parameters thread for the giveaways and I would like to know if there is any way to do an OR inside the search.
For example in this case we have 2 parameters, I am searching for giveaways with minimal level 1 and max entries to 200:
https://www.steamgifts.com/giveaways/search?level_min=1&entry_max=200

Although I would like to turn that from an AND to an OR. Search for giveaways that are over level 1 or that have entries lower than 200.
https://www.steamgifts.com/giveaways/search?level_min=1&OR&entry_max=200

Is that possible?

Thanks.

4 years ago

Comment has been collapsed.

Deleted

This comment was deleted 4 years ago.

4 years ago*
Permalink

Comment has been collapsed.

You would probably want to look into ESGST

4 years ago
Permalink

Comment has been collapsed.

4 years ago
Permalink

Comment has been collapsed.

Hello,
Ok that extension seems interesting. I will indeed look into it. Thank you for this :)

4 years ago
Permalink

Comment has been collapsed.

I don't think it is possible but why not making two bookmarks? One for level and one for entries.

4 years ago
Permalink

Comment has been collapsed.

Seems like a good solution to me.

4 years ago
Permalink

Comment has been collapsed.

Hello,
I already do that, and in fact I have at least 5 bookmarks, that's why I wanted to do something simpler. But in case I don't manage to do what I want I will have to keep doing that.

4 years ago
Permalink

Comment has been collapsed.

https://www.steamgifts.com/giveaways/search?level_min=1&OR&entry_max=200
Is that possible?

Adjust that to OR=True, or OR=1, and it should definitely be possible [for cg to implement]. I forget if you can default set HTML form variables [ie, preset the OR variable to 1 and be able to automatically switch it to 0 if it's in the command line without any set parameters], but there's no readily apparent reason that it shouldn't work if you clearly set the paremter [eg, to 1], since or functions are inherent to database queries to begin with (in the same manner that and functions are).

Well, I'm in favor of phrasing it as "Blend=True", though, but I guess that's an inconsequential point. :P
As my preference on that detail indicates, all you're really doing is blending two different searches into one, so it definitely seems like something a script could handle. If you're willing to poke around in the code, userscripts should always have all their data visible user-end, so you could just dig through ESGST [given the indication by ChessPie that it already has the function] and try stripping out the relevant section(s) (for use in a new script of your own), if you'd prefer to not utilize the full ESGST script.

4 years ago*
Permalink

Comment has been collapsed.

Happy 🎂day, Sooth! :)

4 years ago
Permalink

Comment has been collapsed.

I have tried that but it didn't work. Not sure if I am doing something wrong. Although like you said it should be something that a script could handle quite easily. Either way my knowledge is very limited and I just wanted something simple so not sure if I will be able to make it. I will indeed look into the ESGST that seems a very interesting tool. Thanks.

4 years ago
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.