Marktplaats description

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Leussink
Posts: 1
Joined: Tue May 04, 2010 10:08 am

Marktplaats description

Post by Leussink » Tue May 04, 2010 10:15 am

Hello,

I want to make an imacro for the dutch advertise site: marktplaats.nl
After 30 days your advertise would be removed. I want to automise it.
Everything works, only the textarea with my advertise discription doesn't work.
Here the source:

Code: Select all

   <div id="tdescription_border">
                <b>
                                    Beschrijving
                *
                </b>

            </div>
                <div id="description_border" style="width: auto !important; width: 100%;">
                                        <textarea id="description" name="description" class="widgEditor nothing" cols="30" rows="15"  tabindex="215" style="width: 99.5%"></textarea>
                </div>
            <input type="hidden" id="description_tmp" name="description_tmp" value="">
                                                
                    <script type="text/javascript" language="JavaScript">
                    <!--//

                        var el11 = document.getElementById('11');

                        if (el11) {
                            txtOnBlurUrl(el11 , '15');
                        }

                    //-->
                    </script>

TAG POS=1 TYPE=TEXTAREA FORM=NAME:ad_form ATTR=ID:description CONTENT=test

If i run my imacro it gives an error.
What should I do wrong?

Please help me!
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: Marktplaats description

Post by Daniel, Tech Support » Tue May 18, 2010 9:18 pm

Hello,

I am very sorry for the delay. The answer is same as here:
http://forum.imacros.net/viewtopic.php?f=2&t=9143

Best regards,
Daniel, iOpus Support
NiceGuy
Posts: 1
Joined: Tue Sep 07, 2010 7:57 am

Re: Marktplaats description

Post by NiceGuy » Tue Sep 07, 2010 8:01 am

Hi,
did you succeed?
I'm very interested in a Marktplaats script. I'm trying for several days now, but the description field is giving me a bad headache.
regards,
Jim
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: Marktplaats description

Post by Daniel, Tech Support » Mon Sep 13, 2010 10:20 am

Hi Jim,

I recommend that you take a look at the link I provided. I might be able to provide more help, but I would need access to that website and some instructions on what needs to be done.

Best regards,
Daniel, iOpus Support
djrolo
Posts: 7
Joined: Tue Aug 02, 2011 10:39 pm

Re: Marktplaats description

Post by djrolo » Thu Aug 04, 2011 12:48 am

Any updates regarding this marktplaats.nl site? I have tried DS also but cannot get it to work.

Can anyone try and post the code/script? even willing to 'donate' by paypal.

Script has to read from CSV and fill in all advertisment details, the bottleneck is the 'omschrijving' field as described above.
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: Marktplaats description

Post by Daniel, Tech Support » Thu Aug 04, 2011 9:51 am

Hi,

If you post here the macro code, I'll gladly help to fix it.

Best regards,
Daniel, iOpus Support
djrolo
Posts: 7
Joined: Tue Aug 02, 2011 10:39 pm

Re: Marktplaats description

Post by djrolo » Thu Aug 04, 2011 5:18 pm

Hi, thanks for your reply. I found now 2 issues, one is as described the field above.

Code: Select all

