def getTitle(self, baseurl): pagehtml = cachedGet(baseurl, None).text soup = BeautifulSoup(pagehtml, "html.parser") try: mangaproperties = list(soup.find_all("div", attrs={"id": "mangaproperties"}))[0] title = list(mangaproperties.find_all("h2", attrs={"class": "aname"}))[0].get_text() return title except Exception: return baseurl
def getTitle(self, baseurl): pagehtml = cachedGet(baseurl, None).text soup = BeautifulSoup(pagehtml, "html.parser") try: mr316 = list(soup.find_all("div", attrs={"class": "mr316"}))[0] title = list(mr316.find_all("h1", attrs={"class": "title"}))[0].get_text() return title except Exception: return baseurl
def getChapterList(self, manga): chapters = [] pagehtml = cachedGet(manga.baseurl, None).text soup = BeautifulSoup(pagehtml, "html.parser") manga_detail = list(soup.find_all("div", attrs={"class": "manga_detail"}))[0] detail_list = list(manga_detail.find_all("div", attrs={"class": "detail_list"}))[0] ul1 = list(detail_list.find_all("ul"))[0] id = 0 for li in reversed(ul1.find_all("li")): id += 1 chapters.append(self.extractChapter(manga.mangatitle, li, id)) return chapters
def getTitle(self, baseurl): pagehtml = cachedGet(baseurl, None).text soup = BeautifulSoup(pagehtml, "html.parser") try: mangaproperties = list( soup.find_all("div", attrs={"id": "mangaproperties"}))[0] title = list( mangaproperties.find_all("h2", attrs={"class": "aname"}))[0].get_text() return title except Exception: return baseurl
def getChapterList(self, manga): chapters = [] pagehtml = cachedGet(manga.baseurl, None).text soup = BeautifulSoup(pagehtml, "html.parser") listing = list(soup.find_all("table", attrs={"id": "listing"}))[0] rows = listing.find_all("tr") id = 0 for tr in rows: id += 1 a_tag = tr.find("a") if a_tag is not None: chapters.append(Chapter(manga.title, a_tag.get_text(), manga.baseurl + a_tag["href"], id)) return chapters
def getChapterList(self, manga): chapters = [] pagehtml = cachedGet(manga.baseurl, None).text soup = BeautifulSoup(pagehtml, "html.parser") manga_detail = list( soup.find_all("div", attrs={"class": "manga_detail"}))[0] detail_list = list( manga_detail.find_all("div", attrs={"class": "detail_list"}))[0] ul1 = list(detail_list.find_all("ul"))[0] id = 0 for li in reversed(ul1.find_all("li")): id += 1 chapters.append(self.extractChapter(manga.mangatitle, li, id)) return chapters
def getChapterList(self, manga): chapters = [] pagehtml = cachedGet(manga.baseurl, None).text soup = BeautifulSoup(pagehtml, "html.parser") listing = list(soup.find_all("table", attrs={"id": "listing"}))[0] rows = listing.find_all("tr") id = 0 for tr in rows: id += 1 a_tag = tr.find("a") if a_tag is not None: chapters.append( Chapter(manga.title, a_tag.get_text(), manga.baseurl + a_tag["href"], id)) return chapters
def getImageUrl(self, currentpageurl): pagehtml = cachedGet(currentpageurl, None).text soup = BeautifulSoup(pagehtml, "html.parser") a = list(soup.find_all("img", attrs={"id": "image"}))[0] return a["src"]
def getNextPage(self, currentpageurl): pagehtml = cachedGet(currentpageurl, None).text soup = BeautifulSoup(pagehtml, "html.parser") viewer = list(soup.find_all("section", attrs={"id": "viewer"}))[0] a = list(viewer.find_all("a"))[0] return self.pagebaseurl + a["href"]
def getImageUrl(self, currentpageurl): pagehtml = cachedGet(currentpageurl, None).text soup = BeautifulSoup(pagehtml, "html.parser") a = list(soup.find_all("img", attrs={"id": "img"}))[0] return a["src"]
def getNextPage(self, currentpageurl): pagehtml = cachedGet(currentpageurl, None).text soup = BeautifulSoup(pagehtml, "html.parser") viewer = list(soup.find_all("id", attrs={"id": "imgholder"}))[0] a = list(viewer.find_all("a"))[0] return a["href"]