This repository has been archived on 2022-08-02. You can view files and clone it, but cannot push or open issues or pull requests.
Twxtter-main/readme.md

22 lines
1.1 KiB
Markdown
Raw Normal View History

2021-07-04 01:52:30 +02:00
# TwitFix
very basic flask server that fixes twitter embeds in discord by using youtube-dl to grab the direct link to the MP4 file and embeds the link to it in a custom page
This does work! but I'm new to flask, so it can probably be improved a great deal.
## How to use (discord side)
2021-07-04 03:21:22 +02:00
just put the url to the server, and directly after, the full URL to the tweet you want to embed
I have a version running on my computer, I don't promise it'll be up all the time, but for now, you can use it by using the url
`http://twtfx.me/<twitter url>`
2021-07-04 01:52:30 +02:00
## How to run (server side)
this script uses the youtube-dl python module, along with flask, so install those with pip (you can use `pip install -r requirements.txt`) and start the server with `python twitfix.py` ( will need sudo if you leave it at port 80 )
2021-07-04 01:52:30 +02:00
By default I have the port set to 80, just cause that's what was convenient for me, but it can easily be changed, either using an environment variable, or changing the bottom line of the script itself
2021-07-04 03:21:22 +02:00
This project is licensed under the **Do What The Fuck You Want Public License**
2021-07-04 01:52:30 +02:00