forked from dogriffiths/rssgossip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
36 lines (27 loc) · 1.7 KB
/
README
File metadata and controls
36 lines (27 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
RSS GOSSIP
==========
I have tried to use a very simple Python module to read the contents of an RSS feed and look for a key phrase using a C program.
Using different process to search from different RSS feeds. A lot of system call is involved in the C code.
For example, to look for stories about 'Snooki' in the MSN Entertainment feed, you can do this:
1. create a file named links and paste http://www.msn.com/rss/MsnEntertainment.aspx in it.
2. ./rss_feed 'Snooki'
Why does the script configure the feed using an environment variable? Because this module was written as
an example program for the book Head First C (http://shop.oreilly.com/product/0636920015482.do). The book
needed an example external program that required command line arguments as well as environment variables.
If you want the script to search more than one feed, set RSS_FEED a list of space-separated URLs.
The search string can be a regular expression. So:
./rssgossip.py 'lohan|britney|kardashian'
will find stories containing any of the three names.
License
=====
rss_feed - Copyright (c) Santosh Kumar Shaw 2017
rss_feed is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
HoloIRC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with devChat. If not, see <http://www.gnu.org/licenses/>.