https://github.com/singhpratyush/save-the-wiki
Command line tool to save Wikipedia article with images as HTML.
https://github.com/singhpratyush/save-the-wiki
Last synced: 8 months ago
JSON representation
Command line tool to save Wikipedia article with images as HTML.
- Host: GitHub
- URL: https://github.com/singhpratyush/save-the-wiki
- Owner: singhpratyush
- License: mit
- Created: 2016-03-15T00:33:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-22T18:37:25.000Z (over 9 years ago)
- Last Synced: 2025-01-26T16:35:01.888Z (9 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# save-the-wiki
A command line tool that save Wikipedia article with images as HTML.
### Sample Run
`Enter search parameter : Call of Duty`
##### Output :
```
Fetching search results
[0]: Call of Duty
[1]: Call of Duty 4: Modern Warfare
[2]: Call of Duty 2
[3]: Call of Duty: Zombies
[4]: Treyarch
[5]: Call of Duty: World at War
[6]: Call of Duty: Black Ops
[7]: Call of Duty: Modern Warfare 2
[8]: Call of Duty: Black Ops – Zombies
[9]: Call of Duty: Ghosts
Enter choice : 0 1 3 6
```
##### Result :
Saved Wikipedia pages of `Call of Duty`, `Call of Duty 4: Modern Warfare`, `Call of Duty: Zombies` and `Call of Duty: Black Ops`.
## Options
* `-q` or `--quiet`
* Quiet mode, no prompts
* Default `not set`
* `-n` or `--number-search`
* Number of search items to display
* Default `10`
* `-r` or `--regex`
* Regex based search (Not available yet)
* Default `not set`
* `-s` or `--search-parameter`
* Search Querry
* `-p` or `--page-name`
* Page name as on Wikipedia
* `-t` or `--text-only`
* Text only mode, no images saved
* Default `not set`
* `-l` or `--language`
* Set language for page
* Default `en` (English)
### Requirements
```
pip install -r requirements.txt
```
* BeautifulSoup4
* requests
* docopt