en:user_advanced:command_line_download
Differences
This shows you the differences between two versions of the page.
| — | en:user_advanced:command_line_download [2023/03/13 01:46] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | |||
| + | |||
| + | |||
| + | ====== Downloading from the command line====== | ||
| + | |||
| + | Greenstone allows you to download files from the internet using a variety of protocols: | ||
| + | * **[[en: | ||
| + | * **[[en: | ||
| + | * **[[en: | ||
| + | * **[[en: | ||
| + | * **[[en: | ||
| + | |||
| + | This can be done from either the [[en: | ||
| + | |||
| + | |||
| + | <tabbox Greenstone3> | ||
| + | On Windows: | ||
| + | < | ||
| + | gs3-setup | ||
| + | </ | ||
| + | \\ | ||
| + | On Linux/Mac: | ||
| + | < | ||
| + | source gs3-setup.bash | ||
| + | </ | ||
| + | <tabbox Greenstone2> | ||
| + | On Windows: | ||
| + | < | ||
| + | setup | ||
| + | </ | ||
| + | \\ | ||
| + | On Linux/Mac: | ||
| + | < | ||
| + | source setup.bash | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | GLI uses a perl script, **downloadfrom.pl**, | ||
| + | | ||
| + | methods of download (Web, MediaWiki, OAI, Z3950, and SRW) using '' | ||
| + | |||
| + | ^Option^Description^ | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |//This information is also available from the command line: '' | ||
| + | |||
| + | There are also several options available if you are using a proxy: | ||
| + | |||
| + | ^Option^Description^ | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |||
| + | Each download mode also has its own set of additional options, which are outlined on | ||
| + | their respective pages in the documentation ([[en: | ||
| + | those available on the GLI Download panel and can also be viewed by running | ||
| + | '' | ||
| + | and options for downloading via OAI protocol, you would run: | ||
| + | < | ||
| + | perl -S downloadinfo.pl OAIDownload | ||
| + | </ | ||
| + | |||
| + | The download modules names are: | ||
| + | * WebDownload | ||
| + | * MediaWikiDownload | ||
| + | * OAIDownload | ||
| + | * Z3950Download | ||
| + | * SRWDownload (//for SRU/SRW downloads// | ||
| + | |||
| + | Once aware of all of the options, you are able to run the download script. An example download would be: | ||
| + | < | ||
| + | perl -S downloadfrom.pl -document_mode OAI -url http:// | ||
| + | </ | ||
| + | |||
| + | This will try to download 5 records from the set //demo// at the nzdl.org' | ||
| + | |||
| + | The records (and optionally documents) will be downloaded into the folder the script is run from. To change this, use the '' | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Additional Resources ===== | ||
| + | There are several tutorials on downloading files using various protocols: | ||
| + | |||
| + | <tabbox Greenstone3> | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | <tabbox Greenstone2> | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | </ | ||
