some king of api allowing to check how long til giveaway ends by providing a link to the giveaway (usefull for giveaway groups)

9 years ago*

Comment has been collapsed.

get the .html of the page and look for the line with time and date of ga end. you find it just a few lines after the end of the header.

pick it out via regex or ba position inside the html.

example: for this ga you find the correct line in line 217.

or just search for "fa fa-clock-o" (in the src)

9 years ago
Permalink

Comment has been collapsed.

yeah but doing this for group only giveaways won't work (you need authentication for this)

9 years ago
Permalink

Comment has been collapsed.

well, use you browsers api for that (it already has the cookie for auth, if you logged in with that browser).

for example autoit3 comes with simple functions to control the IE. is use this to enter giveaways of some (extended wishlist) games automatically.

if you have some programming skills i can provide the code so you can reuse parts of it to read out the times.

9 years ago
Permalink

Comment has been collapsed.

well i do have programming expirience so if you dont maind contact me with the code thx in advance

9 years ago
Permalink

Comment has been collapsed.

I would be very interested in this too.
I'm looking to add some more smart functionality to my site.
http://www.bundlequest.com

9 years ago
Permalink

Comment has been collapsed.

just add me on steam

9 years ago
Permalink

Comment has been collapsed.

Sorry, haven't gotten around to it yet.
Been busy with some other stuff, but I am interested in this.

Do you code in PHP btw?

9 years ago
Permalink

Comment has been collapsed.

no, i do not really do web stuff.

i do computer vision and robotics, so mostly c++

9 years ago
Permalink

Comment has been collapsed.

I'm interested to find out what you would use it on?

9 years ago
Permalink

Comment has been collapsed.

Happy Birthday! :)

9 years ago
Permalink

Comment has been collapsed.

thx, was confused first...but then realized its exact a year ago i registered here :)

9 years ago
Permalink

Comment has been collapsed.

Do yourself a favor and parse it with XPath instead. Regex may be able to do anything you want, it's not always the most effective solution.

9 years ago
Permalink

Comment has been collapsed.

thx for the info, is noted. i'll use that for parsing xml in future, thanks :)

9 years ago
Permalink

Comment has been collapsed.

The king of API decrees... Steamgifts already has a Web API

9 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 9 years ago.

9 years ago
Permalink

Comment has been collapsed.

ok

9 years ago
Permalink

Comment has been collapsed.

It would be nice to have API. It may be usefull for mobile apps developers. I know that html can be parsed. I just don't think this is good method:)

9 years ago
Permalink

Comment has been collapsed.

Yeah an API would be useful. I am facing the exact same problem as you since most of my giveaways are group giveaways. Was gonna propose to have SG about opening up the group GAs to allow public user to see (just not able to enter). But your suggestion works too.

Currently using the dynamic signature as workaround...

9 years ago
Permalink

Comment has been collapsed.

I'm interested to find out what website you use it for?

9 years ago
Permalink

Comment has been collapsed.

Yes, I would really really really love this feature to be added.
And it's really easy too.
With the following code you can easily make JSON output
http://pastebin.com/18N77HpM

What I would really like to get is a JSON that gives info about a single giveaway:

  • Giveaway status (open / ended / cancelled)
  • Gift name
  • Gift steam appid
  • Gift bundle/nonbundle status
  • Number of copies
  • steamgifts username of creator
  • steamid of creator
  • Giveaway creation time
  • Giveaway start time
  • Giveaway end time
  • Description
  • who can enter information
  • Number of entries
  • steamid's of those who have entered
  • Number of comments
  • steamid's of those who have commented
  • is the gift recieved
  • steamid of winner

Also I like to have a JSON that gives a list of all giveaways for a certain steam group.
Example: I want a list of all giveaways that were made for the group 'bundlequest'.

  • number of giveaways
  • giveaway id
  • giveaway is open / ended / cancelled status
9 years ago*
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.