Coder Social home page Coder Social logo

vedderpradhan / redditanalyst Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raymondev/redditanalyst

0.0 0.0 0.0 94 KB

A python script that gets the posts in r/depression by the top specified redditors of a desired subreddit

License: BSD 3-Clause "New" or "Revised" License

Python 99.80% Batchfile 0.20%

redditanalyst's Introduction

Reddit Analyst

A python script that gets the posts in r/depression by the top specified redditors of a desired subreddit

.

Before using the script, you need to create your own Reddit App, and enter the Cliend ID and the secret token in the specified section of the code. Click here to create it

.

How it works

This script gets the top specified redditors (from hot) that posted on a desired subreddit and analizes their account to se if they ever posted on r/depression. Then, returns the number of all the posts of r/depression by the top specified number of users (from hot) of a desired subreddit. The script can be slightly modified to show the posts of the users, simply uncomment line __ of the main.py file.

It also displays the amount of time that my computer took to analyze every subreddit.

This repository also includes a graph.py script, that, after specifying the needed info, graphs your results. In a future update, I will combine both of them.

Simple explanation of what this code means:

This script shows how many posts in r/depression were published by people who also posted on a specified subreddit

Example:

I tried my code with some subreddits that I thought they would be interesting to see the results and made a graph out of it.

Graph

Requisites:

This program requires PRAW

pip install praw

Beepy

pip install beepy

Matplotlib (for the graph script)

pip install matplotlib

Installing

  • Download or clone the repository.
  • Execute the Python file (with launcher.bat or witht any other prefered method)
  • A command prompt window should appear.

How to use:

  • Create the reddit bot
  • Execute the script (a command prompt window should appear)
  • Introduce the desired subbredit to analyse.
  • Press enter
  • Wait until the programm makes a sound.
  • Press enter. A txt file will be created with the exact same information as the terminal.
  • (optional) Graph the info with the graph.py file

Works for sure on:

  • Windows 10 with Python 3.9

redditanalyst's People

Contributors

raymondev 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.