mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-14 12:54:29 +01:00
adapter_deviantartcom: Add another way to remove comments section.
This commit is contained in:
parent
bd41796231
commit
cf28bc26f0
1 changed files with 6 additions and 0 deletions
|
|
@ -226,6 +226,12 @@ class DeviantArtComSiteAdapter(BaseSiteAdapter):
|
|||
comments = soup.select_one('[data-hook=comments_thread]')
|
||||
if comments:
|
||||
comments.decompose()
|
||||
# previous search not always found in some stories.
|
||||
# <div id="comments"></div> inside the real containing
|
||||
# div seems more common
|
||||
commentsdiv = soup.select_one('div#comments')
|
||||
if commentsdiv:
|
||||
commentsdiv.parent.decompose()
|
||||
|
||||
content = soup.select_one('[data-id=rich-content-viewer]')
|
||||
if content is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue