aboutsummaryrefslogtreecommitdiff
path: root/src/wikiget/__init__.py
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-11-17 14:51:20 -0800
committerCody Logan <cody@lokken.dev>2023-11-17 14:52:11 -0800
commit60ecb1990f4efc07d596182f38953e8a50c1a726 (patch)
treefbcb3e1f0d49a6d4fb489f76ab6ed7c225656436 /src/wikiget/__init__.py
parent06dfda7b5430bfc895a39defad50f184d41281f1 (diff)
parentd78f25717567870d4bb991e9bca7451f925f29ac (diff)
downloadwikiget-60ecb1990f4efc07d596182f38953e8a50c1a726.tar.gz
wikiget-60ecb1990f4efc07d596182f38953e8a50c1a726.zip
Merge branch 'master' into reduce-api-calls
Diffstat (limited to 'src/wikiget/__init__.py')
-rw-r--r--src/wikiget/__init__.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/wikiget/__init__.py b/src/wikiget/__init__.py
index e0584bb..698fe46 100644
--- a/src/wikiget/__init__.py
+++ b/src/wikiget/__init__.py
@@ -15,6 +15,30 @@
# You should have received a copy of the GNU General Public License
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.
+"""Wikiget is a tool for downloading files from MediaWiki sites.
+
+It's similar in conception to download tools like wget, but wikiget can use the name of
+the file or the URL of its description page to get the actual file's URL and download
+it. Additionally, it can download multiple files at once by reading the targets from a
+given text file.
+
+Further documentation can be found in the accompanying README.md file or at
+<https://github.com/clpo13/wikiget>.
+
+Basic usage::
+
+ wikiget [options] FILE
+ wikiget [options] [-a|--batch] BATCHFILE
+
+Examples::
+
+ wikiget File:Example.jpg
+ wikiget --site en.wikipedia.org File:Example.jpg
+ wikiget https://en.wikipedia.org/wiki/File:Example.jpg -o output.jpg
+ wikiget -a -j4 batch.txt
+
+"""
+
from mwclient import __version__ as mwclient_version
from wikiget.version import __version__