Update web_scraper.py

This commit is contained in:
yasirarism 2023-01-12 11:16:51 +07:00 committed by GitHub
parent fda13b3a91
commit e0e75d2b56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,7 +215,7 @@ async def getDataSavefilm21(msg, kueri, CurrentPage):
data = await http.get(f'https://185.99.135.215/?s={kueri}', headers=headers)
text = BeautifulSoup(data.text, "lxml")
entry = text.find_all(class_="entry-header")
if "Nothing Found" in entry[0].text:
if "Tidak Ditemukan" in entry[0].text:
if not kueri:
return await msg.edit("404 Not FOUND!")
else: