1
0
Fork 0
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:
David Lynch 2016-04-04 09:58:47 -05:00
parent 9eb5b270ab
commit d9e65e5b6a

View file

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