Powered by Blogger.

Imacro and PHP to The Keyword

imacro + php to the keyword.

 The csv result.csv.

seed keyword,"keyword",&start990,intitle:"keyword",inurl:"keyword",inurl:"keyword" intitle:"keyword"
 
 
 '
 ------------------------------------------ Start Script ---------------------------------------- <br /><span style="font-size: x-small;">VERSION BUILD=7401110 RECORDER=FX<br />TAB T=1</span></span></span></div> SET !ERRORIGNORE YES SET !ERRORCONTINUE YES SET !EXTRACT_TEST_POPUP NO SET !TIMEOUT_TAG 2  'INCLUDE SITE CMDLINE !DATASOURCE C:\csv\google2.csv SET !DATASOURCE_COLUMNS 2 SET !LOOP 2 SET !DATASOURCE_LINE {{!LOOP}} '============================================================== SET !VAR2 {{!col1}} TAB T=1 URL GOTO=http://www.google.com/search?hl=en&source=hp&biw=1136&bih=615&q={{!col1}}&aq=f&aqi=g10&aql=&oq= TAG POS=1 TYPE=DIV ATTR=ID:resultStats&&TXT:About* EXTRACT=TXT SET !VAR1 {{!EXTRACT}} SET !EXTRACT NULL  TAB T=2 TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/gg_res2.php ATTR=NAME:keyword CONTENT={{!VAR1}} SET !VAR1 NULL TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/gg_res2.php ATTR=NAME:submit&&VALUE:submit TAG POS=1 TYPE=P ATTR=TXT:* EXTRACT=TXT ADD !VAR2 +{{!EXTRACT}} SET !EXTRACT NULL '============================================================== TAB T=1 URL GOTO=http://www.google.com/search?hl=en&source=hp&biw=1136&bih=615&q={{!col1}}&aq=f&aqi=g10&aql=&oq=&start=990 TAG POS=1 TYPE=I ATTR=TXT:In* EXTRACT=TXT SET !VAR1 {{!EXTRACT}} SET !EXTRACT NULL  TAB T=2 TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/gg_res2.php ATTR=NAME:keyword CONTENT={{!VAR1}} SET !VAR1 NULL TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/gg_res2.php ATTR=NAME:submit&&VALUE:submit TAG POS=1 TYPE=P ATTR=TXT:* EXTRACT=TXT ADD !VAR2 +{{!EXTRACT}} SET !EXTRACT NULL '=============================================================== TAB T=1 URL GOTO=http://www.google.com/search?hl=en&source=hp&biw=1136&bih=615&q=intitle:{{!col1}}&aq=f&aqi=g10&aql=&oq= TAG POS=1 TYPE=DIV ATTR=ID:resultStats&&TXT:About* EXTRACT=TXT SET !VAR1 {{!EXTRACT}} SET !EXTRACT NULL  TAB T=2 TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/gg_res2.php ATTR=NAME:keyword CONTENT={{!VAR1}} SET !VAR1 NULL TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/gg_res2.php ATTR=NAME:submit&&VALUE:submit TAG POS=1 TYPE=P ATTR=TXT:* EXTRACT=TXT ADD !VAR2 +{{!EXTRACT}} SET !EXTRACT NULL '=============================================================== TAB T=1 URL GOTO=http://www.google.com/search?hl=en&source=hp&biw=1136&bih=615&q=inurl:{{!col1}}&aq=f&aqi=g10&aql=&oq= TAG POS=1 TYPE=DIV ATTR=ID:resultStats&&TXT:About* EXTRACT=TXT SET !VAR1 {{!EXTRACT}} SET !EXTRACT NULL  TAB T=2 TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/gg_res2.php ATTR=NAME:keyword CONTENT={{!VAR1}} SET !VAR1 NULL TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/gg_res2.php ATTR=NAME:submit&&VALUE:submit TAG POS=1 TYPE=P ATTR=TXT:* EXTRACT=TXT ADD !VAR2 +{{!EXTRACT}} SET !EXTRACT NULL '================================================================= TAB T=1 URL GOTO=http://www.google.com/search?hl=en&source=hp&biw=1136&bih=615&q=intitle:{{!col1}}+inurl:{{!col1}}&aq=f&aqi=g10&aql=&oq= TAG POS=1 TYPE=DIV ATTR=ID:resultStats&&TXT:About* EXTRACT=TXT SET !VAR1 {{!EXTRACT}} SET !EXTRACT NULL  TAB T=2 TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/gg_res2.php ATTR=NAME:keyword CONTENT={{!VAR1}} SET !VAR1 NULL TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/gg_res2.php ATTR=NAME:submit&&VALUE:submit TAG POS=1 TYPE=P ATTR=TXT:* EXTRACT=TXT ADD !VAR2 +{{!EXTRACT}} SET !EXTRACT NULL  SET !EXTRACT {{!VAR2}} SAVEAS TYPE=EXTRACT FOLDER=<span style="color: red;">C:\csv</span> FILE=<span style="color: red;">result2.csv</span> <div class="separator" style="clear: both; text-align: left;"> <br /></div> <span class="short_text" id="result_box" lang="en"><span class="hps"> ' ------------------------------------------- End Script ---------------------------------------- </span></span>  <br /><span class="short_text" id="result_box" lang="en"><span class="hps"> </span></span><span class="short_text" id="result_box" lang="en"><span class="hps">php</span> <span class="hps">name</span> <span class="hps">gg_res2.php.</span></span><br /><pre><br /><html> <body> <form method="post" action="<span style="color: black;"><span style="color: #0000bb;"><?php </span><span style="color: #007700;">echo </span><span style="color: #0000bb;">$PHP_SELF</span><span style="color: #007700;">;</span><span style="color: #0000bb;">?></span></span>"> keyword : <input type="text" name="keyword"  /></br> <input type="submit" value="submit" name="submit" /> </form> <br /> <span style="color: black;"><span style="color: #0000bb;"><?php</span><span style="color: #007700;">function </span><span style="color: #0000bb;">get_string_between</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$string</span><span style="color: #007700;">, </span><span style="color: #0000bb;">$start</span><span style="color: #007700;">, </span><span style="color: #0000bb;">$end</span><span style="color: #007700;">){</span><span style="color: #0000bb;"> </span><span style="color: #0000bb;">$string </span><span style="color: #007700;">= </span><span style="color: #dd0000;">" "</span><span style="color: #007700;">.</span><span style="color: #0000bb;">$string</span><span style="color: #007700;">;</span><span style="color: #0000bb;"> </span><span style="color: #0000bb;">$ini </span><span style="color: #007700;">= </span><span style="color: #0000bb;">strpos</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$string</span><span style="color: #007700;">,</span><span style="color: #0000bb;">$start</span><span style="color: #007700;">);</span><span style="color: #0000bb;"> if (</span><span style="color: #0000bb;">$ini </span><span style="color: #007700;">== </span><span style="color: #0000bb;">0</span><span style="color: #007700;">) {</span><span style="color: #0000bb;"> </span><span style="color: #0000bb;"> return </span><span style="color: #dd0000;">""</span><span style="color: #007700;">;</span><span style="color: #0000bb;"> }</span><span style="color: #0000bb;"> </span><span style="color: #0000bb;">$ini </span><span style="color: #007700;">+= </span><span style="color: #0000bb;">strlen</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$start</span><span style="color: #007700;">);</span><span style="color: #0000bb;"> </span><span style="color: #0000bb;">$len </span><span style="color: #007700;">= </span><span style="color: #0000bb;">strpos</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$string</span><span style="color: #007700;">,</span><span style="color: #0000bb;">$end</span><span style="color: #007700;">,</span><span style="color: #0000bb;">$ini</span><span style="color: #007700;">) - </span><span style="color: #0000bb;">$ini</span><span style="color: #007700;">;</span><span style="color: #0000bb;"> return </span><span style="color: #0000bb;">substr</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$string</span><span style="color: #007700;">,</span><span style="color: #0000bb;">$ini</span><span style="color: #007700;">,</span><span style="color: #0000bb;">$len</span><span style="color: #007700;">); } function </span><span style="color: #0000bb;">parse_results</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$result</span><span style="color: #007700;">) {</span><span style="color: #0000bb;"> </span><span style="color: #0000bb;">$temp </span><span style="color: #007700;">= </span><span style="color: #0000bb;">get_string_between</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$result</span><span style="color: #007700;">, </span><span style="color: #dd0000;">"About "</span><span style="color: #007700;">, </span><span style="color: #dd0000;">" results"</span><span style="color: #007700;">);</span><span style="color: #0000bb;"> if(</span><span style="color: #0000bb;">$temp </span><span style="color: #007700;">== </span><span style="color: #0000bb;">NULL</span><span style="color: #007700;">)</span><span style="color: #0000bb;"> {</span><span style="color: #0000bb;"> </span><span style="color: #0000bb;">$temp </span><span style="color: #007700;">= </span><span style="color: #0000bb;">get_string_between</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$result</span><span style="color: #007700;">, </span><span style="color: #dd0000;">"In order to show you the most relevant results, we have omitted some entries very similar to the "</span><span style="color: #007700;">, </span><span style="color: #dd0000;">" already"</span><span style="color: #007700;">);</span><span style="color: #0000bb;"> }</span><span style="color: #0000bb;"> </span><span style="color: #0000bb;">$temp </span><span style="color: #007700;">= </span><span style="color: #0000bb;">str_replace</span><span style="color: #007700;">(</span><span style="color: #dd0000;">","</span><span style="color: #007700;">, </span><span style="color: #dd0000;">""</span><span style="color: #007700;">, </span><span style="color: #0000bb;">$temp</span><span style="color: #007700;">);</span><span style="color: #0000bb;"> return </span><span style="color: #0000bb;">$temp</span><span style="color: #007700;">; }</span><span style="color: #ff8000;">// $r = str_replace("\"","",$r); // $r = str_replace("\\","",$r); // $q = str_replace(" ", "+", $q); //start====================</span><span style="color: #0000bb;">$k </span><span style="color: #007700;">= </span><span style="color: #0000bb;">$_POST</span><span style="color: #007700;">[</span><span style="color: #dd0000;">"keyword"</span><span style="color: #007700;">]; if (</span><span style="color: #0000bb;">$k </span><span style="color: #007700;">!= </span><span style="color: #dd0000;">""</span><span style="color: #007700;">){</span><span style="color: #0000bb;">$keyword_res1 </span><span style="color: #007700;">= </span><span style="color: #0000bb;">parse_results</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$k</span><span style="color: #007700;">); echo </span><span style="color: #dd0000;">"<p>"</span><span style="color: #007700;">; echo </span><span style="color: #0000bb;">$keyword_res1</span><span style="color: #007700;">; echo </span><span style="color: #dd0000;">"</p>"</span><span style="color: #007700;">; } else echo </span><span style="color: #dd0000;">'no keyword'</span><span style="color: #007700;">;</span><span style="color: #0000bb;">?></span></span> </body> </html> <br /><span class="" id="result_box" lang="en"><span class="hps">How</span> <span class="hps">to</span> <span class="hps">open</span> <span class="hps">it</span>, run <span class="hps">it</span> <span class="hps">and open the</span> <span class="hps">tab 2</span> <span class="hps">imacro</span> <span class="hps">gg_res2.php</span> <span class="hps">open</span> <span class="hps">it</span>.
<span class="hps">Result.csv</span> <span class="hps">bad</span> <span class="hps">file</span><span class="">, then</span> <span class="hps">edit</span> <span class="hps">with notepad</span>, press <span class="hps">ctrl + h</span> <span class="hps">to</span> <span class="hps">find</span> <span class="hps">and</span> <span class="hps">replace</span> <span class="hps">with</span>: <span class="hps atn">"</span>," Yes.
<span class="hps">I</span> <span class="hps">listen</span>, then <span class="hps">listen</span> <span class="hps">close</span> <span class="hps">to</span> <span class="hps">open</span> <span class="hps">it</span> <span class="hps">with</span> <span class="hps">excel</span> <span class="hps">cell</span> <span class="hps">to divide</span> <span class="hps">successfully</span><span class="">.</span></span> <br />

Bannerad

Artikel Terpopuler

Tags

Blogumulus by Roy Tanck and Amanda Fazani