sometempaccount 0 Share Posted February 6, 2023 I want to get the Config Data and Save Data locations for any given game through the API. I've looked at the tables extensively, and the only thing related to this I've found, is the tags table which only holds boolean values, it doesn't give me an actual path. So, is it possible to get this info? Or do I need to resort to web scraping? Reply (Quote) Link to comment Share on other sites More sharing options...
Aemony 150 Share Posted February 6, 2023 That data is currently not stored separately so you’ve to scrap the wikitext for the page and extract the particular section on your own. 1. Retrieve the page ID for a page based on its Steam AppID: https://www.pcgamingwiki.com/w/api.php?action=cargoquery&tables=Infobox_game&fields=Infobox_game._pageID%3DPageID%2CInfobox_game.Steam_AppID&where=Infobox_game.Steam_AppID HOLDS "1245620"&format=jsonfm 2. Retrieve the wikitext of the page with the aforementioned page ID: https://www.pcgamingwiki.com/w/api.php?action=parse&format=json&pageid=146683&prop=wikitext 3. And then use regex or such to extract the relevant paths you’re after. Reply (Quote) Link to comment Share on other sites More sharing options...
leonekreiger 0 Share Posted September 22 On 2/6/2023 at 3:26 PM, Aemony said: That data is currently not stored separately so you’ve to scrap the wikitext for the page and extract the particular section on your own. 1. Retrieve the page ID for a page based on its Steam AppID: https://www.pcgamingwiki.com/w/api.php?action=cargoquery&tables=Infobox_game&fields=Infobox_game._pageID%3DPageID%2CInfobox_game.Steam_AppID&where=Infobox_game.Steam_AppID HOLDS "1245620"&format=jsonfm 2. Retrieve the wikitext of the page with the aforementioned page ID: https://www.pcgamingwiki.com/w/api.php?action=parse&format=json&pageid=146683&prop=wikitext/geometry vibes 3. And then use regex or such to extract the relevant paths you’re after. The information you shared is very useful, thanks. Reply (Quote) Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.