diff --git a/facebookbot/facebook-page-post-scraper/get_fb_posts_fb_group.py b/facebookbot/facebook-page-post-scraper/get_fb_posts_fb_group.py index f221033..129fa78 100644 --- a/facebookbot/facebook-page-post-scraper/get_fb_posts_fb_group.py +++ b/facebookbot/facebook-page-post-scraper/get_fb_posts_fb_group.py @@ -25,7 +25,7 @@ def request_until_succeed(url): success = False while success is False: try: - response = urlopen(req) + response = requests.get(url).json() if response.getcode() == 200: success = True except Exception as e: diff --git a/repo/examples/_inspirata.checkpoint b/repo/examples/_inspirata.checkpoint new file mode 100644 index 0000000..6d5eba6 Binary files /dev/null and b/repo/examples/_inspirata.checkpoint differ diff --git a/repo/examples/blacklist.txt b/repo/examples/blacklist.txt new file mode 100644 index 0000000..e69de29 diff --git a/repo/examples/comment.txt b/repo/examples/comment.txt new file mode 100644 index 0000000..e69de29 diff --git a/repo/examples/hashtagsdb.txt b/repo/examples/hashtagsdb.txt new file mode 100644 index 0000000..e69de29 diff --git a/repo/examples/setting.txt b/repo/examples/setting.txt new file mode 100644 index 0000000..ff162bf --- /dev/null +++ b/repo/examples/setting.txt @@ -0,0 +1,19 @@ +1000 +1000 +350 +350 +100 +100 +2000 +10 +7500 +10 +10 +2 +3 +10 +10 +30 +30 +60 +None diff --git a/repo/examples/usersdb.txt b/repo/examples/usersdb.txt new file mode 100644 index 0000000..e69de29 diff --git a/repo/examples/whitelist.txt b/repo/examples/whitelist.txt new file mode 100644 index 0000000..e69de29