Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jklmnn/directory2rss
Generate an RSS feed from Apache and nginx index pages
https://github.com/jklmnn/directory2rss
rss rss-feed rss-generator
Last synced: 2 months ago
JSON representation
Generate an RSS feed from Apache and nginx index pages
- Host: GitHub
- URL: https://github.com/jklmnn/directory2rss
- Owner: jklmnn
- License: unlicense
- Created: 2018-03-06T18:29:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-19T14:04:44.000Z (over 5 years ago)
- Last Synced: 2023-02-26T20:47:08.157Z (almost 2 years ago)
- Topics: rss, rss-feed, rss-generator
- Language: Python
- Homepage:
- Size: 125 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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=[&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](https://github.com/jklmnn/directory2rss/raw/master/d2rss.png)
# 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