Cool. I wanted code exactly the same function, I was reading Steam Web API for this. Thank you.
Comment has been collapsed.
Unless you show me the web-api capable of reading a wishlist (hint: couldn't find any), it's eventually bound to be XML.
It really cuts down to pretty simple code in rails, à la, Nokogiri::HTML(open("http://steamcommunity.com/profiles/#{params[:id]}/wishlist").read).search('h4').
Comment has been collapsed.
Ah, my bad. You're right, I forgot the API has no access to the wishlist. I don't know Ruby at all so I can't say anything. It is like PHP's file_get_contents? Also, you're reading plain profile page or XML (with ?xml=1 parameter). I am asking as i can't see the parameter in the code :).
Comment has been collapsed.
I mean this one. https://partner.steamgames.com/documentation/community_data
Maybe parsing XML would be faster?
Comment has been collapsed.
Works: http://steamcommunity.com/id/mabako?xml=1 (But I don't need that)
Doesn't work: http://steamcommunity.com/id/mabako/wishlist?xml=1
So really, can't do pure XML.
open(...).read is like filegetcontents, Nokogiri is a HTML/XML parser which has some handy selectors - search('h4') to get all <h4> elements on the page.
Comment has been collapsed.
I am not sure myself but you could check if getting wishlist by parsing the XML feed wouldn't be faster.
If the wishlist is in the feed, again I forgot to check it myself... Well, anyway I can't as I am browsing with my mobile phone :). Could you check it and reply here if it is possible to get the wishlist through XML feed?
Comment has been collapsed.
That just means your wishlist doesn't match the "average" wishlist. You want games that other people either don't want, or that they want significantly less than other, more popular games.
Comment has been collapsed.
Does it cap out at 1000 users? Trying to run it on the S.gifts group
Comment has been collapsed.
Loading members... 1000 of 1000
Seems to have stopped now
Comment has been collapsed.
Nifty, thanks mabako! Another thought: how difficult would it be to adapt this to also be able to check how many group members already have or don't have a particular game? For example, if I have a copy of a common game like Beat Hazard and want to check to see if anyone in a group doesn't have it yet, would it require much retooling on your end or would it basically just be a matter of a find and replace of "wishlist" with "library"?
Comment has been collapsed.
It would be cool if there was an Export to File function. Right now the only way to show my results to someone is to send them a massive page of links or send the URL and let them wait for it to load. I'd love to be able to convert it to .txt while keeping its format, and preferably choosing whether I want to export or omit certain data: usernames, linked usernames, numbered list, number of "votes" per game, a or to only export a certain number of games (ie. top ten, top twenty.)
Still works just fine though, and I've got some interesting information now that I didn't before. Thanks!
Comment has been collapsed.
316 Comments - Last post 3 minutes ago by Ekaros
2,320 Comments - Last post 7 minutes ago by eeev
45 Comments - Last post 16 minutes ago by reigifts
99 Comments - Last post 1 hour ago by wigglenose
35 Comments - Last post 1 hour ago by lostsoul67
23 Comments - Last post 3 hours ago by Inkyyy
1,177 Comments - Last post 3 hours ago by J1mmyG1ft
23 Comments - Last post 1 minute ago by ErhanT
27 Comments - Last post 2 minutes ago by GeekDoesStuff
20 Comments - Last post 3 minutes ago by m0r1arty
11,015 Comments - Last post 7 minutes ago by jbondguy007
253 Comments - Last post 9 minutes ago by gus09
7 Comments - Last post 18 minutes ago by Alcorin
3,684 Comments - Last post 23 minutes ago by igel2005
Since there's no tool I could find to show a wishlist of all members of a single group, have this instead.
Step A) Locate the group profile url, for example, http://steamcommunity.com/groups/*therafflehouse (the therafflehouse part)
Step B) http://steamwishlist.mabako.net/group/therafflehouse*
It's not really lightning-fast since, for the most part while I've tested, SteamCommunity was pretty slow itself. Output is done with JS, it uses Ruby on Rails as a backend for user wishlist -> json. Were the whole page server-sides, your request would time out all the time =P If it stops executing mid-way, reload the page (should be faster for the bunch already loaded).
Depending on the number of users in your group, this might take a while (around 1-3 seconds/user, go figure), it's faster if the results were cached before.
EDIT - Stats for #NoWormy2012
Comment has been collapsed.