Gather information from file sharing download links
plowprobe [OPTIONS]... [MODULE_OPTIONS]... URL|FILE...
plowprobe is a command-line tool designed for retrieving metadata from file-sharing download links. Information are printed on stdout (only alive links). Provided links can also be downloaded with plowdown(1).
Currently supported hosting sites list is available in README file.
-i, --interface=IFACE
If your machine has several network interfaces, force using IFACE interface.
--printf=FORMAT
Print results (on stdout) in a given format (for each non-dead link). Default string is: "%F%u%n". Interpreted sequences are:
%%
raw % character
%c
probe function return status (0 for success, 13 for dead link, see list below)
%f
filename (can be empty string)
%F
empty if %f is empty, or alias to "# %f%n".
%h
filehash (can be empty string if not available). Usually MD5 or SHA1. If hoster supports several algorithms, the longest digest is used.
%i
file identifier (can be empty string if not available). Usually included in input URL.
%m
module name
%n
newline
%s
filesize in bytes (can be empty string if not available). Note: it's often approximative.
%t
tabulation character
%T
file timestamp (can be empty string if not available). Unix epoch time is preferred.
%u
download (source) url
Note: Metadata are often not fully available from hosters nor implemented by all modules.
-v, --verbose=LEVEL
Set output verbosity level:
0 none,
1 errors,
2 notice (default behavior),
3 debug,
4 report (very noisy, log HTML pages).
-q, --quiet
Alias for -v0. Do not print any debug messages.
--follow
If no module is found for link, follow HTTP redirects (curl -L). Default is disabled.
--get-module
Echo module name for each URL and exit. Faster than --printf=%m. Useful for wrappers.
--no-curlrc
Do not use curl config file (~/.curlrc).
--no-plowsharerc
Do not consider any configuration file.
--plowsharerc=FILE
Force using an alternate configuration file (instead of per-user or systemwide plowshare.conf). This option has no effect when --no-plowsharerc is defined.
--modules
Display all supported module names (one per line) and exit. Useful for wrappers.
-h, --help
Display this help and exit.
-H, --longhelp
Display complete help (with module options) and exit.
--version
Output version information and exit.
There is none yet!
$ plowprobe file_with_links.txt > file_with_active_links.txt # Or $ cat file_with_links.txt | plowprobe - > file_with_active_links.txt
# Print links information: filename and size $ plowprobe --printf '# %f (%s)%n%u%n' http://www.sendspace.com/file/5njdw7
~/.config/plowshare/plowshare.conf
This is the per-user configuration file.
/etc/plowshare.conf
Systemwide configuration file.
The file format is described in plowshare.conf(5).
Possible exit codes are:
Success. Folder contain one or several files.
Fatal error. Upstream site updated or unexpected result.
No available module (provided URL is not supported).
Network error. Mostly curl related.
System generic error.
Link alive but temporarily unavailable.
Link alive but requires a password.
Link alive but requires some authentication (private or premium link).
Link is dead.
Unknown command line parameter or incompatible options.
If plowprobe is invoked with multiple links and one or several errors occur, the first error code is returned added with 100.
Plowshare was initially written by Arnau Sanchez. See the AUTHORS file for a list of some of the many other contributors.
Plowshare is (C) 2010-2014 The Plowshare Team