Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trivernis/python-utility-scripts
Some utility-scripts for python.
https://github.com/trivernis/python-utility-scripts
python-script python-utilities
Last synced: about 1 month ago
JSON representation
Some utility-scripts for python.
- Host: GitHub
- URL: https://github.com/trivernis/python-utility-scripts
- Owner: Trivernis
- License: gpl-3.0
- Created: 2018-10-11T18:23:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T13:21:27.000Z (about 2 years ago)
- Last Synced: 2023-03-02T20:25:37.452Z (almost 2 years ago)
- Topics: python-script, python-utilities
- Language: Python
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Python Utilities
=========Here are some python-scripts that do all kinds of things.
## Setup
Install all dependencies with
```commandline
pip install -r requirements.txt
```## Scripts
### riddle.py
Downloads all images from one or more given subreddits
```commandline
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.
```commandline
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).```commandline
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.
```