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.
- Host: GitHub
- URL: https://github.com/sametcodes/trendyol-scraper
- Owner: sametcodes
- Created: 2022-01-13T23:17:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-23T05:09:18.000Z (about 4 years ago)
- Last Synced: 2025-03-28T04:47:59.274Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```