Added basic ftp spider for scrapy

This commit is contained in:
Simon
2018-06-10 14:12:55 -04:00
parent f1e8183cdf
commit 0304c98a31
7 changed files with 94 additions and 4 deletions

View File

@@ -56,6 +56,7 @@ class TaskManager:
os.remove("data.json")
print("Imported in SQLite3")
# TODO: Extract 'callbacks' for posts and comments in a function
if post_id:
# Reply to post
stats = self.db.get_website_stats(website.id)
@@ -75,6 +76,8 @@ class TaskManager:
print(comment)
reddit_comment = self.reddit_bot.reddit.comment(comment_id)
self.reddit_bot.reply(reddit_comment, comment)
busy.value = 0
print("Done crawling task")