AliExpress Scraper
AliExpress Scraper 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”:
import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'universal_ecommerce',
'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 for more code samples.
Output sample
{
"results": [
{
"content": "<!doctype html>
<html lang="en">
<head>
...
</script></body>
</html>
",
"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 or email.
Metadata
Release files for ali-express-scraper 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ali-express-scraper-0.1.1.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ali_express_scraper-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / ali-express-scraper-0.1.1.tar.gz
| Download URL | ali-express-scraper-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad69877d2b03afacbf16d0431b4d3a104b37f3d97a075a1ae7b5e7f4e5e8e63a
|
|
BLAKE2b-256 checksum How to use checksums |
bb162a5d68d46dcc27f9be090075176eba6bd5283523d50dc64d13781c265ff8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / ali_express_scraper-0.1.1-py3-none-any.whl
| Download URL | ali_express_scraper-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
abc8c5eb92dd69ddd940aa3a4980da0099c784651a1186ac05962d3d1e47a6c1
|
|
BLAKE2b-256 checksum How to use checksums |
7831406b6e9293b1770385675212392d391cfe8ad43960c084fa3f655fb7d07a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|