1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 13:02:38 +00:00

Fix HTML entities appearing in strings

This commit is contained in:
Myned 2019-09-29 23:57:40 -04:00
parent 496d5bc00c
commit 3ab29caee1
No known key found for this signature in database
GPG key ID: BC58C09870A63E59

View file

@ -45,6 +45,8 @@ async def query_kheina(url):
for e in ('"', '''):
content = content.replace(e, '')
content = re.sub('<a href="/cdn-cgi/l/email-protection".+</a>', '', content)
soup = BeautifulSoup(content, 'html5lib')
results = soup.find('data', id='results').string
results = ast.literal_eval(results)