From e5f29624ffb225cd4d29d1c16b44c8607978cfd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 5 Jul 2022 13:52:32 +0200 Subject: [PATCH] changed url MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- save-image.py | 2 +- used-posts.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 used-posts.json diff --git a/save-image.py b/save-image.py index 8c4e688..f80bfc0 100644 --- a/save-image.py +++ b/save-image.py @@ -29,7 +29,7 @@ reddit = praw.Reddit(client_id="TB3qNrAO2cnRkpmI-Vd8hg", with open(current_path+"/used-posts.json", "r") as used_posts_file: used_posts = json.load(used_posts_file) -debugging_message("Getting a post from r/"+subreddit_name) +debugging_message("Getting a post from "+subreddit_name) subreddit = reddit.subreddit(subreddit_name) hot_post = subreddit.hot() for post in hot_post: diff --git a/used-posts.json b/used-posts.json new file mode 100644 index 0000000..58caea8 --- /dev/null +++ b/used-posts.json @@ -0,0 +1 @@ +{"ids": []} \ No newline at end of file