You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clone this repository git clone https://github.com/fossasia/searss
cd into directory cd searss
Install requirements using pip install -r requirements.txt
Usage and Options
Run python rss-generator.py -h to view the help menu.
optional arguments:
-h, --help show this help message and exit
-g, --google Set search engine as Google
-b, --bing Set search engine as Bing
-ddg, --duckduckgo Set search engine as DuckDuckGo
-ask, --askcom Set search engine as Ask.com
-q, --query Specify search query. eg : --query "xkcd comics"
If rss-generator.py is run without any arguments, it will prompt you for the search engine and the query.
$ python rss-generator.py
$ Select the search engine (0 for google / 1 for duckduckgo / 2 for bing / 3 for ask.com): 0
$ What do you want to search for ? >> xkcd comics
Piping into files
To script the rss generator, pipe a query into rss-generator.py and write the result to a file, for example:
python rss-generator.py --google --query "fossasia" > /tmp/fossasia.rss