Skip to content

Script-based website to feed conversion #265

@martinrotter

Description

@martinrotter

Add script-based generic URL-to-feed conversion, similar to what Liferea offers:

  • User will be able to insert path to script, including interpreter and all command line switches, in "Add/Edit feed" dialog.
  • There will be enum which will specify the input mode - Url (default), Script, and maybe File (like Liferea). This will be new "input" column for "Feeds" table.
  • Feed type specified in feed's properties will be what is expected as output of the script. Also, guessing the feed will work with this feature. In other words if user sets Script as input and even some post-processing script, the result will be used as guessing source of course.
  • User will be able to specify the script "interpreter", for example "bash.exe", or "cmd.exe", along with parameters, for example "bash.exe -C %1/myscript.bash 'twitter'". This will be stored in "url" column of "Feeds" table if switch is "Script".
  • User will be able to set "post-processing" filter path which will work the same way as Liferea. Path to post-processing filter will be saved as column in "Feeds" table. These filters feature must be compatible with Liferea.
  • There will be special "%scripts" placeholder for "script" attribute (if in Script mode) and for "post-processing" script. This placeholder will be replaced in runtime by path to "user data scripts" folder (probably juse <rss-guard-data-folder>/scripts which will allow users to place scripts to portable locations.

Liferea docs:
image

Example "script input": php tweeper.php https://twitter.com/NSACareers (downloads RSS XML file generated from twitter page)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions