Emersont1 / itchio

https://pypi.org/project/itchiodl/
MIT License
105 stars 17 forks source link

Download free games with this tool? #49

Closed wertercatt closed 2 years ago

wertercatt commented 2 years ago

Maybe add the ability to input a link to a game page, like https://etra-etra-games.itch.io/vortex-an-fps-where-you-cant-damage-enemies for example, so that you can download games that aren’t able to be added to your library.

wertercatt commented 2 years ago

Adding onto this issue: being able to just throw creator pages like https://etra-etra-games.itch.io/ at the tool and have it download everything it freely can would be great too.

wertercatt commented 2 years ago

Maybe add the ability to input a link to a game page, like https://etra-etra-games.itch.io/vortex-an-fps-where-you-cant-damage-enemies for example, so that you can download games that aren’t able to be added to your library.

Figured out how to get the game_id for arbitrary itch.io game pages. Just append /data.json to the url. If the game has free downloads, they'll appear in the /games/game_id/uploads endpoint with no key required.

wertercatt commented 2 years ago

Adding onto this issue: being able to just throw creator pages like https://etra-etra-games.itch.io/ at the tool and have it download everything it freely can would be great too.

As for getting all the game pages from a creator, it looks like just scrapping the creator page for all <a class="title game_link">hrefs should work sufficiently.

Emersont1 commented 2 years ago

As for getting all the game pages from a creator, it looks like just scrapping the creator page for all hrefs should work sufficiently.

This would probably be better achieved with the API, I'm loathed to do any scraping that isn't a last resort as it less likely to remain stable

wertercatt commented 2 years ago

As for getting all the game pages from a creator, it looks like just scrapping the creator page for all hrefs should work sufficiently.

This would probably be better achieved with the API, I'm loathed to do any scraping that isn't a last resort as it less likely to remain stable

I haven’t found a way to get all games by a user with the api.

Emersont1 commented 2 years ago

The PR needs some work for it to work, which I don't presently have time for. If you want to do the dev & testing work, i'll be more than happy to merge it in