/RSSReply

Takes an RSS Feed and submits a link submission on your subreddit of choice

Primary LanguagePython

RSSReply

Description

A script that takes information from a RSS Feed and submits it onto your subreddit of choice!



Installing Script

  • Download the zip file for this repo.
  • Extract the contents to your desktop.

Installing Python

  • Download Python 3.7
  • During installation - Select the checkbox Add Python to Path or manually adding to Path
  • Open up Command Prompt and type "python", it should tell you the version if its installed correctly.
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

Installing requirements

  • Open up the command prompt. You may type cmd or command prompt in the windows search bar. Your command prompt should look like below
Microsoft Windows [Version 10.0.18362.959]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\AkitotheExiled>

  • Now lets navigate to our directory where we downloaded the script. In the command prompt, type, cd desktop/RSSReply-master Now your command prompt should look like
C:\Users\AkitotheExiled\Desktop\RSSReply-master>
  • Installing requirements.txt so our script can be ran. In the command prompt, type python pip install requirements.txt. Press enter and wait for the command to finish.
C:\Users\AkitotheExiled\Desktop\RSSReply-master>python pip install requirements.txt

Setting your config

username and password

  • Enter your username and password for the account you will be using for the program
USER= user123
PASSWORD= myultrasecretpassword

Secret and Client_ID

  • Go to reddit.com and login to your account. Now select your account name in the top right and select user settings
  • Select Privacy & Security
  • At the very bottom, select Manage third-party app authorization
  • At the very bottom again, select create another app..
  • In the name, type "ParseNReply by ScoopJr"
  • Select the radio button: script
  • In description, type "RSS Parse and Reply"
  • For about url, type "http://localhost"
  • For redirect url, type "http://localhost"
  • Select create app

Secret

  • look next to the text, "Secret", and copy this text down somewhere
SECRET= daklfanlfkanl392r29neorfjs

Client_ID

  • Look at ParseNReply by ScoopJr, and right under Personal Use Script, is our client_id
  • Copy the text and save it somewhere
CLIENT_ID= ddMaksjJsuyeb

Delay

  • The time in seconds before fetching the RSS feed again.
  • This does not have an effect when RUN_ONCE=true
DELAY=300

Subreddit

  • The subreddit you will be running the program in!
mysubredditexample

Rss feed

  • The RSS FEED the program will query for information. Now you can use multiple feeds/subreddits
  • How to find an rss feed's url
  • NEW Added ability to have more than one rss feed for your subreddit
https://n4g.com/rss/news?channel=next-gen&sort=latest

NEW MULTIPLE FEEDS

  • Separate each rss url with a comma
yoursubreddit : https://n4g.com/rss/news?channel=next-gen&sort=latest, https://n4g.com/rss/news?channel=ps5&sort=latest

Run once

  • When true, the script will run one time and then exit. DELAY DOES NOT AFFECT WHEN TRUE
  • When false, the script will loop many times waiting DELAY seconds between runs.
RUN_ONCE=false

Feed type

  • Sometimes RSS feeds contain more than one item(item indicates latest articles/mangas).
  • You can do the following feed_types,
  • latest Grabs the first item only.
  • 1-10 Grabs 1,2,3,4,etc items.
  • one-ten Grabs one,two,three,four,etc items.
  • all Grabs all items available, meaning if your rss feed has items with links from 2018-2020. It will post every article from 2018-2020.
  • I recommend latest as most rss feeds will only ever have one item and the ones that have multiples, the latest article/manga/post is in that one item.
FEED_TYPE=latest

Flair ids

  • Flair ids are not required. Script will issue a warning if no flair ids are mentioned.
  • Grab the flair id for post flairs from your subreddit
  • Flair count must match subreddit count(2 subreddits, 2 flair-template ids needed).
jf82hh3-328dh328-dfj2384r2h,2390423-jfsdf832-fsjsfj28

Putting it together

  • On your desktop, navigate to the extracted folder, RSSReply-master and open it.
  • Open the config.ini file
  • Enter in your information that we've been gathering and save it!

It should now look like this!

[main]
USER =user123
PASSWORD=myultrasecretpassword
CLIENT_ID=ddMaksjJsuyeb
SECRET=daklfanlfkanl392r29neorfjs
DELAY=300
RUN_ONCE=false
FEED_TYPE=latest

[suburl]
mysubredditexample : https://n4g.com/rss/news?channel=next-gen&sort=latest
mysecondsubreddit : https://n4g.com/rss/news?channel=ps3&sort=latest

[flairs]
FLAIR_IDS=jf82hh3-328dh328-dfj2384r2h,2390423-jfsdf832-fsjsfj28

Running your script

  • Make sure your account is a moderator in the subreddit you will be running in!!
  • Time to run your script! In the command prompt, type, python parsereplybot.py. Your command prompt should match the below text
C:\Users\AkitotheExiled\Desktop\RSSReply-master>python parsereplybot.py
  • Press the enter key on your keyboard. The script should be running now :)

Contributing

Issue Tracker: https://github.com/AkitotheExiled/RSSReply/issues

Contact

https://www.reddit.com/user/ScoopJr

To-do List

  • Adding support for multiple subreddits/feeds COMPLETED 9/11/20
  • Added support for flair-template ids for multiple subreddits COMPLETED 9/13/20