Ce sujet a été verrouillé
Producing List of IDs from a Workshop Collection
Hi,

I've been trying to find a way to get a list of IDs from every mod I have added into my own collections because there are some games like Project Zomboid that need them for hosting a server and... like Project Zomboid... some of those games don't exactly make it easy to add workshop mods to a server with the whole "click one-by-one after scrolling back down to where we left off from the last one" thing they have going on.

I found a few old ways to do it, but those methods' domains are now gone and the other methods were made only for Medieval Engineer and Space Engineer.

Is this still possible today? If so, how?
Dernière modification de Fi; 19 janv. 2022 à 17h37
Écrit par MalikQayum:
you need to use the API to make a post request with the ISteamRemoteStorage interface and the use the GetCollectionDetails method.

https://steamapi.xpaw.me/#ISteamRemoteStorage/GetCollectionDetails
< >
Affichage des commentaires 1 à 15 sur 21
L'auteur(e) de ce sujet a indiqué que ce message répond à sa question.
you need to use the API to make a post request with the ISteamRemoteStorage interface and the use the GetCollectionDetails method.

https://steamapi.xpaw.me/#ISteamRemoteStorage/GetCollectionDetails
Dernière modification de MalikQayum; 20 janv. 2022 à 4h12
Fi 20 janv. 2022 à 14h31 
MalikQayum a écrit :
you need to use the API to make a post request with the ISteamRemoteStorage interface and the use the GetCollectionDetails method.

https://steamapi.xpaw.me/#ISteamRemoteStorage/GetCollectionDetails

What does it mean by this? https://i.imgur.com/65ZFsSB.png
Dernière modification de Fi; 20 janv. 2022 à 14h33
you can safely ignore it, and proceed, unless you deliberately are trying to post data to valve trying to do something malicious.
Fi 20 janv. 2022 à 15h23 
MalikQayum a écrit :
unless you deliberately are trying to post data to valve trying to do something malicious.

The intent is explained in the very first post.

I assumed it meant that something damaging and disastrous might happen to my collections hence why I asked—the warning's vague after all, but if it's a warning for something else entirely unrelated to my thread then I'll give it a shot.

How exactly does it work? I see that it has collectioncount and publishedfileids, so I'm guessing if I'm just trying to get a list of IDs from one collection, I can input "1" for the former's and... the link to my collection in the latter's Value field?

Never mind, I figured out that publishedfileids wants the ID at the end of a desired collection's URL, but I'm still a smidgen uncertain about the collectioncount part—better to be safe than sorry.
Dernière modification de Fi; 20 janv. 2022 à 15h40
ReBoot 20 janv. 2022 à 15h30 
I got a bit of working code web-scraping the collection HTML. Interested?
Fi 20 janv. 2022 à 15h33 
ReBoot a écrit :
I got a bit of working code web-scraping the collection HTML. Interested?

Sure, if it's safe.

The more alternatives, the better for others wondering about the same thing.
ReBoot 20 janv. 2022 à 15h37 
I'll get you the code tomorrow. Then you can check yourself, how safe the code is ;)
collectioncount is the amount of collections you are requesting data for.
in your case it is 1.

collectioncount = 1
publishedfileids[0] = your collection id

if you are requesting data for more than 1 collection lets say 2.
collectioncount = 2
publishedfileids[0] = your collection id 1
publishedfileids[1] = your collection id 2

collectioncount is just incremented for every collection you add.

When valve has provided you with an API that does exactly what you need, you should not be web scraping. also web scraping is highly frowned upon and nobody likes it. sure you can do it but you might end up getting temp ip bans for doing it.
but the question remains, why do it? when in this case, they give the data to you in an API, right?
Dernière modification de MalikQayum; 20 janv. 2022 à 16h30
Fi 20 janv. 2022 à 16h52 
MalikQayum a écrit :
collectioncount is the amount of collections you are requesting data for.
in your case it is 1.

collectioncount = 1
publishedfileids[0] = your collection id

if you are requesting data for more than 1 collection lets say 2.
collectioncount = 2
publishedfileids[0] = your collection id 1
publishedfileids[1] = your collection id 2

collectioncount is just incremented for every collection you add.

Ah, okay, so it was what I presumed, and it gave me all of the IDs I needed of my mods. All I have to do now is put them in the format their game's .ini recognizes, and I'm good to go.

Thanks a ton~

MalikQayum a écrit :
When valve has provided you with an API that does exactly what you need, you should not be web scraping. also web scraping is highly frowned upon and nobody likes it. sure you can do it but you might end up getting temp ip bans for doing it.
but the question remains, why do it? when in this case, they give the data to you in an API, right?

I'm unfortunately not... uhh... API, code, script—whatever all of this is—savvy, so I have no idea what "web scraping" does.

I assumed it was something hopefully safe they put together and hosted on GitHub like the ones I found for Medieval Engineer and Space Engineer, but if using it is frowned upon and could earn me a temporary IP ban, I'll certainly pass and advise others watching this thread to do the same.

The API you shared was very sufficient enough anyway.
Dernière modification de Fi; 20 janv. 2022 à 16h53
AKJ a écrit :
I made this: https://gist.github.com/Saturate/1519244dee074f3b6afdea349580f0e0

It will do the job :)
You are a god send. I hate to ask but do you know if somthing like this would work with the mod ID as well?
Jinx Cole a écrit :
AKJ a écrit :
I made this: https://gist.github.com/Saturate/1519244dee074f3b6afdea349580f0e0

It will do the job :)
You are a god send. I hate to ask but do you know if somthing like this would work with the mod ID as well?

Nope unfortunately not, but I'm working on making a script to get both 😁 for easy config. Maybe I'll finish it tomorrow.
Wurf 5 févr. 2023 à 19h28 
AKJ a écrit :
Jinx Cole a écrit :
You are a god send. I hate to ask but do you know if somthing like this would work with the mod ID as well?

Nope unfortunately not, but I'm working on making a script to get both 😁 for easy config. Maybe I'll finish it tomorrow.

Did you ever happen to finish that? :missing:
Wurf a écrit :
AKJ a écrit :

Nope unfortunately not, but I'm working on making a script to get both 😁 for easy config. Maybe I'll finish it tomorrow.

Did you ever happen to finish that? :missing:

Nope, didn't need it. But if I can find some time, I'll finish the script and release it :)
MoonGuy 10 avr. 2023 à 23h15 
6
2
2
3
For anyone still looking for some tool like this, I made one on my website. https://getcollectionids.moonguy.me/.
Also here is a guide about it:
https://steamcommunity.com/sharedfiles/filedetails/?id=2960839553
< >
Affichage des commentaires 1 à 15 sur 21
Par page : 1530 50

Posté le 19 janv. 2022 à 17h36
Messages : 21