diff --git a/inquisitor/templates.py b/inquisitor/templates.py index 42c5e75..50487b8 100644 --- a/inquisitor/templates.py +++ b/inquisitor/templates.py @@ -104,6 +104,8 @@ class LinearCrawler: class RedditScraper: """ An engine for generating items from subreddits. + Requires defining source, subreddit_name + fetch new with RedditScraper.fetch_new(state, __name__, reddit) """ @staticmethod def fetch_new(state, name, reddit): @@ -170,7 +172,7 @@ class RedditScraper: def get_body(self, post): parts = [] if not post.is_self: - parts.append(f'link post') + parts.append(f'link: {post.url}') if hasattr(post, 'preview'): try: previews = post.preview['images'][0]['resolutions']