Code Monkey home page Code Monkey logo

redditsaveorganizer's Introduction

Reddit Save Organizer

Trying to create web-app to organize the saved reddit post.

Current Feature:

  • Search through your saved post

Plans

  • Display based on category
  • Drag and drop UI to change the post category and reflect on database

Usage

Configuring Praw (Reddit python interface)

Praw is a library that interfaces with the Reddit API for you. It limits how many requests you can make, and makes it easy to extract the json responses.

You need to do a bit of setup first though in order for the bot to be able to post to Reddit.

Go to: https://www.reddit.com/prefs/apps And select Create App

Give it a name. You have to choose a redirect uri (for some stupid reason, stupid because I’m building a bot, not a webapp, but whatever). I chose http://127.0.0.1

You /will now get a client_id (red box below) and secret (blue box below). Note it down, but keep it secret./

Now, you need to update your praw ini file to remember these settings. Otherwise, you’ll have to put them in your script and thats dangerous (as others might see them).

This page describes how to change praw.ini files: https://praw.readthedocs.io/en/v4.0.0/getting_started/configuration/prawini.html

./app/praw_guide.jpg

Example praw.ini file (inside /app)

[mysavebot]
client_id: <client_id> 
client_secret: <clien_secret> 
password: <password> 
username: <username> 

How to run

  • Your system must have docker and docker-compose installed
  • Clone this repo
  • Configure the praw.ini file and place it inside /app directory
  • cd in the directory with docker-compose.yml
  • Run $ docker-compose up --build -d
    • http://localhost/ to view the site
    • click Fetch button to fetch all your reddit saves and update the database
    • http://0.0.0.0:8081/db/redditsave/ mongo express url to view all your saved posts and comments in mongodb.
  • To stop the docker images
    • docker-compose down

Backend

  • flask app
  • mongodb for database

Frontend

  • react

Acknowledgements

redditsaveorganizer's People

Contributors

utsavdarlami avatar bhabukkunwar avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar Kostas Georgiou avatar  avatar

Forkers

bhabukkunwar

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.