got assets

This commit is contained in:
2023-04-20 17:54:02 -07:00
parent 99cb290793
commit 78bee91e9c
55 changed files with 18 additions and 1 deletions

14
valeriaassetscrape.py Executable file
View File

@@ -0,0 +1,14 @@
import re
import os
filestring = ""
with open("ttsassets", encoding="utf8", errors="ignore") as my_file:
filestring = my_file.read()
pattern = r"https://.*\.(jpg|png)"
match = re.search(pattern, filestring)
with open("asseturls.txt", "w") as dump:
for url in match:
dump.write(url)