Uniform Map/2294;的简单爬虫脚本(http://uniform.wingzero.tw/)
wz-uniform-crawler的Python项目详细描述
WZ统一爬虫
这是一个用于从Uniform Map / 制服地圖下载图像的简单爬虫脚本
安装
从PyPI:
安装pip install wz-uniform-crawler
从GitHub安装:
pip install git+https://github.com/issaclin32/wz_uniform_crawler/
用法
importwz_uniform_crawler# download images according to page urlwz_uniform_crawler.fetch_by_url('https://uniform.wingzero.tw/school/intro/jr/198')# download images with 20 parallel download threads (default = 10), without showing messages.wz_uniform_crawler.fetch_by_url('https://uniform.wingzero.tw/school/intro/jr/198',num_of_parallel_downloads=20,verbose=False)# download all images from Uniform Mapwz_uniform_crawler.fetch_all()# download all images from Uniform Map tagged as type "jr"(Junior High Schools in Taiwan) and "tw" (High Schools in Taiwan)# with 20 parallel download threadswz_uniform_crawler.fetch_all(school_types=['jr','tw'],num_of_parallel_downloads=20)
免责声明
此爬虫程序脚本仅用于个人编程实践。我不拥有版权,也不与Uniform Map的维护者有任何联系。