Metadata-Version: 2.3
Name: print-wp-sources
Version: 0.2
Summary: Print sources from Wikipedia articles to stdout.
Project-URL: Homepage, https://codeberg.org/hyperreal/print-wp-sources
Project-URL: Issues, https://codeberg.org/hyperreal/print-wp-sources/issues
Author-email: Jeffrey Serio <hyperreal@fedoraproject.org>
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: beautifulsoup4>=4.12.3
Description-Content-Type: text/markdown

# print-wp-sources

This program just prints the sources of the given Wikipedia article to standard output.

## Installation

``` shell
pipx install print-wp-sources
```

## Usage

Use the Wikipedia article's name as the argument to `print-wp-sources`. For example, if the article's URL is `https://en.wikipedia.org/wiki/Automatic_negative_thoughts`, then the argument for `print-wp-sources` would be `"Automatic_negative_thoughts"`.

``` shell
print-wp-sources "Automatic_negative_thoughts"

Output:
https://pubmed.ncbi.nlm.nih.gov/26431418
https://www.theguardian.com/lifeandstyle/2014/aug/11/how-to-silence-negative-thinking
https://www.inc.com/chris-winfield/is-stomping-ants-the-key-to-living-a-happier-life.html
https://doi.org/10.1007%2Fbf01178214
https://api.semanticscholar.org/CorpusID:22915336
https://www.huffingtonpost.com/entry/how-to-stop-automatic-negative-thoughts_us_58330f18e4b0eaa5f14d4833
https://doi.org/10.1037%2F0022-006x.51.5.721
https://pubmed.ncbi.nlm.nih.gov/6630686
https://wikimediafoundation.org/
```

> Note: make sure to use quotes around the article name in the argument to `print-wp-sources`.

One can also easily pipe the output to a file.

``` shell
print-wp-sources "Automatic_negative_thoughts" > sources.txt
print-wp-sources "Python_(programming_language)" | tee sources.txt
```
