https://github.com/mevdschee/wped
Wikipedia client for the command line
https://github.com/mevdschee/wped
Last synced: 5 months ago
JSON representation
Wikipedia client for the command line
- Host: GitHub
- URL: https://github.com/mevdschee/wped
- Owner: mevdschee
- Created: 2014-11-11T23:02:26.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-11-13T13:39:18.000Z (about 7 years ago)
- Last Synced: 2025-04-30T16:14:34.719Z (9 months ago)
- Language: PHP
- Size: 66.4 KB
- Stars: 39
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
wped
====

Wikipedia (and Wiktionary) client for the command line
### Requirements
- PHP with Curl
- elinks
### Installation
```
sudo apt-get install php-cli php-curl php-xml elinks
wget https://raw.githubusercontent.com/mevdschee/wped/master/wped.php -O wped
chmod 755 wped
sudo mv wped /usr/bin/wped
sudo ln -s /usr/bin/wped /usr/bin/wikt
```
### Uninstallation
```
sudo rm /usr/bin/wped
sudo rm /usr/bin/wikt
```
### Running
You can search Wikipedia using the following syntax:
```
wped [-f] [-l lang] [search]
```
And if you ran the last line of the installation (optional) you also have a Wiktionary command:
```
wikt [-f] [-l lang] [search]
```
If your search returns only a single result you may give the optional "-f" flag to retrieve the full Wikipedia/Wiktionary document of the first result. You can override the language with a two letter code (ISO 639-1) using the "-l" flag. If you do not enter a language, then the system locale is chosen by default.