Giter Site home page Giter Site logo

powerbee's Introduction

PowerBee

PowerBee is a reddit downloader, allowing you to save submissions, comments, and content. This is still alpha code! but it is useful.

Usage: After unpacking and installing dependencies, you will need to create an clientID and client secret (OAuth2 tokens) for reddit. You can do that by following the directions given here:

https://github.com/reddit-archive/reddit/wiki/OAuth2-Quick-Start-Example#first-steps

After you have those, enter those values into your PowerBeeConfig.yaml file, replacing the placeholder values. Initialize the main SQLite database by running InitalizeDatabase.py

Now you can begin dowloading from reddit. To start, run "LoadSubredditsToDB.py". This will load the database with all your subscribed subreddits. This process may take a while, depending on reddit's server load.

Next, you can run the "RedditCommentExtractor003.py" script. This script iterates through all your saved subreddits, searching for saved submissions. It will then download up to 1750 of the "best" comments per submission. Note that this can can take a very long time, if you follow a lot of subreddits, and they are very active. For example, I have downloaded 40,099 submissions, from 733 subreddits, totaling some 8,975,214 comments. This took about six months to do, however since PowerBee doesn't repeat itself on downloads, subsequent scheduled runs are now relatively fast.

Dependencies:

Python 3

praw

pywebcopy

pyyaml (Should be in most distributions)

powerbee's People

Contributors

aperrien avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.