Skip to content

Commit

Permalink
fixed manga scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmicoppai committed Jul 13, 2024
1 parent 56c5614 commit ad5bafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/scraper/manga_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async def __scrape_detail(search_bs: BeautifulSoup) -> List[Dict[str, str]]:

manga["title"] = info.find("h1", {"class": "heading"}).string
meta_data = info.find("ul", {"class": "meta d-table"})
manga["total_chps"] = meta_data.find("div", {"class": "new_chap"}).text.strip(" ").split()[-1]
manga["total_chps"] = int(search_bs.find_all("div", {"class": "chapter"})[0].text.split(": ")[0].split(" ")[1])
manga["genres"] = []
for genre in meta_data.find("div", {"class": "genres"}).find_all("a"):
manga["genres"].append(genre.string)
Expand Down

0 comments on commit ad5bafc

Please sign in to comment.