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

https://github.com/sametcodes/trendyol-scraper

One-line scraper for the products on trendyol.
https://github.com/sametcodes/trendyol-scraper

Last synced: about 1 year ago
JSON representation

One-line scraper for the products on trendyol.

Awesome Lists containing this project

README

          

### One-line command

```
curl -sL https://trendyol.com/brand/product-p-[SKU] | tr '\r\n' ' ' | grep -oP "\{(?:[^{}]|(?R))*\}" | grep 'alternativeVariants' | sed -s 's/<[^>]*>//g' | jq -c .product
```

#### Dependencies

- curl
- grep (GNU grep) 3.7 (_BSD version is not compatible_)
- sed (GNU sed) 4.8
- jq-1.6

### Try it on docker

```bash
docker container run -it --rm sametcodes/tyolscraper SKU
```