https://github.com/lkiarest/fetch-remote-dir
Very easy downloader to fetch all listed files from a remote web page via HTTP.
https://github.com/lkiarest/fetch-remote-dir
Last synced: 10 months ago
JSON representation
Very easy downloader to fetch all listed files from a remote web page via HTTP.
- Host: GitHub
- URL: https://github.com/lkiarest/fetch-remote-dir
- Owner: lkiarest
- License: mit
- Created: 2017-04-27T08:30:18.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-27T08:38:16.000Z (about 9 years ago)
- Last Synced: 2025-02-24T08:50:14.913Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fetch-remote-dir
Very easy downloader to fetch all listed files(with anchor element '') from a remote web page via HTTP.
### usage
install:
```
npm install fetch-remote-dir [-g]
```
cli mode:
```
fetch-remote-dir --remote=http://yoursite/dirname --selector="x>y>z" [--target=your/target/dir]
```
program mode:
```
var fetcher = require('fetch-remote-dir')
fetcher.run({
remote: 'http://yoursite/dirname',
selector: 'file>anchor>selector',
target: 'your/target/dir'
})
```
### options
__remote__
> remote url of file list page
__selector__
> jquery-like selector to get all file links(present as element )
__target__
> local directory to save downloaded files