mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 21:11:59 +02:00
Commit without Fimf re-soup--it's in base_adapter make_soup instead.
This commit is contained in:
parent
0284fa7e78
commit
7824361518
1 changed files with 1 additions and 3 deletions
|
|
@ -121,9 +121,7 @@ class FimFictionNetSiteAdapter(BaseSiteAdapter):
|
|||
##----------------------------------------------------------------------------------------------------
|
||||
## Extract metadata
|
||||
|
||||
#re-souping because BS4 can apparently get confused by badly-nested tags in the story description,
|
||||
#this ensures the final soup is made from clean HTML
|
||||
storyContentBox = self.make_soup(unicode(soup.find('div', {'class':'story_content_box'})))
|
||||
storyContentBox = soup.find('div', {'class':'story_content_box'})
|
||||
|
||||
# Title
|
||||
title = storyContentBox.find('a', {'class':re.compile(r'.*\bstory_name\b.*')})
|
||||
|
|
|
|||
Loading…
Reference in a new issue