Last active
November 12, 2016 09:37
-
-
Save max-kk/8f0e758f0c5e2a4f58705ed6b708b885 to your computer and use it in GitHub Desktop.
Save aliexpress orders list # Сохранить список заказов Aliexpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Add this to Debug Console in Browser on My Orders page | |
| // This will output data (10 records from current page to console) | |
| // Copy them to Excel and split ro rows via ";" | |
| // Example: 80142463919194;https://www.aliexpress.com/item/Fashion-Retro-Exquisite-Indian-Feather-Leaf…-Circle-Dream-Catcher-Bohemia-Lady-Dress-Sweater-Necklace/32245418018.html;Мода ретро изысканный индийский перо листьев кружева круг ловца снов богемия леди платье свитер ожерелье X-363;$ 0.88 | |
| var products = document.querySelectorAll(".order-item-wraper"); | |
| var product_arr = []; | |
| for (var i = 0; i < products.length; i++) { | |
| product_arr = []; | |
| // Skip Canceled orders | |
| if ( products[i].querySelector(".delete-order") !== null ) { continue; } | |
| product_arr.push( products[i].querySelector(".first-row .info-body").textContent.trim() ); | |
| product_arr.push( products[i].querySelector(".baobei-name").href ); | |
| product_arr.push( products[i].querySelector(".baobei-name").title.trim() ); | |
| product_arr.push( products[i].querySelector(".amount-num").textContent.trim() ); | |
| product_arr.push( products[i].querySelector(".second-row .info-body").textContent.trim() ); | |
| console.log (product_arr.join(";").replace(/\n|\r/g, "") ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment