[GET] Imacros Article Finder

warrior skunk

Newbie
Sep 1, 2009
45
25
Hey I thought I would finally contribute to the forums after reading countless posts by others.

I just finished creating an Imacros script that will search ezinearticles.com for your specific keyword take the top ten results, rewrite them, and then save them in your Imacros downloads folder.

In more detail, the script will rewrite the articles using Google Translator to translate them into French and then back into English. I know this is not the best way to go about rewriting articles, but for my purpose I think it will be OK. If anyone else knows of a free fully automatic online article spinner that is better let me know and I can change it to utilize that tool fairly easily. :D

To use the tool you simply play the macro and enter in your keyword when asked. Then sit back and watch as it gathers 10 fresh articles for you. There is, however, a possibility that an author appears in your top 10 results in which case the script will just keep going and you will have an empty article.

Anyway here is the code:
Code:
keyword = prompt("Enter your article keyword(s)", "");


macro = "CODE:\n";
macro += "TAB T=1\n";
macro += "URL GOTO=http://ezinearticles.com/\n";
macro += "TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://ezinearticles.com/results/ ATTR=NAME:q CONTENT="+keyword.replace(/ /gi, "<SP>") +"\n";
macro += "TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://ezinearticles.com/results/ ATTR=NAME:sa&&VALUE:Google<SP>Search\n";
macro += "FRAME F=1\n";
macro += "TAG POS=1 TYPE=img ATTR=ALT:Google EXTRACT=TXT\n";
macro += "SET !EXTRACT NULL\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
retcode = iimPlay(macro);
extract = iimGetLastExtract();
//alert(extract);
urls = extract.split("[EXTRACT]");

for (i = 0; i < urls.length; i++) {
    //alert(urls[i]);
    macro = "CODE:\n";
    macro += "URL GOTO="+urls[i]+"\n";
    macro += "TAG POS=1 TYPE=div ATTR=ID:body EXTRACT=TXT\n";
    macro += "URL GOTO=http://translate.google.com/#\n";
    macro += "TAG POS=1 TYPE=TEXTAREA FORM=NAME:text_form ATTR=ID:source CONTENT={{!EXTRACT}}\n";
    macro += "TAG POS=1 TYPE=SELECT FORM=NAME:text_form ATTR=ID:old_sl CONTENT=%en\n";
    macro += "TAG POS=1 TYPE=SELECT FORM=NAME:text_form ATTR=ID:old_tl CONTENT=%fr\n";
    macro += "TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:text_form ATTR=ID:old_submit\n";
    macro += "SET !EXTRACT NULL\n";
    macro += "TAG POS=1 TYPE=SPAN ATTR=ID:result_box EXTRACT=TXT\n";
    macro += "URL GOTO=http://translate.google.com/#\n";
    macro += "TAG POS=1 TYPE=TEXTAREA FORM=NAME:text_form ATTR=ID:source CONTENT={{!EXTRACT}}\n";
    macro += "TAG POS=1 TYPE=SELECT FORM=NAME:text_form ATTR=ID:old_sl CONTENT=%fr\n";
    macro += "TAG POS=1 TYPE=SELECT FORM=NAME:text_form ATTR=ID:old_tl CONTENT=%en\n";
    macro += "TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:text_form ATTR=ID:old_submit\n";
    macro += "SET !EXTRACT NULL\n";
    macro += "TAG POS=1 TYPE=SPAN ATTR=ID:result_box EXTRACT=TXT\n";
    macro += "SAVEAS TYPE=EXTRACT FOLDER=* FILE="+keyword.replace(/ /gi, "_")+"_"+i+".txt\n";
    retcode = iimPlay(macro);
    extract = iimGetLastExtract();
    article = temp[temp.length-1];
}
One example that I plan on using this code for is to make things like linkwheels or other web 2.0 backlinks. I am not necessarily looking for the pages to actually get visitors, but just be good related backlinks. That is why I don't require high quality rewritten articles.
 
Was trying to code a macro to do this ! Thats what i call a new year's gift ! Thanx
 
Thanks for the share.. Will try to modify it to add one more level of translation to get even more uniqueness..
 
Hey warrior,

I get this error when I try run the macro

Code:
SyntaxError: unknown command: KEYWORD at line 1

Here's what I did..

1) I created a new .iim file in the Imacros folder
2) Copied & pasted the code that you have given in the new file
3) Saved the file and then tried to run it from the iMacros sidebar

Did I miss anything?
 
Hey warrior,

I get this error when I try run the macro

Code:
SyntaxError: unknown command: KEYWORD at line 1

Here's what I did..

1) I created a new .iim file in the Imacros folder
2) Copied & pasted the code that you have given in the new file
3) Saved the file and then tried to run it from the iMacros sidebar

Did I miss anything?

You have to run this in the javascript... So edit your macro and at the top you will see a drop down, just click on javascript and save it. Instead of .iim it will be .js
 
pretty cool - temp is not defined - line 49 error

will peek at it further ... on first go ...
 
pretty cool - temp is not defined - line 49 error

will peek at it further ... on first go ...

Sorry just got up... it looks like I left a line of code in there that is not needed. Take out the entire line 49
Code:
article = temp[temp.length-1];
The updated code will look like this. Sorry about that!
Code:
keyword = prompt("Enter your article keyword(s)", "");


