Coder Social home page Coder Social logo

reddit-linkme's Introduction

Reddit LinkMe Bot

This bot watches subreddit comments for the keyword linkme: query1, query2 and replies with relevant information.

This bot currently supports the following platforms:

  • Google Play Store via web scraping their playstore pages
  • iOS App Store via web scraping The AppStore and the web page of the app
  • Steam/console games via IGDB API

Configuration

Before starting the bot, we have to create our configuration file.

Create config.py in the root folder with the following content:

Subreddits under android will be returned with results from Google Play Store

Subreddits under ios will be returned with results from Apple App Store

Subreddits under pc will be returned with results from IGDB

class Config:
    #subreddits to monitor
    android = ['android']
    ios = ['ios']
    pc = ['steam']
    subreddit = ios + android + pc

    #twitch api for IGDB
    twitch_client_id = ''
    twitch_client_secret = ''

    #reddit bot credentials
    username = ''   #reddit bot username
    password = ''   #reddit bot password
    client_id = ''
    client_secret = ''
   
   #additional configurations
    max_apps = 15   #max number of app/games queries to retrieve per comment
    bot_owner = ''  #reddit username of bot owner. Used to overwrite deletion of bot comment replies with !remove

Obtain twitch client ID and secret here

Obtain reddit client ID and secret using scrip with instructions here

Install dependencies in requirements.txt

pip install -r requirements.txt

Finally, start the bot in your console

python app.py

Invoking the bot

The bot will monitor all subreddits in the configuration file, and depending on which category the subreddit is in, will reply with different information.

Reply to a submission or comment with linkme: game1, app1

reddit-linkme's People

Contributors

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