An open API service indexing awesome lists of open source software.

https://github.com/shinbatsu/lego-scrapper

Lego website - toys data scrapper
https://github.com/shinbatsu/lego-scrapper

beautifulsoup4 csv scraper

Last synced: 11 months ago
JSON representation

Lego website - toys data scrapper

Awesome Lists containing this project

README

          

# Lego parser

### About repo

This Python project scrapes LEGO's official website to collect information about available LEGO themes and specific product collections. The collected data is exported into CSV files.

### Features

1. Scrapes all LEGO themes from the official LEGO site
2. Scrapes LEGO products (toys) from a selected collection (e.g., Marvel)
3. Extracts product details: name, age range, piece count, rating, price, and discount
4. Saves collected data into CSV files (`themes.csv`, `toys_data.csv`)

### Usage

1. Install dependencies:

```bash
pip install -r requirements.txt
```

2. Run script `python3