From d847c2c02c7c93413f56432f13ae513104186ebd Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Wed, 22 Jul 2020 16:29:06 -0700 Subject: Update README Remove mention of filename without File: or Image: prefix. Clarify use of --path flag when a fully-qualified URL is used. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a423ee0..1d9de8b 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,15 @@ Requires Python 3.5+. Get it with `pip install --user wikiget`. `wikiget [-h] [-V] [-q | -v] [-f] [-s SITE] [-p PATH] [--username USERNAME] [--password PASSWORD] [-o OUTPUT | -a] FILE` -If `FILE` is in the form `File:Example.jpg` or `Example.jpg`, it will be fetched -from the default site, which is "commons.wikimedia.org". If it's the +If `FILE` is in the form `File:Example.jpg` or `Image:Example.jpg`, it will be +fetched from the default site, which is "commons.wikimedia.org". If it's the fully-qualified URL of a file description page, like `https://en.wikipedia.org/wiki/File:Example.jpg`, the file is fetched from the specified site, in this case "en.wikipedia.org". Full URLs may contain characters your shell interprets differently, so you can either escape those characters with a backslash `\` or surround the entire URL with single `'` or -double `"` quotes. +double `"` quotes. Use of a fully-qualified URL like this may require setting +the `--path` flag (see next paragraph). The site can also be specified with the `--site` flag, though this will not have any effect if the full URL is given. Non-Wikimedia sites should work, but you -- cgit v1.2.3