Python script to grab informations for a product
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

Given a product in Aliexpress, I want to grab all informations about a product , for example in this URL : https://www.aliexpress.com/store/product/BLUBOO-DUAL-5-5-FHD-Dual-Back-Camera-4G-LTE-Smartphone-MTK6737-Quad-Core-2G-RAM/2404044_32771645151.html

I want a Python script where I give the URL of a product & it shows me some following informations.

The script should be easy so I give an URL of a product, it gives me informations , for example:

$python myscript.py https://www.aliexpress.com/store/product/BLUBOO-DUAL-5-5-FHD-Dual-Back-Camera-4G-LTE-Smartphone-MTK6737-Quad-Core-2G-RAM/2404044_32771645151.html

awarded to Subhash Dasyam

Crowdsource coding tasks.

1 Solution


Hi privcrawler,

Extra features:

used Google Bot Useragent to fetch details ;)

Used Concurrent (Threading) so it completes in very less time

You can increase workers value more than 5 to increase more (depending upon your system)

Prerequisites

pip install futures
pip install PrettyTable

here it is

link

posted the result as well in comments on gist

It gives result in dict :) with Country : Number of pieces

Usage

python aliexpress_fetch_data.py https://www.aliexpress.com/store/product/BLUBOO-DUAL-5-5-FHD-Dual-Back-Camera-4G-LTE-Smartphone-MTK6737-Quad-Core-2G-RAM/2404044_32771645151.html

Output

JSON