How to upload images to ebay Kleinanzeigen (and Kijiji.ca)

Share your tips, tricks and favorite iMacros macros, scripts and applications for web automation in general here.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team
Post Reply
Tom, Tech Support
Posts: 3834
Joined: Mon May 31, 2010 4:59 pm

How to upload images to ebay Kleinanzeigen (and Kijiji.ca)

Post by Tom, Tech Support » Wed Aug 06, 2014 1:50 pm

This post applies to uploading images when creating a new ad on the German ebay classifieds site kleinanzeigen.ebay.de using iMacros for IE freeware or Standard/Enterprise editions.
kleinanzeigen.png
Even though recording the steps to upload an image works, the macro needs to be tweaked slightly for it to play back successfully.

After recording a click on the blue "Bilder hinzufügen" button to select and upload the image, the following commands are recorded (in this example we are selected the imacros-keyword-assertion-text.png image file located in the iMacros\DataSources folder):

Code: Select all

TAG POS=1 TYPE=INPUT:FILE ATTR=ID:html5_18ulol9fp1ee918r1173inl1pd35 CONTENT=C:\fakepath\imacros-keyword-assertion-text.png
TAG POS=1 TYPE=BUTTON FORM=ACTION:http://kleinanzeigen.ebay.de/anzeigen/p-anzeige-abschicken.html ATTR=ID:pictureupload-pickfiles
To make this work, we need to move the CONTENT parameter to the second TAG command and fix the path, then remove the first TAG command:

Code: Select all

TAG POS=1 TYPE=BUTTON FORM=ACTION:http://kleinanzeigen.ebay.de/anzeigen/p-anzeige-abschicken.html ATTR=ID:pictureupload-pickfiles CONTENT=C:\Users\admin\Documents\iMacros\DataSources\imacros-keyword-assertion-text.png
This command will now successfully upload the image each time it is executed.
kleinanzeigen image uploaded.png
The same method can be used to upload images to Kijiji.ca. Recording the image upload on this site results in the following:

Code: Select all

TAG POS=1 TYPE=BUTTON ATTR=ID:ImageUploadButton
TAG POS=1 TYPE=INPUT:FILE ATTR=ID:html5_1abj9ajgn13e114jfjofu151nlg3 CONTENT=C:\Users\admin\Documents\iMacros\DataSources\imacros-keyword-assertion-text.png
TAG POS=1 TYPE=BUTTON ATTR=ID:ImageUploadButton
This should be changed to:

Code: Select all

TAG POS=1 TYPE=BUTTON ATTR=ID:ImageUploadButton CONTENT=C:\Users\admin\Documents\iMacros\DataSources\imacros-keyword-assertion-text.png
Last edited by Tom, Tech Support on Mon Feb 15, 2016 8:23 pm, edited 1 time in total.
Reason: Updated to include Kijiji.ca
Regards,

Tom, iMacros Support
Post Reply