Coder Social home page Coder Social logo

youcomment's Introduction

A bot for comparing top-level youtube comments and reddit comments for a reddit post that centers around a youtube link.

CircleCI Codacy Badge Coverage Codacy Badge Grade Python Version Heroku App Status

Github Latest Release Github Last Commit Github Issues Github License PRs Welcome

Table of Contents

  1. Installation
  2. Usage
  3. Developing
  4. Configuration
  5. Meet the Bot
  6. Contributing
  7. File Descriptions
  8. Changelog
  9. License

Installation

Python and Git set up

  1. Clone the Repository:

git clone https://github.com/AndresMWeber/youcomment.git

  1. Create a virtual environment for the bot to run in

python3 -m venv venv --no-site-packages

  1. Activate the virtual env

source venv/bin/activate

  1. Install requirements

pip install -r requirements.txt

Configuration

Set up API Access

Key Description
YC_REDDIT_CLIENT_ID The generated field under "personal use script"
YC_REDDIT_CLIENT_SECRET The generated Secret field.
YC_REDDIT_USER The username to your reddit bot.
YC_REDDIT_PASS The password to your reddit bot.
YC_YOUTUBE_API_KEY The API Key you generated for Youtube.
  • WARNING: without these environment variables set, the program will not function.

Usage

You have the option of running the bot in a few different ways:

Python

from youcomment.bot import YouCompareBot
bot = YouCompareBot()
bot.run()
import youcomment.bot

CLI

$ youcomment

Developing

You can run tests using a couple options while within the top git repo folder:

  • python setup.py test
  • python -m unittest discover

Meet the Bot

My current test subreddit it is active in is here:

https://reddit.com/r/you_comment_bot

Feel free to make a new post if you want to test the bot

Contributing

  • If you want to help please feel free to do it.
  • If you need help please fell free to ask me.
  • If you find any bug or exploit please tell me: I will try to fix them or if you want you can fix them and I will include your changes in the project.
  • If you find a way to improve the bot, please share it with everybody.

File Descriptions


File Description
youcomment/ A module for comparing reddit and youtube top-level comments
youcomment/bot.py The actual bot
youcomment/reddit.py The handler for all reddit api commands
youcomment/youtube.py The handler for all youtube api commands
youcomment/database.py The database manager file
youcomment/config.py The configuration file
youcomment/version.py Contains only the project version number
youcomment/data/template.md The message template
tests/ Tests
.circleci/config.yml CircleCI configuration file

Version History

Changelog

License

MIT License

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.