Problem: is here any ways to keep my login and password away from the code of a program (the program parse Instagram post info) that will be used by users? The code below takes info of the post, BUT if i make many requests to Instagram, it doesn't work. So i need to login in anyway instagram_web_api.login(LOGIN, PASSWORD)
, but my program will be used by another users.
Question: If my program will be used by another users, how can i hide my login and password from the code? I mean the program will be Desktop GUI, using code below partly, so users wouldn't see the code, BUT if they somehow look in the code, i want my login and password be hidden. Any ways, please?
Code:
... def _parse_instagram_post(self): instagram_web_api = Client() instagram_web_api.login(LOGIN, PASSWORD) media_pk = instagram_web_api.media_pk_from_url(POST_URL) post_info = instagram_web_api.media_info(media_pk) ...
you can use Telegram Bot API
Why ?
But if you don't prefer this way, you can
your code.
I can suggest a few tools for these operations: