This commit is contained in:
fireworks88 2021-10-27 10:48:16 +02:00
parent 2b20b35aa7
commit 85aab7de78

View file

@ -865,6 +865,7 @@ def submit_post(v):
# archive other urls in post # archive other urls in post
url_regex = '<a href=\"(https?://[a-z]{1,20}\.[^\"]+)\">(.+)</a>' url_regex = '<a href=\"(https?://[a-z]{1,20}\.[^\"]+)\">(.+)</a>'
print(new_post.body_html)
for url_match in re.finditer(url_regex, new_post.body_html): for url_match in re.finditer(url_regex, new_post.body_html):
href = url_match.group(1) href = url_match.group(1)
print(href) print(href)