Improvements to code style, structure, and image scraping capabilities.
π Key Changes
Added a new GitHub workflow file for automatic formatting of code and documentation.
Refactored image scraping Python scripts to enhance code quality:
Unified string quotes to double quotes for consistency.
Reformatted lines to improve readability.
Made string concatenations cleaner.
Cleaned up exception handling messages.
Refactored image download functions.
Improved file management when working with images and directories.
Introduced proxy support for image scraping.
Provided additional command-line arguments for enhanced scraping control.
π― Purpose & Impact
The new workflow file will ensure consistent code formatting across commits, leading to better maintainability. π€
The refactoring makes the scripts easier to understand, which is beneficial for developers who maintain or build upon the scraper. π οΈ
End-users benefit from these changes through more robust image scraping functions, whether they are scraping images from Baidu, Google, or other sources. This improves the tool's usability and reliability. π
The addition of proxy support and new command-line arguments give users more flexibility and control over image scraping processes. This enhances the user experience for those dealing with diverse scraping requirements. πΌοΈβ¨
This pull request adds a workflow to automatically format code and documentation.
π οΈ PR Summary
Made with β€οΈ by Ultralytics Actions
π Summary
Improvements to code style, structure, and image scraping capabilities.
π Key Changes
π― Purpose & Impact