Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download free games with this tool? #49

Closed
wertercatt opened this issue May 4, 2022 · 6 comments
Closed

Download free games with this tool? #49

wertercatt opened this issue May 4, 2022 · 6 comments

Comments

@wertercatt
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

wertercatt commented May 4, 2022

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
Copy link
Owner

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
Copy link
Contributor Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants