Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/oxylabs/aliexpress-scraper

Easily collect public AliExpress data like prices, product details, and ratings with AliExpress Scraper API
https://github.com/oxylabs/aliexpress-scraper

ali-scraper alibaba-api aliexpress aliexpress-api aliexpress-crawler aliexpress-scraper aliexpress-spider e-commerce-api e-commerce-scraper email-crawler github-python python-web-scraper scraper-api

Last synced: 3 days ago
JSON representation

Easily collect public AliExpress data like prices, product details, and ratings with AliExpress Scraper API

Awesome Lists containing this project

README

        

# AliExpress Scraper

[![Oxylabs promo code](https://user-images.githubusercontent.com/129506779/250792357-8289e25e-9c36-4dc0-a5e2-2706db797bb5.png)](https://oxylabs.go2cloud.org/aff_c?offer_id=7&aff_id=877&url_id=112)

[![](https://dcbadge.vercel.app/api/server/eWsVUJrnG5)](https://discord.gg/GbxmdGhZjq)

[AliExpress Scraper](https://oxylabs.io/products/scraper-api/ecommerce/aliexpress) is a tool designed to collect public product data
from AliExpress on a large scale. This short tutorial will show you how
to scrape AliExpress with Oxylabs’ Scraper API.

## How it works

You can extract AliExpress data by sending a request to our API with
URLs you want to scrape. Our service will send back the HTML of any
AliExpress page.

### Python code example

This sample showcases how to make an API request and retrieve the HTML
of AliExpress search results for the keyword “laptop”:

```python
import requests
from pprint import pprint

# Structure payload.
payload = {
'source': 'universal',
'url': 'https://www.aliexpress.com/w/wholesale-laptop.html?catId=0&initiative_id=SB_20230907055110&SearchText=laptop&spm=a2g0o.best.1000002.0',
'user_agent_type': 'desktop',
'render': 'html',
'geo_location': 'Germany'
}

# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'), #Your credentials go here
json=payload,
)

# Instead of response with job status and results url, this will return the
# JSON response with results.
pprint(response.json())

```

See the
[documentation](https://developers.oxylabs.io/scraper-apis/e-commerce-scraper-api/all-domains)
for more code samples.

### Output sample

```json
{
"results": [
{
"content": "\n\n
...
\n\n",
"created_at": "2023-09-07 14:04:18",
"updated_at": "2023-09-07 14:04:42",
"page": 1,
"url": "https://www.aliexpress.com/w/wholesale-laptop.html?catId=0&initiative_id=SB_20230907055110&SearchText=laptop&spm=a2g0o.best.1000002.0",
"job_id": "7105551359235115009",
"status_code": 200
}
]
}
```

The data harvesting process is significantly easier with Oxylabs’
AliExpress Scraper API. You can collect details such as pricing,
reviews, product information, and other public data. If you have any
questions, you can contact us via [live
chat](https://oxylabs.io/) or
[email](mailto:[email protected]).

Also, check this tutorial on [pypi](https://pypi.org/project/ali-express-scraper/)