예제 #1
0
 def __init__(self, soup, url):
     # parent class init
     WordpressSites.__init__(self, soup)
     Magna.__init__(self, soup, url)
     # stuff to be replaced
     self.replace = {
         "title": "– Mmscans",
         "chapter_title": "- Mmscans",
     }
     # website source
     self.source = "MM-Scans.com"
     # required for accessing the chapters of the manga
     self.ajax_url = "https://mm-scans.com/wp-admin/admin-ajax.php"
예제 #2
0
    def extract_chapters(self):
        # get the chapters
        chapter_container = self.soup.find("ul", class_="list-chapter")
        chapters = []

        for chapter in chapter_container.find_all("li"):
            # get the chapter page and title
            i = {}
            i["chapter_name"] = chapter.find("span", class_="chapter-text").get_text()
            i["chapter_url"] = chapter.find("a")["href"]
            i["b64_hash"] = Magna.encode_base64(
                href=chapter.find("a")["href"]
            )  # hash to base64 for url purposes

            # append to list
            chapters.append(i)

        return chapters.reverse()
예제 #3
0
    def extract_chapters(self):
        # get the chapters
        chapter_container = self.soup.find("div", id="tab-chapper").find("table")
        chapters = []

        for chapter in chapter_container.find_all("tr"):
            # get the chapter page and title
            i = {}
            i["chapter_name"] = chapter.find("a").find("b").get_text()
            i["chapter_url"] = self.initial + chapter.find("a")["href"]
            i["b64_hash"] = Magna.encode_base64(
                href=self.initial + chapter.find("a")["href"]
            )  # hash to base64 for url purposes

            # append to list
            chapters.append(i)

        return chapters
예제 #4
0
    def extract_chapters(self):
        # get the chapters
        chapter_container = self.soup.find("table",
                                           id="chapter_table").find("tbody")
        chapters = []

        for chapter in chapter_container.find_all("tr"):
            # get the chapter page and title
            i = {}
            i["chapter_name"] = chapter.find(
                "td", id="chapter-part").get_text()  # get the first td
            i["chapter_url"] = self.base_url + chapter["data-href"]
            i["b64_hash"] = Magna.encode_base64(
                href=self.base_url +
                chapter["data-href"])  # hash to base64 for url purposes

            # append to list
            chapters.append(i)

        return chapters
예제 #5
0
    def extract_chapters(self):
        # get all the chapter containers, . since the manga can contain volumes
        chapter_containers = self.soup.find_all("ul", class_="chapter")
        chapters = []

        for i in chapter_containers:
            for chapter in i.find_all("li"):
                # get the last link
                last_link = chapter.find_all("a")[-1]

                # get the chapter page and title
                i = {}
                i["chapter_name"] = chapter.find(
                    "a"
                ).get_text()  # this is the first link
                i["chapter_url"] = self.base_url + last_link["href"]
                i["b64_hash"] = Magna.encode_base64(
                    href=self.base_url + last_link["href"]
                )  # hash to base64 for url purposes

                # append to list
                chapters.append(i)

        return chapters
예제 #6
0
 def __init__(self, soup, url):
     MStreamWP.__init__(self, soup)
     Magna.__init__(self, soup, url)
     self.source = "AsuraScans.com"
     self.err_title = "Page not found"
     self.def_title = "- Asura Scans"
예제 #7
0
 def __init__(self, soup, url):
     MStreamWP.__init__(self, soup)
     Magna.__init__(self, soup, url)
     self.source = "Flame-Scans.com"
     self.err_title = "Not Found, Error 404"
     self.def_title = "| FLAME-SCANS"
예제 #8
0
 def __init__(self, soup, url):
     GenkanWP.__init__(self, soup)
     Magna.__init__(self, soup, url)
     self.base_url = "https://reaperscans.com"
     self.source = "Reaperscans.com"
     self.title = "Reaper Scans -"
예제 #9
0
 def __init__(self, soup, url):
     GenkanWP.__init__(self, soup)
     Magna.__init__(self, soup, url)
     self.base_url = "https://methodscans.com"
     self.source = "Methodscans.com"
     self.title = "Method Scans -"
예제 #10
0
 def __init__(self, soup, url):
     GenkanWP.__init__(self, soup)
     Magna.__init__(self, soup, url)
     self.base_url = "https://lynxscans.com/"
     self.source = "LynxScans.com"
     self.title = "Secret Scans -"
예제 #11
0
 def __init__(self, soup, url):
     GenkanWP.__init__(self, soup)
     Magna.__init__(self, soup, url)
     self.base_url = "https://zeroscans.com"
     self.source = "ZeroScans.com"
     self.title = "Zero Scans -"