fossasia/searss

Scripting rss-generator.py shows error

djmgit opened this issue · 0 comments

The following command :

echo "fossasia" | python rss-generator.py > /tmp/fossasia.rss

shows the following error

Traceback (most recent call last):
  File "rss-generator.py", line 138, in <module>
    main()
  File "rss-generator.py", line 120, in main
    search_engine = int(raw_input("Select the search engine (0 for google / 1 for duckduckgo): "))
ValueError: invalid literal for int() with base 10: 'fossasia'

I think this is happenning because the first parameter required is a integer (0 or 1), thats why python is giving the above exception