mirror of
https://github.com/kemayo/leech
synced 2025-12-06 08:22:56 +01:00
Add a little documentation on the extract method
This commit is contained in:
parent
9eb5b270ab
commit
d9e65e5b6a
1 changed files with 10 additions and 0 deletions
|
|
@ -21,6 +21,16 @@ class Site:
|
|||
raise NotImplementedError()
|
||||
|
||||
def extract(self, url):
|
||||
"""Download a story from a given URL
|
||||
|
||||
Args:
|
||||
url (string): A valid URL for this Site
|
||||
Returns:
|
||||
story (dict) containing keys:
|
||||
title (string)
|
||||
author (string)
|
||||
chapters (list): list of tuples, in form (title, HTML, datetime)
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def login(self, login_details):
|
||||
|
|
|
|||
Loading…
Reference in a new issue