Now track your own aliexpress orders easily. This python script generates a json representation of all your orders. It also saved the information in a google sheet if you have set up one.
This will enable you to use powerful spreadsheet filters in google sheets for better order manageent and tracking
Get only screenshot:
python aliexpress.py screenshot <screenshot_filename.png>
Get only order details in json format:
python aliexpress.py json
Get both screenshot and order details:
python aliexpress.py json,screenshot <screenshot_filename.png>
- Awaiting Shipments orders details
- Awaiting Delivery Order details
- Order Completed details
- Orders pending payment details
- Implement pagination for the above sections such that more than 10 orders per section appears
- Implement google sheet integration
- Implement batch google sheet update (Now update to google sheets is much faster - 20s for 200 plus orders)
- Order tracking ID integrated. Also, the last package delivery status for the tracking id is retrieved
- Scraps in background, tested with both chromium and firefox headless
- Saves screenshot of the orders page in png format
- Order carrier retrieval
- Fix date and Purchase protection remaining data format for easier filtering in google sheets
- Integrate Tracking ID with an existing tracker to get package logistic updates
- As of the current state, The package is dependant on lxml, pyquery, selenium and Chromedriver/PhantomJS Package.
- For lxml pacakge, the WHL file for windows is hardcoded in Windows file. Install using the following command:
- Windows without library building support: `pip install -r requirements.win.txt
- Windows/Linux/Other platforms where python C extension for lxml can be compiled/built: `pip install -r requirements.base.txt
- Edit the path to Chromexdriver in the file
- Get Google Service Credentials. Download the credential json in same folder and point the path in the credentials call in file
- You need to share a google sheet and copy the url to an environment variable AE_gsheet_url
- Also, setup the Aliexpress Username and Password as environment variables. AE_username and AE_passwd
This code ia available as free to use/redistribute under MIT License. Please check the LICENSE File for sharing and attributuon requirements