TAB T=1     
TAB CLOSEALLOTHERS     
URL GOTO=http://verkopen.marktplaats.nl/select_category.php     
TAG POS=1 TYPE=SPAN ATTR=TXT:Plaats<SP>advertentie   
'New page loaded      
TAG POS=1 TYPE=SELECT FORM=ACTION:http://verkopen.marktplaats.nl/select_category.php ATTR=ID:l1 CONTENT=4 
TAG POS=1 TYPE=SELECT FORM=ACTION:http://verkopen.marktplaats.nl/select_category.php ATTR=ID:l2 CONTENT=3 
'New page loaded      
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://verkopen.marktplaats.nl/select_category.php ATTR=ID:22 CONTENT=email@email.com 
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://verkopen.marktplaats.nl/select_category.php ATTR=VALUE:Verder  
'New page loaded      
TAG POS=1 TYPE=SELECT FORM=NAME:ad_form ATTR=ID:101 CONTENT=4 
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ad_form ATTR=ID:102 CONTENT=myname 
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ad_form ATTR=ID:1 CONTENT=advertisment<SP>title<SP>from<SP>CSV<SP>file 
[color=#FF0000]TAG POS=1 TYPE=SPAN ATTR=TXT:Foto's<SP>toevoegen   
TAG POS=1 TYPE=INPUT:FILE FORM=NAME:ad_form ATTR=NAME:userfile CONTENT= 
TAG POS=1 TYPE=INPUT:FILE FORM=ACTION:http://verkopen.marktplaats.nl/upload.php ATTR=NAME:Thumbnail1_1 CONTENT=C:\1.jpg[/color]
'New page loaded      
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ad_form ATTR=ID:price CONTENT=885 
TAG POS=1 TYPE=TD ATTR=TXT:Kies<SP>Prijsstelling<SP>*<SP><BR><LF><SP>Vaste<SP>prijs<SP><BR><LF>€<SP><BR><LF>Biedingen<SP>toestaan<BR><LF><SP><BR><LF><SP>Bieden<SP>(vanaf)<BR><LF><SP>Vrij<SP>bieden<SP><BR><LF>Tegen<SP>elk<SP>aannemelijk<SP>bod<SP><BR><LF>Bieden<SP>vanaf<SP>€<SP><BR><LF><BR><LF><BR><LF>Meer<SP>opties<BR><LF>Nader<SP>overeen<SP>te<SP>komen<BR><LF>Zie<SP>omschrijving<BR><LF>Op<SP>aanvraag<BR><LF>Ruilen<BR><LF>Gratis<BR><LF><BR><LF><BR><LF><BR><LF><SP><SP><SP>Bied<SP>de<SP>koper<SP>de<SP>gelegenheid<SP>u<SP>via<SP>PayPal<SP>te<SP>betalen,<SP>met<SP>de<SP>zekerheid<SP>van<SP>PayPal-Kopersbescherming<SP>   
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:ad_form ATTR=ID:ab&&VALUE:on CONTENT=NO 
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:ad_form ATTR=ID:pp&&VALUE:true CONTENT=YES 
FRAME F=4     
FRAME F=0     
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:ad_form ATTR=ID:do_submit  
'New page loaded      
The red code is to add an image, this is not working either :(
It gives error code 284.

On the same page you can see the 'advertentietekst' field, I click that during record and inserted text but it is not recordeed, it looks like this:
http://imageshack.us/photo/my-images/82 ... plaats.jpg

I tried directscreen, and all other methods as well.
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: Marktplaats description

Post by Daniel, Tech Support » Tue Aug 16, 2011 1:38 pm

Hi,

DirectScreen works with iMacros Browser only, so here is the macro for it, all the way down to the description field:

Code: Select all

URL GOTO=http://verkopen.marktplaats.nl/select_category.php     
TAG POS=1 TYPE=SPAN ATTR=TXT:Plaats<SP>advertentie   

TAG POS=1 TYPE=SELECT FORM=ACTION:http://verkopen.marktplaats.nl/select_category.php ATTR=ID:l1
DS CMD=CLICK X={{!TAGX}} Y={{!TAGY}} CONTENT=Auto
SET !VAR1	 {{!TAGY}}
ADD !VAR1 75
DS CMD=CLICK X={{!TAGX}} Y={{!VAR1}}

WAIT SECONDS=3

TAG POS=1 TYPE=SELECT FORM=ACTION:http://verkopen.marktplaats.nl/select_category.php ATTR=ID:l2
DS CMD=CLICK X={{!TAGX}} Y={{!TAGY}} CONTENT=Alfa
SET !VAR1	 {{!TAGY}}
ADD !VAR1 50
DS CMD=CLICK X={{!TAGX}} Y={{!VAR1}}

WAIT SECONDS=3

TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://verkopen.marktplaats.nl/select_category.php ATTR=ID:22 CONTENT=email@email.com
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://verkopen.marktplaats.nl/select_category.php ATTR=VALUE:Verder

TAG POS=1 TYPE=SELECT FORM=NAME:ad_form ATTR=ID:101 CONTENT=4
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ad_form ATTR=ID:102 CONTENT=myname
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ad_form ATTR=ID:1 CONTENT=advertisment<SP>title<SP>from<SP>CSV<SP>file
TAG POS=1 TYPE=SPAN ATTR=TXT:Foto's<SP>toevoegen   
TAG POS=1 TYPE=INPUT:FILE FORM=NAME:ad_form ATTR=ID:userfile_1 CONTENT=C:\Users\Public\Pictures\Sample<SP>Pictures\Chrysanthemum.jpg

TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ad_form ATTR=ID:3 CONTENT=885

TAG POS=1 TYPE=B FORM=ID:mp_place_item ATTR=TXT:Volledigheid<SP>van<SP>uw<SP>advertentie
TAG POS=1 TYPE=B FORM=ID:mp_place_item ATTR=TXT:Volledigheid<SP>van<SP>uw<SP>advertentie

FRAME F=0

SET !VAR1 {{!TAGX}}
SET !VAR2 {{!TAGY}}
ADD !VAR1 50
ADD !VAR2 -100

DS CMD=CLICK X={{!VAR1}} Y={{!VAR2}} CONTENT=mytextgoeshere
Best regards,
Daniel, iOpus Support
djrolo
Posts: 7
Joined: Tue Aug 02, 2011 10:39 pm

Re: Marktplaats description

Post by djrolo » Tue Aug 16, 2011 10:13 pm

Thanks, I tried it and image select is working, but macro gives this error on the image select line anyway and then stops:

Error in Line 21:
TYPE=INPUT:TEXT FORM=NAME:ad_form ATTR=ID:3
(Error code: -301)

Line 21 is:
TAG POS=1 TYPE=INPUT:FILE FORM=NAME:ad_form ATTR=ID:userfile_1 CONTENT=C:\123.jpg

Line 22:
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ad_form ATTR=ID:3 CONTENT=885,00

ANy idea what goes wrong?

Also; different categories are selected depending on the size of the browser screen, how to make that 'not browser size' dependable?

Thanks!
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: Marktplaats description

Post by Daniel, Tech Support » Wed Aug 17, 2011 9:42 am

Hi,

Unfortunately I can't reproduce the error with iMacros v7. What version of iMacros are you using?

With regard to the size, just add the SIZE command to the beginning of the macro:
SIZE X=1024 Y=768

Best regards,
Daniel, iOpus Support
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: Marktplaats description

Post by Daniel, Tech Support » Wed Aug 17, 2011 9:44 am

djrolo wrote:
Line 22:
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ad_form ATTR=ID:3 CONTENT=885,00
In my macro its line 30, so we're probably running different code...
Daniel, iOpus Support
djrolo
Posts: 7
Joined: Tue Aug 02, 2011 10:39 pm

Re: Marktplaats description

Post by djrolo » Wed Aug 17, 2011 10:08 pm

I think we use the same code but editplus also counts the empty lines...
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: Marktplaats description

Post by Daniel, Tech Support » Thu Aug 18, 2011 5:32 pm

Hi,

Could you please go to Help-About iMacros and check the version? A screen shot of the error would also help.

Thanks!
Daniel, iOpus Support
djrolo
Posts: 7
Joined: Tue Aug 02, 2011 10:39 pm

Re: Marktplaats description

Post by djrolo » Sun Sep 04, 2011 9:02 pm

Screenshot:

Image

I have version 6.50

Thanks,
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: Marktplaats description

Post by Daniel, Tech Support » Tue Sep 06, 2011 4:18 pm

Hi,

Oh, v6.5... It probably sees that tag differently. Try this then: record a click on the text "Volledigheid van uw advertentie" and paste the result into the macro instead of this line:

Code: Select all

TAG POS=1 TYPE=B FORM=ID:mp_place_item ATTR=TXT:Volledigheid<SP>van<SP>uw<SP>advertentie
Best regards,
Daniel, iOpus Support
Post Reply