Forums

How to open photos that are stored at pythonanywhere in browser?

Good afternoon, is it possible to send web links to pictures that are stored on pythonanywhere so that any user can see them in browser? (like https://telegram.org/img/t_logo.png) The format https://www.pythonanywhere.com/user/username/files/home/image.png does not allow this - it asks for registration.

Yes, you can do that -- you'd need to create a website on PythonAnywhere that made that directory publicly visible. This help page explains how to do that.

Thank you!

Can a bot that is hosted on pythonanyware upload generated images there? I need the bot to generate images and place them in such a way that these images can be accessed from the Internet.

If it's running on PythonAnywhere it's no upload involved. It just have to save them as it is part of filesystem that it's running in.