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:
parent
496d5bc00c
commit
3ab29caee1
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue