Some utility-scripts for python.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Julius Riegel 61a1a34c60
Merge pull request #19 from Trivernis/renovate/typing-3.x
Update dependency typing to v3.7.4.1
1 year ago
.circleci Update circleci/python Docker tag to v3.8.0b1 5 years ago
conf Modified project in general 6 years ago
lib Added sher.py 5 years ago
logs Modified project in general 6 years ago
.gitignore Lib and riddle2 changes 6 years ago
LICENSE Create LICENSE 6 years ago
README.md Modified README and sher.py help 5 years ago
renovate.json Add renovate.json 5 years ago
requirements.txt Merge pull request #19 from Trivernis/renovate/typing-3.x 1 year ago
riddle.py Started working on riddle2 6 years ago
riddle2.py Added step description 5 years ago
sher.py Modified sher.py 5 years ago

README.md

Python Utilities

Here are some python-scripts that do all kinds of things.

Setup

Install all dependencies with

pip install -r requirements.txt

Scripts

riddle.py

Downloads all images from one or more given subreddits

Usage: riddle.py [options] [subreddits]

Options:
  -h, --help   show this help message and exit
  -c, --chaos                         Doesn't wait for previous downloads to
               finish and doesn't exit when no more
               images can be found. Do only activate this if you want to
               download a lot of images                       from multiple
               subreddits at the same time.

riddle2.py

Downloads all images from one or more given subreddits in a more predictable way than riddle.py.

Usage: riddle2.py [options] [subreddits]

Options:
  -h, --help            show this help message and exit
  -c COUNT, --count=COUNT
                        The number of images to download.
  -o OUTPUT, --output=OUTPUT
                        The name of the output zipfile. If none is specified,
                        it's the subreddits name.
  -t, --test            Tests the functions of the script
  -l, --loop            Continuing download loop. When this option is set
                        every 5 Minutes the program searches for
                        new images

sher.py

Searches for string occurences in a file (line by line) or directory (all directory and filenames in the tree).

Usage: sher.py [options]

Options:
  -h, --help            show this help message and exit
  -f S_FILE, --file=S_FILE
                        Searching lines in the given file.
  -d S_DIR, --directory=S_DIR
                        Searching files in a directory.
  -q QUERY, --query=QUERY
                        The search term. Supporting "".
  -l, --loop            Runs the program in an endless loop.