Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-rss2irc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jérôme Charaoui
python-rss2irc
Commits
4b13dede
Commit
4b13dede
authored
9 years ago
by
Sebastian Gehaxelt
Browse files
Options
Downloads
Patches
Plain Diff
Added README.md
parent
891a6ea7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+68
-0
68 additions, 0 deletions
README.md
with
68 additions
and
0 deletions
README.md
0 → 100644
+
68
−
0
View file @
4b13dede
Python RSS-2-IRC bot
====
This is a simple bot which fetches RSS feeds and posts them to an IRC channel.
# Requirements
-
python2
-
pip
-
virtualenv (
`pip2 install virtualenv`
)
# Features
-
Saves feeds and newsitems in a sqlite database
-
Fetches every feed in a seperate thread
-
Posts new newsitems to an IRC channel
-
Sends information via private messages
# Bot's commands:
```
Help:
Send all commands as a private message to Feed
- !help Prints this help
- !list Prints all feeds
- !stats Prints some statistics
- !last Prints the last 25 entries
- !lastfeed <feedid> Prints the last 25 entries from a specific feed
```
# Setup
Clone this repository and change into the directory. Create a new virtualenv and activate it:
```
virtualenv venv
. venv/bin/activate
```
Proceed with the installation of all dependencies:
```
pip install -r requirements.txt
```
Copy the sample files:
```
cp config.py.sample config.py
cp feeds.sql.sample feeds.sql
```
Edit
`configs.py`
to fit your needs and IRC settings. All feeds from
`feeds.sql`
will be imported one the first start.
To start the bot, run:
```
python2 main.py
```
# Adding feeds
To add a new feed, edit the
`feeds.sql`
and import it to your sqlite database:
```
sqlite3 feeds.db < feeds.sql
```
And restart the bot.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment