Skip to content

Search and retrieve copypasta on Reddit with Python πŸ–¨οΈπŸπŸ

License

Notifications You must be signed in to change notification settings

LoLei/copypasta-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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] query

positional arguments:
  query       search term

optional 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

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)