예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 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
예제 #4
0
 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
예제 #5
0
 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
예제 #6
0
 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
예제 #7
0
 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
예제 #8
0
 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
예제 #9
0
 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"]
예제 #10
0
 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"]
예제 #11
0
 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"]
예제 #12
0
 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"]