green.pine wrote:sorry about it,
I did have the info but it took some time and I was logged out,
so the second time I missed the info about my firefox version and others
Code: Select all
I have FF ver 55.0.3 32-bit, running on Win 7 32.
I have now Imacros v8.9.7
About adding more content to file, I am sitll trying to figure it out,
but I realized that I can not use text file, because I want to get the content of that text file to be pasted into a text area of a form, so it seems that imacros can not read from text line.
so I made it in a csv file, but now I have another problem, I can not pull complete data from the csv file, it does it one row by one row,
I guess that is suppose to be.
is there a way to pulled all data from csv file at one go and put it into a text area in a form?
Thanks
Ah...!, OK for your FCI... (I usually don't react to Threads when that Info is missing...)
"About adding more content to file,..." => When, that's the Purpose of the 'SAVEAS TYPE=EXTRACT' Mechanism which appends Data if you save to an existing File...
Oh...!, and I figured out why the File had '.txt.csv' Extension, it came from the "FILE=+" (or "FILE=*") which creates/saves to a File called "extract.csv" per Default...
About pulling the complete Data from your '.csv' or '.txt', I don't really understand what you want to do, ah-ah...! Your Google Search on "Dog Grooming" yields about nearly 20 Millions Results..., and you want to paste all those 20M Results into one Input Field in some Form with one Copy&Paste...!?!
That's an "ambitious" Plan, I would think...!?
If 100 Results represent about 30Kb of Data in "clean" Text (without all the JS Garbage from your 'EXTRACT' on 'TYPE=HTML'), 20M Results represent about 6M Kb = 6Tb of Data...! I'm not sure the Web-Server will be happy...! Or is this some new form of DDOS Attack...!?
>>>
TEMP_SAVE:
I'm running some "dangerous" Test that might crash my poor Browser, and I might lose my Post, ah-ah...!
I'M BACK:
A bit later, "dangerous" Test didn't crash my Browser but froze it indeed for several minutes...! iMacros for FF has Difficulties doing an 'EXTRACT=HTM' on a large Page (like 100 Results on Google) with '!EXTRACT_TEST_POPUP' not disabled.
>>>
But OK, I managed to retrieve the following Info about the Data Structure on the Page by doing the following Statement:
Code: Select all
TAG POS=4 TYPE=DIV ATTR=TXT:Trenton<SP>Pet<SP>Grooming,<SP>Boarding,<SP>and<SP>Daycaresu* EXTRACT=HTM
.... which shows that each Result is constructed from 8 embedded 'DIV''s, for which the first 3 could be used to extract the whole Data in one Statement related to one Result.
Code: Select all
<div style="outline: 1px solid blue;" class="srg">
<div class="g"><!--m-->
<div data-hveid="38" data-ved="0ahUKEwjy95GA-MPWAhWFLcAKHV_qBjM4ZBAVCCYoADAA">
<div class="rc"><h3 style="outline: 1px solid blue;" class="r"><a href="http://sundogpets.com/" onmousedown="return rwt(this,'','','','101','AFQjCNHlzu-L4Iqg4byKdpQ7pjnguqbO4g','','0ahUKEwjy95GA-MPWAhWFLcAKHV_qBjM4ZBAWCCcwAA','','',event)">Trenton Pet Grooming, Boarding, and Daycare</a></h3>
<div class="s">
<div>
<div class="f kv _SWb" style="white-space: nowrap; outline: 1px solid blue;"><cite class="_Rm">sundogpets.com/</cite>
<div class="action-menu ab_ctl"><a class="_Fmb ab_button" href="#" id="am-b100" aria-label="Result details" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="0ahUKEwjy95GA-MPWAhWFLcAKHV_qBjM4ZBDsHQgoMAA"><span class="mn-dwn-arw"></span></a>
<div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="0ahUKEwjy95GA-MPWAhWFLcAKHV_qBjM4ZBCpHwgpMAA"><ol><li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="http://webcache.googleusercontent.com/search?q=cache:BVYPfGsdjZIJ:sundogpets.com/+&cd=101&hl=en&ct=clnk&gl=nl" onmousedown="return rwt(this,'','','','101','AFQjCNHSL3PiIds6m4mVQDGkPnSb0Hsq_A','','0ahUKEwjy95GA-MPWAhWFLcAKHV_qBjM4ZBAgCCowAA','','',event)">Cached</a></li></ol>
</div>
</div>
</div>
<span class="st">Trenton, Georgia <em>Pet Grooming</em> | Overnight Pet Boarding | <em>Dog Grooming</em> | Cat Grooming | Dog and Cat Boarding | Pet Treats | Sun Dog <em>Pet Grooming</em>.</span>
</div>
</div>
</div>
</div>
<!--n-->
</div>
<div class="g"><!--m-->
<div data-hveid="43" data-ved="0ahUKEwjy95GA-MPWAhWFLcAKHV_qBjM4ZBAVCCsoATAB">
<div class="rc"><h3 class="r"><a href="http://groomersmall.com/" onmousedown="return rwt(this,'','','','102','AFQjCNEIC0-kBtaY8xWQjJssUQRuXOIbOQ','','0ahUKEwjy95GA-MPWAhWFLcAKHV_qBjM4ZBAWCCwwAQ','','',event)">©The Groomer's Mall-Professional Pet Grooming Supplies and ...</a></h3>
<div class="s">
<div>
<div class="f kv _SWb" style="white-space:nowrap"><cite class="_Rm">groomersmall.com/</cite>
<div class="action-menu ab_ctl"><a class="_Fmb ab_button" href="#" id="am-b101" aria-label="Result details" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="0ahUKEwjy95GA-MPWAhWFLcAKHV_qBjM4ZBDsHQgtMAE"><span class="mn-dwn-arw"></span></a>
<div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="0ahUKEwjy95GA-MPWAhWFLcAKHV_qBjM4ZBCpHwguMAE"><ol><li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="http://webcache.googleusercontent.com/search?q=cache:_tb259OEVbUJ:groomersmall.com/+&cd=102&hl=en&ct=clnk&gl=nl" onmousedown="return rwt(this,'','','','102','AFQjCNE3lIIThhImDUPQXptpxe38HJ1lOA','','0ahUKEwjy95GA-MPWAhWFLcAKHV_qBjM4ZBAgCC8wAQ','','',event)">Cached</a></li></ol>
</div>
</div>
</div><span class="st"><em>Pet Grooming</em> Supplies for Professional and Non-Professional Groomers.</span>
</div>
</div>
</div>
</div><!--n-->
</div>
<div class="g"><!--m-->
<div data-hveid="48" data-ved="0ahUKEwjy95GA-MPWAhWFLcAKHV_qBjM4ZBAVCDAoAjAC">
<div class="rc"><h3 class="r">
... etc...
And the following 'EXTRACT' on the Containing 'DIV' extracts the whole Data for all Results on the Page:
Code: Select all
TAG POS=1 TYPE=DIV ATTR=CLASS:srg&&TXT:* EXTRACT=TXT
And this Data can be saved via 'SAVEAS TYPE=EXTRACT' to a '.txt' or '.csv' File for each Page of Results.
Now if you want to retrieve the complete Data from that '.txt' or '.csv' File (it's actually easier with a '.txt' File), I've explained and demonstrated the Technique (that I use and which is the quickest) in the following Thread...:
-
Re: Get number of lines from CSV and use as variable?
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...