mirror of
https://github.com/kemayo/leech
synced 2025-12-25 01:35:38 +01:00
Find RR cover img src and assign to cover_url
This commit is contained in:
parent
fe76b5427b
commit
571e262735
1 changed files with 2 additions and 1 deletions
|
|
@ -33,7 +33,8 @@ class RoyalRoad(Site):
|
|||
story = Section(
|
||||
title=soup.find('h1', property='name').string.strip(),
|
||||
author=soup.find('meta', property='books:author').get('content').strip(),
|
||||
url=soup.find('meta', property='og:url').get('content').strip()
|
||||
url=soup.find('meta', property='og:url').get('content').strip(),
|
||||
cover_url=soup.find('img', class_='thumbnail')['src']
|
||||
)
|
||||
|
||||
for chapter in soup.select('#chapters tbody tr[data-url]'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue