Page 1 of 1

Can a game take information from the internet?

Posted: Tue Nov 09, 2021 8:36 pm
by DFlimbingo
I know this is a long shot, but I'm curious if I can have my Ren'Py game take information from a website and display it in the game. For example, if the user types in their username on Twitter, can Ren'Py then search for that specific name and return the amount of followers? I know its possible for Ren'Py to collect some Steam information, but I know that's sort of a special case.

Re: Can a game take information from the internet?

Posted: Wed Nov 10, 2021 1:06 am
by Imperf3kt
Depends.
This should do the trick
https://www.renpy.org/doc/html/config.h ... n_callback

But I'm not entirely sure how to use it to get things like number of twitter followers etc.

You may need to make a bot that scrapes the information from an API and saves it to a file that renpy can read.