Skip to content

A program that receives a search term and scrapes the resulting products list from bol.com (an e-commerce platform)

Notifications You must be signed in to change notification settings

biruhtesfaye/bol.com-site-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

bol.com site scraper

bol.com is an e-commerce site and the scraper I made will receive a keyword to search and a file name to put the resulting dataset. Then it will parse through all the pages and scrape the products listed.

Usage

Install scrapy:

pip install scrapy

Run Job:

cd bol_com
 scrapy crawl items_scraper \
 -a keyword="hp laptop" \
 -o dataset/hp_laptop.json

Params:

  • keyword: Search term for a product

The program requires one keyword-argument (keyword). which is the term to be searched on bol.com. It may be 'hp laptop', 'Goorin Bros Cap', 'The Alchemist Book', etc...

Output

The fields for one sample product.

{
    "product_name": "HP", 
    "product_title": "HP 15-fc0751nd - Laptop - 15.6 inch", 
    "product_rating": 4.8, 
    "product_review_count": 8, 
    "product_price": 479.0
}

Enjoy it! Any comments are welcome!

About

A program that receives a search term and scrapes the resulting products list from bol.com (an e-commerce platform)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages