Giter Site home page Giter Site logo

ivanbueno / redditcrosspostbot Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 2.0 17 KB

Reddit CrossPost Bot (Reddit XPost Bot) searches for [keywords] in the title of a [source] subreddit, and crossposts the results to a [destination] subreddit.

License: MIT License

Python 100.00%
reddit-bot reddit reddit-api praw crosspost-bot python redditbot subreddit xposted xpost

redditcrosspostbot's Introduction

Reddit CrossPost Bot (Reddit XPost Bot)

A Reddit bot that searches for [keywords] in the title of a [source] subreddit, and crossposts the results to a [destination] subreddit.

Installation

Requirements

  • python3
  • pip install praw
  • pip install pyyaml

Configuration

  1. Copy crosspost.ini.sample to crosspost.ini
  2. Fill the following values:
[default]
xpost_db=/full/path/to/crosspost.db
xpost_searches=/full/path/to/crosspost.yaml
client_id=
client_secret=
user_agent=
username=
password=

crosspost.db will be automatically created if it doesn't exist.

  1. Copy crosspost.yaml.sample to crosspost.yaml.
  2. Setup the destination subreddit, keywords, and source subreddit.
destinationsubreddit1:
  keywords:
    - Keyword to Search For
    - Another keyword
  sources:
    - subredditsource1
    - subredditsource2
fruitsalad:
  keywords:
    - apple
    - orange
  sources:
    - fruitstand
    - trees
  • Multiple destinations, keywords, and sources can be set.
  • In the example above, crosspost bot will search for "apple" and "orange" in the titles of the hottest post from "fruitstand" and "trees" subreddits.
  • If posts are found with the matching keywords, the bot will crosspost (xpost) the submissions to "fruitsalad" subreddit.

Tips

  • Add your bot as a moderator to the destination subreddit to prevent any throttling restrictions.

References

redditcrosspostbot's People

Contributors

ivanbueno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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