macro = "CODE:\n";
macro += "TAB T=1\n";
macro += "URL GOTO=http://ezinearticles.com/\n";
macro += "TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://ezinearticles.com/results/ ATTR=NAME:q CONTENT="+keyword.replace(/ /gi, "<SP>") +"\n";
macro += "TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://ezinearticles.com/results/ ATTR=NAME:sa&&VALUE:Google<SP>Search\n";
macro += "FRAME F=1\n";
macro += "TAG POS=1 TYPE=img ATTR=ALT:Google EXTRACT=TXT\n";
macro += "SET !EXTRACT NULL\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
macro += "TAG POS=R1 TYPE=a ATTR=* EXTRACT=HREF\n";
retcode = iimPlay(macro);
extract = iimGetLastExtract();
//alert(extract);
urls = extract.split("[EXTRACT]");

for (i = 0; i < urls.length; i++) {
    //alert(urls[i]);
    macro = "CODE:\n";
    macro += "URL GOTO="+urls[i]+"\n";
    macro += "TAG POS=1 TYPE=div ATTR=ID:body EXTRACT=TXT\n";
    macro += "URL GOTO=http://translate.google.com/#\n";
    macro += "TAG POS=1 TYPE=TEXTAREA FORM=NAME:text_form ATTR=ID:source CONTENT={{!EXTRACT}}\n";
    macro += "TAG POS=1 TYPE=SELECT FORM=NAME:text_form ATTR=ID:old_sl CONTENT=%en\n";
    macro += "TAG POS=1 TYPE=SELECT FORM=NAME:text_form ATTR=ID:old_tl CONTENT=%fr\n";
    macro += "TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:text_form ATTR=ID:old_submit\n";
    macro += "SET !EXTRACT NULL\n";
    macro += "TAG POS=1 TYPE=SPAN ATTR=ID:result_box EXTRACT=TXT\n";
    macro += "URL GOTO=http://translate.google.com/#\n";
    macro += "TAG POS=1 TYPE=TEXTAREA FORM=NAME:text_form ATTR=ID:source CONTENT={{!EXTRACT}}\n";
    macro += "TAG POS=1 TYPE=SELECT FORM=NAME:text_form ATTR=ID:old_sl CONTENT=%fr\n";
    macro += "TAG POS=1 TYPE=SELECT FORM=NAME:text_form ATTR=ID:old_tl CONTENT=%en\n";
    macro += "TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:text_form ATTR=ID:old_submit\n";
    macro += "SET !EXTRACT NULL\n";
    macro += "TAG POS=1 TYPE=SPAN ATTR=ID:result_box EXTRACT=TXT\n";
    macro += "SAVEAS TYPE=EXTRACT FOLDER=* FILE="+keyword.replace(/ /gi, "_")+"_"+i+".txt\n";
    retcode = iimPlay(macro);
    extract = iimGetLastExtract();
}
 
Last edited:
thanks i love it!! i can continue working on with this and automatically post save article to my wordpress blog.
 
nice one skunky- thanks for that ... very useful.

U got time and any desire to code a few paid gigs for me privately?

Imacros - javascript macros that run in the free firefox add-on version.

kinda simple stuff really - im just not a core programmer.

Needsif then logic and randomization logic.

if this tag appears on hte page as X - then

TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:lOgin ATTR=VALUE:Sign<SP>In

if tag Y exists then do

TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:lOgin ATTR=VALUE:Sign<SP>In

Then the other is a random spun article macro ...

Lets say I have a .csv full of 10 different niche articles spun 100 times each ...

row 1, article 1 title, article 1 body, article 2 title, article 2 body, thru article 10

....

row 100, article 1 title, article 1 body, article 2 title, article 2 body, thru article 10

javascript to create a randow ROW 1-100, and then a random set of column pairs [ colmun1-article's title | column 2, article's body ]

simply looping over isnt gettin it done for me :)

would like to be able to randomizenot only the row selected of 1-100 versions of the article ... but also by randomizing column pairs i can randomize the niche of the articles - and post like a bat outta hell with pretty unique random content.

thoughts ohhhh imacros article wizards?
 
Hi,

Please i really wish i could use this macros but i dont know how to use it, i downloaded and installed the firefox extension of imacros but i dont know what to do next to be able to use the code given above, please i kindly need help.
 
Hi,


i need help, please can you kindly teach me how to use this software. i really donnot understand any thing about it, i just downloaded the firefox extension i.e imacros, but dont know how to use it to get articles




Hey warrior,

I get this error when I try run the macro

Code:
SyntaxError: unknown command: KEYWORD at line 1
Here's what I did..

1) I created a new .iim file in the Imacros folder
2) Copied & pasted the code that you have given in the new file
3) Saved the file and then tried to run it from the iMacros sidebar

Did I miss anything?
 
amazing!!

Mine stops though with the following error

Code:
RuntimeError: element SELECT specified by ID:old_sl was not found, line: 6
 
Last edited:
Hey warrior,

I get this error when I try run the macro

Code:
SyntaxError: unknown command: KEYWORD at line 1

Here's what I did..

1) I created a new .iim file in the Imacros folder
2) Copied & pasted the code that you have given in the new file
3) Saved the file and then tried to run it from the iMacros sidebar

Did I miss anything?

I am with the same problem.
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock