Change Info Text
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Kim Oliver Drechsel 2021-09-20 18:58:43 +02:00
parent cb5ab8c2cf
commit 69731ce52a
3 changed files with 32 additions and 32 deletions

20
.drone.yml Normal file → Executable file
View File

@ -1,11 +1,11 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: default name: default
steps: steps:
- name: test - name: test
image: python:3.8-alpine image: python:3.8-alpine
pull: if-not-exists pull: if-not-exists
commands: commands:
- chmod +x prnt.sc_link_generator.py - chmod +x prnt.sc_link_generator.py
- ./prnt.sc_link_generator.py - ./prnt.sc_link_generator.py

42
README.md Normal file → Executable file
View File

@ -1,21 +1,21 @@
# prnt.sc Link Generator # prnt.sc Link Generator
[![Build Status](https://drone.pyas.de/api/badges/Gist/prnt.sc_url_generator/status.svg)](https://drone.pyas.de/Gist/prnt.sc_url_generator) [![Build Status](https://drone.pyas.de/api/badges/Gist/prnt.sc_url_generator/status.svg)](https://drone.pyas.de/Gist/prnt.sc_url_generator)
## Info ## Info
prnt.sc is a web frontend for third-party screenshot software that automatically uploads the user's screenshot and returns a url of the image to the clipboard prnt.sc is a web frontend for third-party screenshot software that automatically uploads the user's screenshot and returns a url of the image to the clipboard
so that users can share their screenshot with others via the url. so that users can share their screenshot with others via the url.
This is a generator that uses the url scheme to randomly search the uploaded images. This is a generator that uses the url scheme to randomly search through the uploaded images.
## Requirements / Install ## Requirements / Install
- Python 3 required - Python 3 required
- No additional Modules required, only Built-ins are used - No additional Modules required, only Built-ins are used.
## Usage ## Usage
1. Set the 3 Variables in the Script to your desired State: 1. Set the 3 Variables in the Script to your desired State:
- NUMBER_OF_LINKS_TO_GENERATE: Generates X urls at a time - NUMBER_OF_LINKS_TO_GENERATE: Generates X urls at a time
- URL_AUTO_OPEN: If set to True the Script opens the URLs automatically in your Browser - URL_AUTO_OPEN: If set to True the Script opens the URLs automatically in your Browser
- CLOSE_WINDOW_AFTER: If set to True the Python Window (if run in an Desktop Environment) won't close after the Script ends (keeps open to see/copy the original url) - CLOSE_WINDOW_AFTER: If set to True the Python Window (if run in an Desktop Environment) won't close after the Script ends (keeps open to see/copy the original url)
2. Run the Script 2. Run the Script
3. Have fun searching through random screenshots 3. Have fun searching through random screenshots

2
prnt.sc_link_generator.py Normal file → Executable file
View File

@ -9,7 +9,7 @@ prnt.sc is a web frontend for third-party screenshot software
that automatically uploads the user's screenshot and returns a url of the image to the clipboard that automatically uploads the user's screenshot and returns a url of the image to the clipboard
so that users can share their screenshot with others via the url. so that users can share their screenshot with others via the url.
This is a generator that uses the url scheme to randomly search the uploaded images. This is a generator that uses the url scheme to randomly search through the uploaded images.
""" """
NUMBER_OF_LINKS_TO_GENERATE = 5 # generates X urls at a time NUMBER_OF_LINKS_TO_GENERATE = 5 # generates X urls at a time