I'm playing a bit with curl and Nokogiri triying to retrieve new give awais so I started to download and parse "new" section But I noticed the giveaway order is a bit unordered, sometimes you get a GA which is clearly off sorted

D, [2023-08-15T14:05:02.978975 #100087] DEBUG -- : ga time 2h 47m 46s
D, [2023-08-15T14:05:02.978983 #100087] DEBUG -- : SKIP (seen ) Genesis Noir
D, [2023-08-15T14:05:02.979167 #100087] DEBUG -- : ga time 1d 7h 51m 51s
D, [2023-08-15T14:05:02.979174 #100087] DEBUG -- : SKIP (overtime) Ghost Bus Simulator

I thought it was my quick and dirty code but turns out that this also happens in the "new" page visited with a browser

I am missing something or really order of GA's in "new" page is not "an strict order"?

View attached image.
1 year ago

Comment has been collapsed.

I think that happens when someone creates a giveaway but sets the start time to a later date! So it will show up in new when you can enter but have a different (created ago) time

They created it 22 hours ago, but you could start entering around 7-9 hours ago

1 year ago*
Permalink

Comment has been collapsed.

They are sorted by "start_timestamp", and you are parsing "created_timestamp" probably.

1 year ago
Permalink

Comment has been collapsed.

Don't seems that In fact, my listings match 1:1 the listings on the page. Obvs because SG does not have an API and I'm scrubbing the page, but I was wondering if there's something in the UI I was missing to sort the things correctly, or this is just an SG feature

View attached image.
1 year ago
Permalink

Comment has been collapsed.

Actually, try this instead
https://www.steamgifts.com/giveaways/search?type=new&format=json

Also, what Andy says seems to be the case here. Regardless, the sorting is a bit broken, and the GAs do change their position sometimes when multiple GAs are created by the same person in the same second (there are scripts to create multiple GAs in a single click).

1 year ago
Permalink

Comment has been collapsed.

Oh, Thank's Didn't know that it supported json. Data extraction has become way lot easier

1 year ago
Permalink

Comment has been collapsed.

np

1 year ago
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.