"find" title
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user