"find" title

This commit is contained in:
2023-03-17 22:30:01 -04:00
parent 7f50b237ae
commit ca7a0c026a

View File

@@ -18,7 +18,7 @@ async def search(txt):
print(doc.title)
if 'not found' in doc.title:
if 'not found' in doc.find('title').get_text():
return None
ref = doc.find('div', {'id': 'citation'}).get_text()
@@ -26,7 +26,7 @@ async def search(txt):
return {
'ref': ref,
'pdf': f"{url}/{pdf}"
'pdf': pdf[2:]
}
@bot.event