Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
c15ec84c67 | |||
db572e160b | |||
24b5e9044d | |||
80419aa05e | |||
74a590af14 | |||
18685f611d | |||
a3302cfe0d | |||
bac1532663 | |||
1f743d1e44 | |||
2fc05adfe3 | |||
3f0c214408 |
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
build
|
||||
dist
|
||||
*.spec
|
||||
.idea
|
18
LICENSE
18
LICENSE
@ -2,20 +2,8 @@ MIT License
|
||||
|
||||
Copyright (c) 2021 Kim Oliver Drechsel <kim@drechsel.xyz>
|
||||
|
||||
Permission is hereby granted, without written agreement and without
|
||||
license or royalty fees, to use, copy, modify, and distribute this
|
||||
software and its documentation for any purpose, provided that the
|
||||
above copyright notice and the following two paragraphs appear in
|
||||
all copies of this software.
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
|
||||
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
||||
ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
||||
IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGE.
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
||||
ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
|
||||
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
39
README.md
39
README.md
@ -3,22 +3,35 @@
|
||||
[![Build Status](https://drone.pyas.de/api/badges/Kim/prnt.sc_url_generator/status.svg)](https://drone.pyas.de/Kim/prnt.sc_url_generator)
|
||||
|
||||
## About
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
This is a generator that uses the url scheme to randomly search through the uploaded images.
|
||||
|
||||
## Requirements / Install
|
||||
[Also available as Gist.](https://gist.github.com/kimdre/664f29b7556cb4c26a89315761e6c55d)
|
||||
|
||||
## Install and Usage
|
||||
|
||||
### Executable file (.exe)
|
||||
|
||||
- Just [download](https://git.pyas.de/Kim/prnt.sc_url_generator/raw/branch/master/prnt.sc_link_generator.exe) the
|
||||
prepared/standalone file and you are done.
|
||||
- For downloads see also the [release page](https://git.pyas.de/Kim/prnt.sc_url_generator/releases).
|
||||
|
||||
### Python script
|
||||
|
||||
#### Requirements
|
||||
|
||||
- Python 3 required
|
||||
- No additional Modules required, only Built-ins are used.
|
||||
- No additional modules required, only built-ins are used.
|
||||
|
||||
## Usage
|
||||
1. Set the 3 Variables in the Script to your desired State:
|
||||
- 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
|
||||
- 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
|
||||
#### Usage
|
||||
|
||||
1. Set the 3 variables in the script to your desired state:
|
||||
- `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
|
||||
- `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
|
||||
3. Have fun searching through random screenshots
|
||||
|
||||
## Credits
|
||||
Repo Icon made by [DinosoftLabs](https://www.flaticon.com/authors/dinosoftlabs "DinosoftLabs") from [www.flaticon.com](https://www.flaticon.com/ "Flaticon")
|
BIN
prnt.sc_link_generator.exe
Normal file
BIN
prnt.sc_link_generator.exe
Normal file
Binary file not shown.
@ -28,8 +28,11 @@ def generate_url(base_url: str = 'https://prnt.sc/'):
|
||||
|
||||
for _ in range(NUMBER_OF_LINKS_TO_GENERATE):
|
||||
URL = generate_url()
|
||||
print(URL)
|
||||
if URL_AUTO_OPEN is True:
|
||||
|
||||
if not CLOSE_WINDOW_AFTER:
|
||||
print(URL)
|
||||
|
||||
if URL_AUTO_OPEN:
|
||||
webbrowser.open(URL)
|
||||
|
||||
if not CLOSE_WINDOW_AFTER:
|
||||
|
Loading…
Reference in New Issue
Block a user