Skip to content

kritarthh/AliexpressOrders

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AliexpressOrders

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

Usage

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>

Whats working

  1. Awaiting Shipments orders details
  2. Awaiting Delivery Order details
  3. Order Completed details
  4. Orders pending payment details
  5. Implement pagination for the above sections such that more than 10 orders per section appears
  6. Implement google sheet integration
  7. Implement batch google sheet update (Now update to google sheets is much faster - 20s for 200 plus orders)
  8. Order tracking ID integrated. Also, the last package delivery status for the tracking id is retrieved
  9. Scraps in background, tested with both chromium and firefox headless
  10. Saves screenshot of the orders page in png format

Work In Progress

  1. Order carrier retrieval
  2. Fix date and Purchase protection remaining data format for easier filtering in google sheets

To Do

  1. Integrate Tracking ID with an existing tracker to get package logistic updates

Installation

  • 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

License

This code ia available as free to use/redistribute under MIT License. Please check the LICENSE File for sharing and attributuon requirements

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%