Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Generate an RSS feed from Apache and nginx index pages

License

jklmnn/directory2rss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

directory2rss

directory2rss is a small tool that generates an RSS feed from Apache and nginx index pages to notify about changes. It sets up a small webserver that takes the target URL as parameter and returns the generated RSS feed.

Disclaimer

This software has no security measurements and no access control. It behaves similary to a proxy to everyone that is able to access it. Do not use it in a public unsecured environment. Only use run it on a trusted machine in a trusted network (which mostly only applies to localhost). Also TLS certificates of the target are not checked.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Setup

$ virtualenv venv
$ . venv/bin/activate
$ pip install -r requirements.txt

Configuration

Look up the code.

Usage

To start, run ./d2rss.py.

To add a feed to your preferred feed reader add:

http://localhost:5000/?url=<directory url>[&noverify=yes]

If noverify is added and set to yes HTTPS connections will not be verified.

Example

To read a feed of https://example.com/some_directory just add http://localhost:5000/?url=https://example.com/some_directory to your feed reader.

Screenshot

directory2rss on firefox and akregator

directory2download

directory2download is a tool that uses similar mechanisms as directory2rss to read Apache and Nginx index pages to provide an automatic download tool for their contents. It prints all links it finds to stdout to be used with other tools.

Usage

usage: d2dl.py [-h] [--recursive] [--noverify] [--quote] [--curl]
               [--match MATCH]
               URL
  • -h help
  • --recursive go down directories recursively
  • --noverify don't verify HTTPS certificates
  • --quote print urls in quote for shell use
  • --curl call curl on each url if it is a file
  • --match only use urls that match a given regular expression, the expression must match the whole link including hostname and protocol

About

Generate an RSS feed from Apache and nginx index pages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages