diff --git a/tools/redditcrawl.py b/tools/redditcrawl.py index ee4e8ac9..73c96a1a 100755 --- a/tools/redditcrawl.py +++ b/tools/redditcrawl.py @@ -24,7 +24,7 @@ existing_ids.append(item['id']) -for submission in reddit.subreddit('placeAtlas2').new(limit=500): +for submission in reddit.subreddit('placeAtlas2').new(limit=1000): """ Auth setup 1. Head to https://www.reddit.com/prefs/apps @@ -47,6 +47,7 @@ """ #print(dir(submission)) if (submission.id in existing_ids): + print("Found first duplicate!") break if(submission.link_flair_text == "New Entry"): text = submission.selftext diff --git a/web/_js/main.js b/web/_js/main.js index f14b7fee..e7cc174e 100644 --- a/web/_js/main.js +++ b/web/_js/main.js @@ -79,7 +79,7 @@ init(); async function init(){ - let resp = await fetch("./atlas.json"); + let resp = await fetch("/atlas.json"); atlas = await resp.json(); atlas.sort(function (a, b) { if (a.center[1] < b.center[1]) {