Scrape wikipedia to get to psychology/philosophy
Project description
WikiPsy
Provides multiple functionalities for scraping wikipedia, the centerpoint being getting to psychology.
Installation
Use pip:
pip install wikipsy
And then run
❯ wikipsy --help
Usage: wikipsy [OPTIONS] COMMAND [ARGS]...
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the installation. │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ graph-multiple Given multiple wikipedia pages, scrapes and generated a directed graphviz source file showing the those articles' path to Psychology. For ease of use, direct the │
│ output of this command into a graphviz dot file. │
│ psychology Scrapes the leading hyperlink of Wikipedia pages recursively until the page "Psychology" is reached. │
│ scrape Scrape a Wikipedia page for its hyperlinks. Ignores the topmost note section and links in parenthetical sentences. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wikipsy-1.2.4.tar.gz
(6.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wikipsy-1.2.4.tar.gz.
File metadata
- Download URL: wikipsy-1.2.4.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1be09855be775e27253573745e84b34e0a9f0bd8b9a44660d324856bb181cb4
|
|
| MD5 |
0b3311d951bfc0d42ec3d0d72182eb16
|
|
| BLAKE2b-256 |
241fe591cfa12f2fbe600830c64b9732697cf96c671a54d729e1be0ea2f76078
|
File details
Details for the file wikipsy-1.2.4-py3-none-any.whl.
File metadata
- Download URL: wikipsy-1.2.4-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c175a4bcbd7f376860acda9d9cdb1bb460c1ea2c6c9c40f0a82b8eb5121373db
|
|
| MD5 |
b7c4942d04ca2de9a1c81f39603c545e
|
|
| BLAKE2b-256 |
a17435d93aee8e385fc1787d04cb81abaf4a99feac3162c944feec47567f55e6
|