Text from file stored in web

Hello! you know if it is possible to read Home assistant to a text file stored on the internet?

There are various possible (untested) ways depending the format of the file to do it like the REST sensor or the Command line sensor.

A working example: https://home-assistant.io/components/sensor.command_line/#read-value-out-of-a-remote-text-file

Thank you! You saved me!