add tiktok
Marco Andronaco andronacomarco@gmail.com
Sat, 26 Aug 2023 23:16:29 +0200
3 files changed,
11 insertions(+),
4 deletions(-)
M
.vscode/launch.json
→
.vscode/launch.json
@@ -8,9 +8,8 @@ {
"name": "Python: Bot", "type": "python", "request": "launch", - "program": "main.py", - "console": "integratedTerminal", + "module": "escarbot", "justMyCode": true - } + }, ] }
M
escarbot/replace.py
→
escarbot/replace.py
@@ -51,6 +51,14 @@ {
"regex": re.compile(r"(?:https?:\/\/)?(?:www\.)?instagram\.com\/((?:reel)|p)\/([A-Za-z0-9_]{11})[\/\?\w=&]*", re_flags), "becomes": "https://ddinstagram.com/{}/{}", }, + { + "regex": re.compile(r"(?:https?:\/\/)?(?:(?:www)|(?:vm))?\.?tiktok\.com\/(@[\w]+)\/?(?:video)?\/?(\d+)?[\S]", re_flags), + "becomes": "https://tnktok.com/{}/{}", + }, + { + "regex": re.compile(r"(?:https?:\/\/)?(?:(?:www)|(?:vm))?\.?tiktok\.com\/([\w]+)\/?", re_flags), + "becomes": "https://vm.tnktok.com/{}/", + }, ] link_message = "Da {}[\.]({}) {}"
M
poetry.lock
→
poetry.lock
@@ -1,4 +1,4 @@
-# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand. [[package]] name = "anyio"