Closed torch2424 closed 6 years ago
So looking at schelphs scraper it uses a 4MB csv file as it's DB, thus this would be impractical on a client. And it would require reverse engineering hw they are hashing what part of the ROM, since it does not seem to be a standard MD5 or SHA1 of the file.
I think Our best bet for now is just to pop up a modal, that allows the user to manually add info, or search using a simple search box, and then we can just save the id. Giant Bomb seems to have the best/most reasonable API with 2,000 requests per hour. Though the games db is unlimited, and idb doesn't support CORs for free, or unlimited requests.
Apparently games DB is all messed up right now, and can't find an api key:
https://www.reddit.com/r/RetroPie/comments/8wpgfp/thegamesdb_new_api/
Found how to get API Keys, but it is 1000 requests per month :p
Probably have to go with GIant Bomb: https://www.giantbomb.com/api/
This modern app also did: https://github.com/irwintsay/VGDB
Gonna do IGDB. And just set up keys in the Caddy to do rewrites on the GET request to get the proper responses.
IGDB Platform Ids:
GB: 33, GBC: 22, GBA: 24
Example IGDB request: https://vaporboy.net/scrape/igdb/games/?search=Links%20Awakening&fields=name,cover,platforms,first_release_date&filter[release_dates.platform][any]=22,33&order=popularity:desc
Need to add user_key in headers and stuff though, and will be proxied through
IGDB Doesn't support search and both filtering by platform 😢
So going with Giant Bomb.
Giant Bomb Platform Ids:
GB: 3, GBC: 57
Made endpoint in Caddyfile for this:
https://github.com/torch2424/dotFiles/blob/master/.files_caddy/aaronTheDev-apps/Caddyfile#L23
Simply need to set up in app!
Would be nice for box art and things: https://github.com/RetroPie/RetroPie-Setup/wiki/scraper