Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lolei/copypasta-search
Search and retrieve copypasta on Reddit with Python π¨οΈππ
https://github.com/lolei/copypasta-search
api command-line copypasta python python-module reddit
Last synced: 9 days ago
JSON representation
Search and retrieve copypasta on Reddit with Python π¨οΈππ
- Host: GitHub
- URL: https://github.com/lolei/copypasta-search
- Owner: LoLei
- License: mit
- Created: 2020-08-11T15:10:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-02T16:58:12.000Z (over 3 years ago)
- Last Synced: 2024-03-29T08:21:57.843Z (9 months ago)
- Topics: api, command-line, copypasta, python, python-module, reddit
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# copypasta-search
Search and retrieve copypasta on Reddit with Python
## Installation
```
pip install copypasta-search
```## Usage
### Command line
```
$ copypasta-search interject --help
usage: copypasta-search [-h] [--hide] [-c] [--version] querypositional arguments:
query search termoptional arguments:
-h, --help show this help message and exit
--hide do not print output to stdout
-c, --copy copy pasta to clipboard
--version show program's version number and exit
```### Python module
```python
import copypasta_search as cps# To store the pasta:
pasta = cps.get_copypasta('interject')
# pasta == 'I'd just like to interject for a momentβ¦'# Or for direct output to stdout:
cps.get_copypasta('interject', print_pasta=True)
```