1
0
Fork 0
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:
David Lynch 2021-11-07 13:16:59 -06:00
parent 4242aa6f63
commit dc9c9dbe57

View file

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