Search, scrape, and render citation graphs.
Project description
Gref
Getting Started
Use pip to install gref. Then, run Python from the command line.
> pip install gref
> python
Once Python is running, import gref and call the main function.
>>> import gref
>>> gref.main()
Usage
Upon booting gref, we are welcomed and can SEARCH for articles:
Welcome :-)
α > search bibliometrics
PMID: 31995273
Title: Application of bibliometrics in medicine: a historical bibliometrics
analysis.
By: Kokol, Blažun Vošner, Završnik
PMID: 34586077
Title: Scholarly Productivity Evaluation of KL2 Scholars Using
Bibliometrics and Federal Follow-on Funding: Cross-Institution
Study.
By: Qua, Yu, Patel, Dave, Cornelius, Pelfrey
[...]
Once we have an article that we like, we can ADD a new file within the gref
database, and then ADD a new reference (using the PubMed ID) to the active
file:
α > add biblio
Making...
δ > add 31995273
Adding...
Found 31995273...
Now comes the fun part, growing the search! Let's use the GROW command and
specify 5 cycles (each cycle grabs 5 articles):
δ > grow 5
Growing...
Found 34169036...
Found 30951931...
Found 33240559...
Found 34306062...
Found 34150972...
[...]
Finally, let's render out an SVG file, using the command of the same name:
δ > svg
dot -Tsvg gref/gv/biblio.gv -o gref/svg/biblio.svg
Congratulations! You have now rendered your first citation graph. This source vector graphics file supports hyperlinks. Try opening some of the references on the example graph in a new tab. Also, notice the tooltips as you hover over a reference! Otherwise, check out some of the other outputs found in the example database.
Available Commands
| State | Command | Description |
|---|---|---|
| α | ADD | Add a new file to the database, becomes active |
| δ | ADD | Add a new PubMed ID to the active file |
| δ | CSV | Export articles to a table |
| * | EXIT | Exit the program |
| δ | GROW | Find related articles, can specify number of cycles |
| δ | GV | Render out a GV file, this is the base graph |
| * | HELP | Help page for command state and usage |
| α | LOAD | Load a file from the database, becomes active |
| δ | Render out a PDF file | |
| α | PEEK | Peek the files in the database |
| δ | PEEK | Peek the articles in the active file |
| δ | PNG | Render out a PNG file, can specify DPI |
| α | RM | Remove a file from the database |
| * | SEARCH | Search PubMed, query follows command |
| δ | SVG | Render out a SVG file, has hyperlink support |
| δ | TXT ESSAY | Export a fake essay on the topic, can specify word number |
| δ | TXT NGRAM | Export N-grams from all abstracts, can specify N |
| δ | UNLOAD | Unload active file |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 gref-0.1.0.tar.gz.
File metadata
- Download URL: gref-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/3.8.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
349846d465adae5fc796a37ec238cdc7427771cc4cc7cad811f87966a5258086
|
|
| MD5 |
4b6db4b73f545d1d8c0ad0c1b23c1199
|
|
| BLAKE2b-256 |
2a4c845fb757ee902fe6897bd7a32d5030f8cb8feb38fe0d02d15d1ef683daae
|
File details
Details for the file gref-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gref-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/3.8.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d8f47d74452a218b0cd0ea3b87e01a49ee65b1f46cad1161ef0b329a9de15de
|
|
| MD5 |
a3a35fca1d3a5cbbf29bb53055be4cdc
|
|
| BLAKE2b-256 |
5b4e49de7dd5f0e6fb98f9e8d00bdfe17afc11cddc6297ac70a1d6650cb4fd53
|