RenovateBot
c7f347a0f2
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [auto-py-to-exe](https://github.com/brentvollebregt/auto-py-to-exe) | minor | `==2.26.0` -> `==2.33.0` | --- ### Release Notes <details> <summary>brentvollebregt/auto-py-to-exe</summary> ### [`v2.33.0`](https://github.com/brentvollebregt/auto-py-to-exe/blob/HEAD/CHANGELOG.md#​2330) [Compare Source](https://github.com/brentvollebregt/auto-py-to-exe/compare/v2.32.0...v2.33.0) ???? Enhancements - Support more versions of Eel ### [`v2.32.0`](https://github.com/brentvollebregt/auto-py-to-exe/blob/HEAD/CHANGELOG.md#​2320) [Compare Source](https://github.com/brentvollebregt/auto-py-to-exe/compare/v2.31.1...v2.32.0) ???? Enhancements - [#​373](https://github.com/brentvollebregt/auto-py-to-exe/pull/373): Added Finnish translations ???? Contributors - [ZapX5](https://github.com/ZapX5) ### [`v2.31.1`](https://github.com/brentvollebregt/auto-py-to-exe/blob/HEAD/CHANGELOG.md#​2311) [Compare Source](https://github.com/brentvollebregt/auto-py-to-exe/compare/v2.31.0...v2.31.1) ???? Bug Fixes - Corrected Polish translations ???? Contributors - [Akuczaku](https://github.com/Akuczaku) (through email) ### [`v2.31.0`](https://github.com/brentvollebregt/auto-py-to-exe/blob/HEAD/CHANGELOG.md#​2310) [Compare Source](https://github.com/brentvollebregt/auto-py-to-exe/compare/v2.30.0...v2.31.0) ???? Enhancements - Added Polish translations ???? Contributors - [Akuczaku](https://github.com/Akuczaku) (through email) ### [`v2.30.0`](https://github.com/brentvollebregt/auto-py-to-exe/blob/HEAD/CHANGELOG.md#​2300) [Compare Source](https://github.com/brentvollebregt/auto-py-to-exe/compare/v2.29.2...v2.30.0) ???? Enhancements - [#​344](https://github.com/brentvollebregt/auto-py-to-exe/issues/344): Highlight file/folder when viewing output in Windows - [#​365](https://github.com/brentvollebregt/auto-py-to-exe/pull/365): Update German translations ???? Contributors - [ackhh](https://github.com/ackhh) ### [`v2.29.2`](https://github.com/brentvollebregt/auto-py-to-exe/blob/HEAD/CHANGELOG.md#​2292) [Compare Source](https://github.com/brentvollebregt/auto-py-to-exe/compare/v2.29.1...v2.29.2) ???? Bug Fixes - Fixed --debug choices not rendering correctly ### [`v2.29.1`](https://github.com/brentvollebregt/auto-py-to-exe/blob/HEAD/CHANGELOG.md#​2291) [Compare Source](https://github.com/brentvollebregt/auto-py-to-exe/compare/v2.29.0...v2.29.1) ???? Bug Fixes - [#​364](https://github.com/brentvollebregt/auto-py-to-exe/issues/364): Fixed PyInstaller 5.8.0 not allowing the UI to load ### [`v2.29.0`](https://github.com/brentvollebregt/auto-py-to-exe/blob/HEAD/CHANGELOG.md#​2290) [Compare Source](https://github.com/brentvollebregt/auto-py-to-exe/compare/v2.28.0...v2.29.0) ???? Enhancements - [#​360](https://github.com/brentvollebregt/auto-py-to-exe/pull/360): Added Ukrainian translations ???? Contributors - [AndrejGorodnij](https://github.com/AndrejGorodnij) ### [`v2.28.0`](https://github.com/brentvollebregt/auto-py-to-exe/blob/HEAD/CHANGELOG.md#​2280) [Compare Source](https://github.com/brentvollebregt/auto-py-to-exe/compare/v2.27.0...v2.28.0) ???? Enhancements - Display a warning when an icon file is not a legitimate .ico file ### [`v2.27.0`](https://github.com/brentvollebregt/auto-py-to-exe/blob/HEAD/CHANGELOG.md#​2270) [Compare Source](https://github.com/brentvollebregt/auto-py-to-exe/compare/v2.26.1...v2.27.0) ???? Enhancements - [#​355](https://github.com/brentvollebregt/auto-py-to-exe/pull/355): Added Japanese translations ???? Bug Fixes - Fixed broken links for some translations ???? Contributors - [NattyanTV](https://github.com/nattyan-tv) ### [`v2.26.1`](https://github.com/brentvollebregt/auto-py-to-exe/blob/HEAD/CHANGELOG.md#​2261) [Compare Source](https://github.com/brentvollebregt/auto-py-to-exe/compare/v2.26.0...v2.26.1) ???? Bug Fixes - [#​346](https://github.com/brentvollebregt/auto-py-to-exe/pull/346): Fix Chinese translation error ???? Contributors - [Mark Melendez](https://github.com/Melendez1209) </details> --- ### Configuration ???? **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). ???? **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. ???? **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4zNS4wIiwidXBkYXRlZEluVmVyIjoiMzUuMzUuMCJ9--> Co-authored-by: Renovate Bot <no-reply@io-projects.com> Reviewed-on: #13 Co-authored-by: RenovateBot <renovate@noreply.endmove.eu> Co-committed-by: RenovateBot <renovate@noreply.endmove.eu> |
||
---|---|---|
tests | ||
webpicdownloader | ||
.drone.yml | ||
.gitignore | ||
app_metadata.yml | ||
build_config.json | ||
build_tool.py | ||
LICENSE | ||
main.py | ||
README.md | ||
renovate.json | ||
requirements.txt | ||
run_tests.py | ||
VERSION |
WebPicDownloader
What is webpicdownloader ?
WebPicDownloader is a scraping tool that allows you to download all the images of a website. Basically WebPic is a Python script around which a graphical interface has been added to make it easier to use.
You will find here utility information to use the Windows application WebPicDownloader.exe
. And here information to use or implement the Python script WebPicDownloader.py
in your application (without the graphical interface).
Windows application
To use WebPic on windows nothing more simple, download the executable .exe
of the last release here (be careful to download the latest release and not a pre-release).
Execute the file WebPicDownloader.exe
and enjoy it! 👌
Use Python script
To start, find the script to use or to add to your code here.
CLI Run Requirements
To use the script check the following prerequisites.
- Python
>= 3.10.6
; - beautifulsoup4
>= 4.11.1
; - bs4 (BeautifulSoup)
>= 0.0.1
; - urllib3
>= 1.26.12
;
Console Use ?
If you just want to use the console version of the script without the built-in GUI then you just need to check the prerequisites and run the script as follows:
python3 WebPicDownloader.py
Integrate to your code ?
First of all you have to know that WebPicDownloader has a deamon worker that downloads all the images asynchronously (this allows you not to block your program when a download is in progress). This same worker will be automatically killed as soon as your program finishes. WebPicDownloader therefore provides a blocking stop function allowing you to wait for the end of the download. See the information below. The prerequisites are the same as if you were running the script from the command line, see prerequisites.
Step 1
Instantiate your WebPicDownloader object like this:
from WebPicDownloader import WebPicDownlodaer, MessageType
webpic = WebPicDownloader()
The constructor can take several parameters (path: str, headers: dict, messenger, success, failure
) (see the documentation).
Step 2
Define the WebPicDownloader callback functions. There are 3 main ones, the first (messenger callback) will be called at each system event and takes the following parameters (message: str, type: MessageType
). The second (success callback) will be called at the end of processing if no major errors occur, it takes the following parameters (message: str
). The third and last function (failure callback) will be called if a major error occurs or the download fails, it takes the following parameter (message: str
).
By default, these functions print their results with a simple print(message)
in the console. In case you implement WebPicDownloader in a graphical program, you should by convention remove all printing from your application and therefore define your own callback functions for WebpicDownloder. Below is an example:
from WebPicDownloader import WebPicDownlodaer, MessageType
# Consider instantiating before the main loop of your program is launched.
webpic = WebPicDownloader()
# Pay attention to the signature of the functions
webpic.set_success_callback(lambda message: print(f"Success ! [{message}]."))
webpic.set_failure_callback(lambda message: print(f"Success ! [{message}]."))
webpic.set_messenger_callback(lambda message, msg_type: print(f"[{msg_type}]: {message}."))
Step 3
Once WebPicDownloader instantiated and the callback functions configured, we have to launch the download and stop it. It is important to know that the script does not have a function to stop a download in progress, in fact the stop function will allow you to wait for the end of the download and then turn off the program or to kill the worker automatically when the main thread dies.
from time import sleep
from WebPicDownloader import WebPicDownlodaer, MessageType
webpic = WebPicDownloader()
# ... callbacks ...
# Webpic will give the task to its worker and start downloading the images
webpic.start_downloading('https://www.endmove.eu/', 'EndMove-website-images')
# We wait for the worker to start the task (once the task has started it cannot be stopped)
sleep(1)
# Webpic will ask the program to stop in blocking mode (it will join the worker to wait for the end of its execution)
webpic.stop_downloading(True)
Improvement (TODO LIST)
Here you will find some improvements I would like to add to the program, you can also participate by forking the repository and submitting a pull request.
- Check for updates button.
- Integrated file explorer.
- Viewing the downloads already made.
- Redo WebPicDownlodaer script to support concurrent downloads, to be able to launch workers and share tasks via a download pool.
This program is only a free utility tool and has not been developed in depth. In a future version it would be interesting to manage concurrent downloads in a thread pool.