Tamilselvan wrote: ↑Fri Nov 13, 2020 12:37 am
Thanks a lot to Forum Admin
Now FCI
Code: Select all
Firefox 52.9.0 (32-bit)
iMacros 8.9.7
Win-10 (64-bit)
Its worked me.
Thank you very much .
Here its code :
Code: Select all
VERSION BUILD=8970419 RECORDER=FX
TAB T=1
'URL GOTO=http://mnregaweb4.nic.in/netnrega/FTO/fto_sign_detail.aspx?lflag=local&flg=M&page=b&state_name=TAMIL+NADU&state_code=29&district_name=TIRUVANNAMALAI&district_code=2906&block_name=Thellar&block_code=2906015&fin_year=2020-2021&typ=sec_sig_not&mode=b&source=&Digest=CHtClBE4ZVq9RShLvPu1yg
SET !LOOP 2
EVENT TYPE=CLICK SELECTOR="HTML>BODY>FORM>DIV:nth-of-type(3)>TABLE:nth-of-type(4)>TBODY>TR:nth-of-type({{!LOOP}})>TD:nth-of-type(2)>A" BUTTON=0 MODIFIERS="ctrl"
TAB T=2
FRAME F=0
SET !EXTRACT NULL
TAG POS=1 TYPE=TD ATTR=TXT:2906015-ML* EXTRACT=TXT
SET Vr_No {{!EXTRACT}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=Vr_No.csv
TAB CLOSE
'TAB T=2
I need one more help if its possible to do that. In TAB=1 extract the text which i have been clicking link one by one; in TAB=2 extracted vr no. both extracted text should be saved in Vr_No.csv file separate column and remove the extracted text which is contains double quotes and more spaces between text.
Alright, good to hear that the "nth-of-type({{!LOOP}})" Technique is working...
>>>
Then now, to extract the Link you've been clicking on 'TAB_1' => using the 'EVENT' Mode in your Script..., => that would be the 'FTO No' Entries, if I understand "correctly" from your Screenshot(s)...(?)
Then, pffff..., yep, that's possible..., I have a "Technique" to implement the 'EXTRACT' Mechanism using the 'EVENT' Mode
, but I've never posted it, and honesty, I'm very afraid it will be too "complicated" for you, ah-ah...!, it will take months...!, before you'll "maybe" get it to work, ah-ah...!
This wouldn't be an easy/quick Sub-Question with an "easy" Answer... One day maybe, for an "interesting" Thread where the 'EXTRACT' Mechanism "really" doesn't work..., and that would belong into the 'Data-Extraction' Sub-Forum...
=> Simply use the 'TAG' Mode and the "dedicated" 'EXTRACT' Mechanism, that's "the Way to go"...! That's the very Purpose of the 'EXTRACT' Mechanism/Command...!
I don't "know" why you chose for the 'EVENT' Mode to click/loop through those Links, in the first instance, the 'TAG' Mode would have done it just the same, and probably more easily...
Hum, OK..., I understand why you chose for the 'EVENT' Mode, as you are forcing opening every Link in a New Tab with the 'Ctrl^Click' on the Link... (I wasn't seeing the end of the 'EVENT' Statement because of the ]code[ Formatting...) OK, then, that's neat actually...! I'm nearly "impressed" actually you managed to implement that Functionality, ah-ah...! Very nice...
- (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...