1
0
Fork 0
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:
Alex Raubach 2018-08-31 23:36:23 -04:00
parent fe76b5427b
commit 571e262735

View file

@ -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]'):