Skip to content

Instantly share code, notes, and snippets.

@gadgetmies
Last active July 9, 2024 15:47
Show Gist options
  • Save gadgetmies/a0e72a08f3d9a964f819d855d4551a96 to your computer and use it in GitHub Desktop.
Save gadgetmies/a0e72a08f3d9a964f819d855d4551a96 to your computer and use it in GitHub Desktop.
Resolving Aliexpress default wishlist full issue

When using a desktop browser and adding items to wish list on Aliexpress, those products get added to the default wish list. After a while your default wish list will get full and you cannot add items into any wish list as the wish list button only adds items to the default wish list, from where those can be moved to other wish lists. There is no simple way to see the contents of the default wish list, so cleaning it up is difficult. I got frustrated enough with this and created a solution that at least makes the job easier:

To get the titles of the items that are in your default wish list:

  1. Open the developer console in the browser and select the network tab
  2. Navigate to the wish list page on Aliexpress
  3. Scroll the page down in order to fetch more items into the list
  4. Add "2.0" into the filter bar
  5. Copy the responses of all the requests and paste them in a list (i.e. start with "[", add "," between responses and end with "]")
  6. Copy the resulting text to clipboard and head to https://calmm-js.github.io/partial.lenses/playground.html
  7. Open the developer tools and paste "window.data = " followed by the text created in earlier steps, into the console (if the console is not visible, press ESC)
  8. Insert the following into the console and press enter "var res = L.collect(L.query(L.when(R.propEq(0, 'groupId')), []), data)"
  9. Paste the following into the console to copy the result into the clipboard "copy(res)"
  10. The resulting list contains the topics of all the items that are in the default wish list. To remove / move the items to another wish list, search them from the wish list page (note: the page is refreshed after moving items to another list and thus you will need to scroll down the page to see the items you want to move)

Further info:

The Aliexpress API seems to use some kind of signing of the requests. This prevents creating and running requests that would remove the items from the wish list. The documentation seems to be public and there is a library for the API in NPM: https://www.npmjs.com/package/aliexpress-api.

@gadgetmies
Copy link
Author

Nice that you found these instructions! I created the instructions earlier mainly for my own use, so the instructions and the workflow was not as clear as it should be. Now that I know that there is at least one other person with the same issue I thought I'd create a slightly easier and more robust solution i.e. https://github.com/gadgetmies/aliexpress_default_wishlist. You will have to have React dev tools installed and thus need to use Chrome, but otherwise this solution should be much better. Can you give the new tool a try?

@neviln
Copy link

neviln commented Jan 30, 2024

  1. First & foremost....WOW! A world of thanks for taking the time to create step by step instructions to assist me and for the automated form to process the wishlist items.
  2. I'm not an expert with using Github, so I spent more time than I'd like to admit trying to figure out how to get to this specific page from your Github root directory/page just so I can write this response, lol. I finally gave up and used the "View it on Github" link at the bottom of the email I got when you responded to me. I'm assuming there's an easy way to get to this "Gist" section, but maybe I missed it.
  3. Your instructions were amazing (aside from a very minor note I got stuck on). The Ctrl+Alt+J javascript console shortcut didn't work, but after Googling it, I found out it was Ctrl+Shift+J. All the other steps were smooth sailing.
  4. The absolute joy on my face when I clicked the "Process" button and saw the output from your form. And then seeing the links you included to view pictures of the items was the sweet, sweet icing on the cake :)
    Thanks again for all the work you put into this. It's greatly appreciated,

@gadgetmies
Copy link
Author

Thank you for testing the instructions! I'm glad to hear I was able to help!

Thanks also for pointing out the shortcut issue in the instructions. I am using a Mac, and only assumed that the shortcut would be similar on Windows. I now updated the instructions with the correct shortcut and also improved the readme a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment