-
-
Notifications
You must be signed in to change notification settings - Fork 976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual indicator for multiple URLs progress #19
Comments
tqdm might be ideal for this if you don't want to reinvent the wheel: it's a tiny dependency and doesn't have any dependencies itself, outside of the stdlib. It even supports nesting progressbars, for example for the overall progress and current task progress. The default output for the progress is stderr too. |
The output can be configured via the 'output.progress' config value. Possible values: - true: Show the default progress indicator "[{current}/{total}] {url}" (default) - false: Never show the progress indicator - <string>: Show the progress indicator using this as a custom format string(1). Possible replacement keys are: - current: current URL index - total : total number of URLs - url : current URL (1) https://docs.python.org/3/library/string.html#formatstrings
d5a70f2 basically implements your first example, which I quite like for its simplicity. You can also modify the progress indicator via the @cryzed |
Sure, no worries! |
@Bfgeshka Did you test this? Is it how it's supposed to work? |
@Hrxn i did, it works good and in separate streams, just like it needs to be. |
So it can be easier to keep track for how much links are processed already. Can be good for
-i
option.Maybe something like that:
Or like that, always in the last line:
If it could be done, it should play along with
-g
option, ideally - use stderr instead of stdout.The text was updated successfully, but these errors were encountered: