https://github.com/issaclin32/wz_uniform_crawler
A simple crawler script for Uniform Map / 制服地圖 (http://uniform.wingzero.tw/)
https://github.com/issaclin32/wz_uniform_crawler
school-uniform uniform uniform-map
Last synced: over 1 year ago
JSON representation
A simple crawler script for Uniform Map / 制服地圖 (http://uniform.wingzero.tw/)
- Host: GitHub
- URL: https://github.com/issaclin32/wz_uniform_crawler
- Owner: issaclin32
- License: unlicense
- Created: 2019-06-10T13:51:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-11T08:25:18.000Z (about 7 years ago)
- Last Synced: 2025-03-09T03:41:26.961Z (over 1 year ago)
- Topics: school-uniform, uniform, uniform-map
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# wz-uniform-crawler
This is a simple crawler script for downloading images from [Uniform Map / 制服地圖](http://uniform.wingzero.tw/)
## Installation
Install from [PyPI](https://pypi.org/):
```
pip install wz-uniform-crawler
```
Install from [GitHub](https://github.com/):
```
pip install git+https://github.com/issaclin32/wz_uniform_crawler/
```
## Usage
```python
import wz_uniform_crawler
# download images according to page url
wz_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 Map
wz_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 threads
wz_uniform_crawler.fetch_all(school_types=['jr', 'tw'], num_of_parallel_downloads=20)
```
## Disclaimer
This crawler script is only made on the purpose of personal programming practice. I do not own the copyright, nor have any affiliation with the maintainer of [Uniform Map](http://uniform.wingzero.tw/).