Skip to content

Commit

Permalink
Fixed error regarding book with copyright strike (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
sa-tony authored Nov 3, 2020
1 parent 49e4e94 commit d2d958d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion novel_wenku8.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def parse_book(self, volume_title, urls):
self.chapter_links = []

def get_book_name(self, soup):
return re.search(r'《(.*)》小说TXT', str(soup)).group(1)
return soup.select("span b")[0].get_text()


def get_author_name(self, soup):
return re.search(r'<meta content=".*是([\w\s]+?)所写的轻小说', str(soup)).group(1)
Expand Down

0 comments on commit d2d958d

Please sign in to comment.