echo " -u --url: Given a URL, crawl the image from that URL, Special characters in the URL need to be ‘\\’ for escaping"
echo
echo " -p --path: Given a path to save the doenloaded image. The default is to create the re_pic.d directory in the current directory of the script to save the pictures."
echo
echo "Statement: Please beware of copyright issues, everything related to image copyright issues is not related to this script."
echo " -s --suffix According to the download link of the picture to determine the type of picture, use this parameter to filter the type of picture the user needs to download."
echo " -n --name Determine the name of the image according to the download link of the picture, and use this parameter to screen the pictures that users need to download."
echo " -w --word After the image download link protocol, add the known missing path before the path."
exit 0
}
# Determine if the image exists, if there is a size of zero. #
> 大佬不要嘲笑我,我还是个小白
> 在学习了python基础语法之后又看了看正则表达式的样例,然后,果断去用bash写了一个爬图片的脚本,