Skip to content

Commit

Permalink
modify behaviour of optionnal method in Novel class
Browse files Browse the repository at this point in the history
  • Loading branch information
safirex committed Jul 8, 2023
1 parent c0653e9 commit c4a8b1d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import re
import sys
from bs4 import BeautifulSoup
import warnings

from src.Chapters import *

Expand Down Expand Up @@ -231,7 +232,7 @@ def parseOnlineChapterList(self, html) -> list:

def parseTocResume(self, html=''):
""" format and interpret the content of the home page of the novel """
raise("parseTocResume method is not defined")
warnings.warn("This class doesn't have a method to parse the table of content's resume.")

def processNovel(self):
print("novel " + self.titre)
Expand Down Expand Up @@ -437,10 +438,6 @@ def parseTitle(self, TocHTML):
# '<p class="widget-episodeTitle js-vertical-composition-item">(.*?)<', TocHTML)[0]
return chapter_title

def parseTocResume(self, html=''):
print("no toc resume parser")
pass

def parseOnlineChapterList(self, html) -> list:
soup = BeautifulSoup(html, 'html.parser')
# print(soup.find_all("a", "widget-toc-chapter"))
Expand Down

0 comments on commit c4a8b1d

Please sign in to comment.