mirror of
https://github.com/kemayo/leech
synced 2026-01-19 14:01:55 +01:00
Pull summary and tags for royalroad
This commit is contained in:
parent
4242aa6f63
commit
dc9c9dbe57
1 changed files with 3 additions and 1 deletions
|
|
@ -44,7 +44,9 @@ class RoyalRoad(Site):
|
|||
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(),
|
||||
cover_url=soup.find('img', class_='thumbnail')['src']
|
||||
cover_url=soup.find('img', class_='thumbnail')['src'],
|
||||
summary=str(soup.find('div', property='description')).strip(),
|
||||
tags=[tag.get_text().strip() for tag in soup.select('span.tags a.fiction-tag')]
|
||||
)
|
||||
|
||||
for chapter in soup.select('#chapters tbody tr[data-url]'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue