Aliexpress Scraper
Easily collect public AliExpress data like prices, product details, and ratings with AliExpress Scraper API
Install / Use
npx skills add oxylabs/aliexpress-scraperInstalls into whichever agent you are using.
README
AliExpress Scraper
<u>AliExpress Scraper</u> 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, parsed JSON, or Markdown output 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',
'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 <u>documentation</u> for more code samples.
Output sample
{
"results": [
{
"content": "<!doctype html>\n<html lang=\"en\">\n<head>
...
</script></body>\n</html>\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 <u>live chat</u> or <u>email</u>.
Also, check this tutorial on pypi
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.6kCommit, push, and open a PR

