mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-09-11 11:52:07 +08:00
Commit without Fimf re-soup--it's in base_adapter make_soup instead.
This commit is contained in:
@@ -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.*')})
|
||||
|
||||
Reference in New Issue
Block a user