Search found 20 matches: xpath eval split

Searched query: xpath eval split

by chivracq
Thu Aug 27, 2020 8:54 am
Forum: Data Extraction and Web Screen Scraping
Topic: How to extract nested informations using XPATH?
Replies: 12
Views: 1774

Re: How to extract nested informations using XPATH?

... the Forum where I posted "my" Solution using 'EVAL()' + 'split()' that I find muuuch simpler than using 'XPATH' and 'REGEX'...: :idea: (... And that I had never posted in ...
by chivracq
Thu Aug 13, 2020 8:13 pm
Forum: Data Extraction and Web Screen Scraping
Topic: How to grab variable in source code to extract? (script type="text/javascript"> var abc = <payload>)
Replies: 5
Views: 593

Re: How to grab variable in source code to extract? (script type="text/javascript"> var abc = <payload>)

... it would not be much more elegant go via xpath, if that is possible here. How would I go ... ATTR=TXT:*sxux* EXTRACT=TXT Then using 'EVAL()' + 'search()' or 'match()' + 'REGEXP', you ... each inner Var and its Value, but I prefer 'split()', with for example: VERSION BUILD=8820413 ...
by chivracq
Mon Apr 13, 2020 8:59 pm
Forum: Data Extraction and Web Screen Scraping
Topic: How to extract nested informations using XPATH?
Replies: 12
Views: 1774

Re: How to extract nested informations using XPATH?

... :D Quoting their updated Answer: Your XPath contains an error (@id instead of @class). ... EXTRACT=HTM SET !VAR1 EVAL("var regex = /url=\"(.+?)\"/; var str = '{{!EXTRACT}}';str.match(regex)[1];") ... Construction with 'REGEXP' + 'match()' while 'split()' can get the same Result(s) in a much easier ...
by chivracq
Mon Apr 13, 2020 4:02 am
Forum: Data Extraction and Web Screen Scraping
Topic: How to extract nested informations using XPATH?
Replies: 12
Views: 1774

Re: How to extract nested informations using XPATH?

... my Posts on the Forum, surprisingly with "xpath" as Search Term, I would think..., hum, and I'm being "nice": + "eval+split"... 8) >>> Hum, and for those interested, quoting the ...
by chivracq
Wed Jan 29, 2020 12:09 pm
Forum: iMacros for Firefox
Topic: Method to use replace in a JavaScript using EVAL
Replies: 7
Views: 2851

Re: Method to use replace in a JavaScript using EVAL

... me worked!! This code macro += "SET Trimmed EVAL(\"var s='{{!EXTRACT}}'; var z=s.split(' ').join(''); z;\")"+ "\n"; macro += "SET Category_1 ... Slashes needed to be escaped or not..., like in your 'XPATH'...(?)) >>> Interesting Site btw, that you seem to ...
by chivracq
Mon Jan 27, 2020 12:24 pm
Forum: iMacros for Firefox
Topic: Method to use replace in a JavaScript using EVAL
Replies: 7
Views: 2851

Re: Method to use replace in a JavaScript using EVAL

... is wrong but I don't know where. A place using EVAL does not work. this code var macro = "CODE:"; ... + "\n"; macro += "TAG XPATH=/html/body/div[1]/section/div[1]/table/tbody/tr[2]/td/a[1]/div ... Trimmed EVAL("var s='{{!EXTRACT}}'; var z=s.split(' ').join(''); z;")' + "\n"; macro += 'SET ...
by chivracq
Tue Dec 10, 2019 3:28 am
Forum: Data Extraction and Web Screen Scraping
Topic: How do I structure a code to auto copy any text in a pattern XXXXX-XXXXX-XXXXX-XXXXX-XXXXX ?
Replies: 16
Views: 4939

Re: How do I structure a code to auto copy any text in a pattern XXXXX-XXXXX-XXXXX-XXXXX-XXXXX ?

... EXTRACT=TXT And then using 'EVAL()' you could also add a bit of "Intelligence" ... 'spit()' and the 'Length' of the several 'split()' parts between the 4 Dashes, including the ... the 1st and the 4th Dashes... Using the 'TAG XPATH' Mode, you would be able to further narrow ...
by chivracq
Tue Sep 03, 2019 2:54 pm
Forum: iMacros for Chrome
Topic: EVAL + Javascript Condition with XPATH (catching EANF)
Replies: 10
Views: 4086

Re: EVAL + Javascript Condition with XPATH (catching EANF)

... extracting the link URL SET !EXTRACT NULL TAG XPATH="//*[@id='itemsList']/ul/li[1]/div[@class='header']/h2/a" ... empty and if yes following the URL SET !VAR1 EVAL("var link='{{!VAR2}}', m='{{!VAR3}}', u1=link.split('?')[0], u2='http://www.google.de', z; if(m=='#EANF#'){z=u1;} ...
by chivracq
Mon Sep 02, 2019 1:14 am
Forum: iMacros for Chrome
Topic: EVAL + Javascript Condition with XPATH (catching EANF)
Replies: 10
Views: 4086

Re: EVAL + Javascript Condition with XPATH (catching EANF)

... and it seems to work like that, now the first XPATH extract the URL and the second xpath checks ... SET !VAR3 {{!EXTRACT}} TAB T=1 SET !VAR1 EVAL("var link = '{{!VAR2}}'; var m = '{{!VAR3}}'.match(/\\bEANF\\b/ig);if ... the "raw" 'link'/'!VAR2' without doing the 'split()' on the '?'... You use ...
by chivracq
Sun Sep 01, 2019 11:26 am
Forum: iMacros for Chrome
Topic: EVAL + Javascript Condition with XPATH (catching EANF)
Replies: 10
Views: 4086

Re: EVAL + Javascript Condition with XPATH (catching EANF)

... to develop a script with STEP 1: checks an XPATH defined container whether or not it is empty ... empty and if yes following the URL SET !VAR1 EVAL("var link = '{{!VAR2}}'; var m = '{{!VAR3}}'.match(/\\bEANF\\b/ig);if (m) link.split('?')[0] ;else 'http://www.google.de';") we do see ...
by chivracq
Tue Aug 27, 2019 3:34 pm
Forum: iMacros for Firefox
Topic: Delete Last Word
Replies: 8
Views: 14127

Re: Delete Last Word

... RECORDER=CR SET !EXTRACT_TEST_POPUP NO TAG XPATH="//*[@id="a-page"]/div[3]/div[1]/div/div/div/div/div[1]/h5" EXTRACT=TXT SET !VAR1 EVAL("var variable=\"{{!EXTRACT}}\"; variable.replace(/Order ... /g,''); ") You could also use 'trim()' and/or 'split()'..., and your 'replace()' probably doesn't need ...
by chivracq
Mon Jun 24, 2019 4:03 pm
Forum: Data Extraction and Web Screen Scraping
Topic: Scrape with smart XPath
Replies: 3
Views: 3204

Re: Scrape with smart XPath

... at the time, Aha, that is my problem, not the XPath...! Good to know - every day something new:) ... to your answer in this thread : and then use 'EVAL()' + 'split()' to isolate the Data that you want to keep Evalsplit ...
by chivracq
Thu May 16, 2019 12:41 am
Forum: General Support & Discussions
Topic: iMacros Eval split function
Replies: 8
Views: 1672

Re: iMacros Eval split function

... Name New Wave Dave [GAY]'s Name TAG XPATH="/html/body/div[5]/center/div[1]/div[3]/strong" EXTRACT=TXT PROMPT _{{!EXTRACT}}_ SET name EVAL("var a = \"{{!EXTRACT}}\".split(\" \"); a[a.length-4];") 'PROMPT _{{name}}_ SET !EXTRACT ...
by chivracq
Mon May 13, 2019 6:27 am
Forum: General Support & Discussions
Topic: Eval Compare statement
Replies: 4
Views: 998

Re: Eval Compare statement

... it to behave correctly. SET withdrawamount EVAL("var a=({{newspapers}} + {{casinos}} + {{skyscrapers}} ... FROM BANK///////////////////// TAG XPATH="/html/body/div[5]/center/div[1]/div[2]/div[1]" EXTRACT=TXT SET bank EVAL("'{{!EXTRACT}}'.split(': ')[1].toNumber();") SET !EXTRACT NULL SET ...
by chivracq
Tue May 07, 2019 5:38 pm
Forum: Data Extraction and Web Screen Scraping
Topic: How to use TAG SELECTOR for extracting a table
Replies: 12
Views: 6871

Re: How to use TAG SELECTOR for extracting a table

... to EVENT statements, I had to do it though TAG XPATH= and that worked for me in such case. But ... usually some Containing 'DIV' where using 'EVAL()', you can always manage to "isolate" the ... than 100x Code Examples on how I do it..., 'split()' is my "magic_ueber_powerful" JS Command, ...