I have a Discord bot written in Python and I wanted to add a feature that would make it immediately delete any phishing links it finds.
I looked for a list of known phishing domains and I found this on GitHub.
However the issue is that this is a JS file with one big array, and my bot is 100% Python.
I could just make a copy of this list, but then I lose the advantage of it being constantly updated, so I would like to read the domains directly from GitHub, if possible.
I am not sure how to get and parse this into a Python list.
Looking around on StackOverflow people are suggesting parsing the data as JSON, or using regex, but unfortunately I haven't understood it all yet.
Guidance would help - or maybe you have a better way of doing things altogether rather than this approach! Thank you