I am a long time user of your tool and wanted to give back by contributing to making it better, so while browsing the codebase I noticed that some functions and files requires some refactoring and modifications to increase code readability and make it more clear.
So I decided to give it a try, and decided to start with the entry point and its supporting functions.
This pull request introduces a rework of the entry main function and prepare_request method:
Ensures that the prepare request returns the same datatype across all types, here it is always list.
Modify the docstring of these supporting functions to reflect the new return datatype
Unify the flow of code between single and multi URL parsing this reduced complexity and removed deep nesting within the body of the method.
If you welcome more contributions of this kind I'd be happy to invest more time on it, if not please feel free to close the pull request and I will respect your decision as the maintainer and creator of this tool.
Good Day.
I am a long time user of your tool and wanted to give back by contributing to making it better, so while browsing the codebase I noticed that some functions and files requires some refactoring and modifications to increase code readability and make it more clear.
So I decided to give it a try, and decided to start with the entry point and its supporting functions.
This pull request introduces a rework of the entry main function and
prepare_request
method:If you welcome more contributions of this kind I'd be happy to invest more time on it, if not please feel free to close the pull request and I will respect your decision as the maintainer and creator of this tool.