Search found 118 matches

by siniy
Sun Dec 26, 2010 12:31 am
Forum: iMacros for Firefox
Topic: Data extraction Help
Replies: 2
Views: 938

Re: Data extraction Help

Code: Select all

TAG POS=1 TYPE=A ATTR=CLASS:search_link EXTRACT=TXT
Read more on TAG and EXTRACT command on imacros wiki.
by siniy
Sun Dec 26, 2010 12:25 am
Forum: Data Extraction and Web Screen Scraping
Topic: xpath and variables???
Replies: 6
Views: 4140

Re: xpath and variables???

I would suggest for you looking at javascript interface for imacros. I myself was putting it off for too long. Now I'm writing a lot of scripts with javascript. SET !EXTRACT_TEST_POPUP NO '1 SET !VAR1 1 TAG XPATH="id('___{{!VAR1}}')/td[5]" EXTRACT=TXT TAG XPATH="id('___{{!VAR1}}')/td[10]" EXTRACT=TX...
by siniy
Thu Dec 23, 2010 9:42 pm
Forum: Data Extraction and Web Screen Scraping
Topic: xpath and variables???
Replies: 6
Views: 4140

Re: xpath and variables???

You are on the right track thinking about !LOOP !SET !LOOP 1 TAG XPATH="id('___{{!LOOP}}')/td[5]" EXTRACT=TXT TAG XPATH="id('___{{!LOOP}}')/td[10]" EXTRACT=TXT SAVEAS TYPE=EXTRACT FOLDER=c:\temp\xpath\ FILE=extraction.csv Play this script will loop MAX: 8000 I believe there is limit in 2000 lines fo...
by siniy
Thu Dec 23, 2010 9:37 pm
Forum: Data Extraction and Web Screen Scraping
Topic: Error -308 SAVEAS
Replies: 1
Views: 1064

Re: Error -308 SAVEAS

You are trying to merge two separate commands "TAG" and "SAVEAS" into one. I think the code below should work.

Code: Select all

TAG POS=1 TYPE=* ATTR=TXT:*survey* 
SAVEAS TYPE=PNG FOLDER=* FILE=survey.png
http://wiki.imacros.net/SAVEAS
http://wiki.imacros.net/TAG
by siniy
Sun Dec 19, 2010 10:52 am
Forum: iMacros for Firefox
Topic: How do I make iMacros more efficient
Replies: 1
Views: 625

Re: How do I make iMacros more efficient

use command

Code: Select all

SET !ERRORIGNORE YES
by siniy
Sun Dec 19, 2010 10:50 am
Forum: iMacros for Firefox
Topic: Help with SEARCH SOURCE=REGEXP
Replies: 2
Views: 818

Re: Help with SEARCH SOURCE=REGEXP

You almost got it.With the regex below I'm getting 'five'

Code: Select all

SEARCH SOURCE=REGEXP:"answer == \"([^\"]+)\"" EXTRACT="$1"
I'd reccomend develop regexes for imacros in external tool. I use "Regex coach".
by siniy
Fri Dec 17, 2010 10:22 am
Forum: General Support & Discussions
Topic: Delete all cookies is too much
Replies: 4
Views: 2787

Re: Delete all cookies is too much

+1, this would be a neat feature. It drives me crazy when I have to login to dozens of sites again and again.
by siniy
Fri Dec 17, 2010 10:20 am
Forum: General Support & Discussions
Topic: How do I wait until a string of text appears?
Replies: 10
Views: 4180

Re: How do I wait until a string of text appears?

For such task I use extracting some text on results page.

Code: Select all

SET !TIMEOUT_TAG 10
SET !EXTRACT_TEST_POPUP NO
TAG POS=1 TYPE=DIV ATTR=TXT:Thanks* EXTRACT=TXT
by siniy
Fri Dec 17, 2010 10:16 am
Forum: Data Extraction and Web Screen Scraping
Topic: Excel help please....
Replies: 2
Views: 1017

Re: Excel help please....

It is do-able you should use VBA and imacros.
by siniy
Thu Dec 16, 2010 5:12 pm
Forum: iMacros for Firefox
Topic: Automatic Login Issue
Replies: 10
Views: 3390

Re: Automatic Login Issue

Use autorefresh plugin or create autorefresh yourself. Make autologin imacros script, run it in loop with timeout 5-10 minutes and "SET !ERRORIGNORE YES". There is also auto login plugin for firefox which I use. http://securelogin.mozdev.org/ It's not logging in automatically by default. You'll need...
by siniy
Thu Dec 16, 2010 5:02 pm
Forum: iMacros for Firefox
Topic: How to make it click on TXT if there is an image
Replies: 2
Views: 847

Re: How to make it click on TXT if there is an image

нихуя не понял
by siniy
Thu Dec 16, 2010 4:59 pm
Forum: iMacros for Firefox
Topic: Assigning the value of a JS variable to an iMacros variable
Replies: 2
Views: 1185

Re: Assigning the value of a JS variable to an iMacros varia

You can read and write files using JS in firefox. writeToFile("c:\\test.txt", "Hi"); function writeToFile(filename, data) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); } catch (e) { alert("Permission to save file was denied."); return 0; } var file = Components.cl...
by siniy
Fri Dec 10, 2010 11:51 am
Forum: Data Extraction and Web Screen Scraping
Topic: Auto incement the input number
Replies: 1
Views: 791

Re: Auto incement the input number

VERSION BUILD=7121109 TAB T=1 TAB CLOSEALLOTHERs URL GOTO=http://ferestande.com TAG POS=1 TYPE=IMG ATTR=ID:enter_tracking SET !LOOP 26257 TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:peigiri_form-portal.php ATTR=ID:resnum CONTENT=19/71-21-2{{!LOOP}} TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:peigiri_form-por...
by siniy
Fri Dec 10, 2010 11:43 am
Forum: Command Line and Scripting Interface
Topic: LOOP does not increase after loop
Replies: 1
Views: 1078

Re: LOOP does not increase after loop

Replace

Code: Select all

SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
with

Code: Select all

SET !DATASOURCE_LINE {{LOOP}}
I'd recommend that you renamed LOOP to counter or something.
by siniy
Fri Dec 10, 2010 11:38 am
Forum: iMacros for Firefox
Topic: Will you please help a complete knob!?
Replies: 1
Views: 557

Re: Will you please help a complete knob!?

Skype is in my profile.