discord-urls-extractor
discord-urls-extractor copied to clipboard
Rust program for extracting most URLs from Discord scrapes. Works with Discord History Tracker, discard2, and DiscordChatExporter.
It's used by Discord for emojis: https://cdn.discordapp.com/emojis/821174008284315718.webp?size=44&quality=lossless It does respond with a different image, at least for emojis: (sizes listed in bytes) ``` 1416 821174008284315718.webp?size=44 2236 821174008284315718.webp?size=44&quality=lossless ``` Does it...
This would take a bunch of work. Would it be worth it...? How common is it for URLs to be stored there?
Preferably, the regex should be able to catch that, but alternatively, we could just sanitise the data (with a command-line option to also print the bad one, in case it...
Would unit tests, i.e. with a sample database and a list of expected URLs, be a good addition?
That way people can easily disable functionality they don't want