Scrape wikipedia to get to psychology/philosophy
Project description
WikiPsy
Provides multiple functionalities for scraping wikipedia, the centerpoint being getting to psychology or philosophy.
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.5.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.5.tar.gz.
File metadata
- Download URL: wikipsy-1.2.5.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 |
7bf1f3dc13bc87429d123626c4d20e82566c051fce6f33d1f9a96b7fdfba125b
|
|
| MD5 |
24d47b05c606c2ef3bbbe8271e50c88d
|
|
| BLAKE2b-256 |
6d3e9371053970b5ed467db72b7079d8805a8e2b929fda2bca8b57305f2befdb
|
File details
Details for the file wikipsy-1.2.5-py3-none-any.whl.
File metadata
- Download URL: wikipsy-1.2.5-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 |
4f9a57e67b3e3b85de6a4d6a6de0bb32e718110954048265b99b8451a6d5beb4
|
|
| MD5 |
dc9d5d88ae552d3d7bac135e60a076ba
|
|
| BLAKE2b-256 |
3480befa6a4079beee26a29bc72c7e22a98e36238d20f52034e5d44c9fce9594
|