bol-crawler-0.0.1
توضیحات
A simple package for crawling bol.com
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bol-crawler-0.0.1 |
| نام | bol-crawler |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Stan van Rooy |
| ایمیل نویسنده | stan@rooy.works |
| آدرس صفحه اصلی | https://github.com/stanvanrooy/bol-crawler |
| آدرس اینترنتی | https://pypi.org/project/bol-crawler/ |
| مجوز | - |
# bolcom_crawler
This is a really simple crawler that makes use of Scrapy to crawl [bol.com](https://bol.com).
## Usage
The `Crawler` instance has two functions you can use, `crawl_products` and `crawl_category`. See an example below.
````
from bol_crawler.crawler import Crawler
crawler = Crawler()
# to crawl products
products = crawler.crawl_products(
[
'https://www.bol.com/nl/p/lg-34gl750-b-ultragear-gaming-monitor/9200000115819731',
]
)
# to crawl a category
products = crawler.crawl_category(
[
'https://www.bol.com/nl/l/gaming-toetsenborden/N/18214/', 0 # the 0 value is how often you want to go to the next page. 0 is just crawling the first page
]
)
````
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl bol-crawler-0.0.1:
pip install bol-crawler-0.0.1.whl
نصب پکیج tar.gz bol-crawler-0.0.1:
pip install bol-crawler-0.0.1.tar.gz