This commit is contained in:
yasir 2022-12-25 14:34:12 +07:00
parent 255784f2b1
commit d7cac90473

View file

@ -329,7 +329,8 @@ async def gomov_scrap(_, message):
entry = soup.find_all(class_="entry-header")
DATA = []
for i in entry:
genre = f"{i.find(class_='gmr-movie-on').text}\n" if genre != "" else ""
genre = i.find(class_="gmr-movie-on").text
genre = f"{genre}\n" if genre != "" else ""
judul = i.find(class_="entry-title").find("a").text
link = i.find(class_="entry-title").find("a").get("href")
DATA.append({"judul": judul, "link": link, "genre": genre})