VERSION BUILD=8970419 RECORDER=FX
TAB T=1
TAG POS={{!LOOP}} TYPE=DIV ATTR=CLASS:Details__title___2IOjv<SP>Video__title___2-YXN EXTRACT =TXT
TAG POS={{!LOOP}} TYPE=DIV ATTR=CLASS:Details__title___2IOjv<SP>Video__title___2-YXN EXTRACT =HREF
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\ajonksb\Documents\iMacros\Datasources FILE=TESTING.csv
l get error, the output :
Col 1 => Ice bucket challenge my dog FUNNY ! Col 2 => #EANF#
can someone tell me how to get link videos... how to solve this error, thanks
you can post the url EXTRACT needed
Related
I'm entirely new to iMacros, and I'm trying to get iMacros to extract the email address that appears when you click "reply" on ads like these. (Link is "dead"...)
The only thing I have is:
VERSION BUILD=10021450
URL GOTO=https://losangeles.craigslist.org/sfv/res/d/need-extra-money/7027377618.html
TAG POS=1 TYPE=BUTTON ATTR=TXT:reply
I have tried simply using wildcards, which doesn't work.
I found the answer somehow:
TAG POS=1 TYPE=INPUT ATTR=CLASS:anonemail EXTRACT=TXT
i'm new here and newbie in imacros and javascript
I have made a script that will extract a random word from a page with a regex syntax.
The script is working fine, is going to page.. is search for the word and if is there will extract the word.
But i need that the script is to refresh the page until the word is found and after that to run the second imacro script
VERSION BUILD=8961227 RECORDER=FX
SET !TIMEOUT 1
SET !ERRORIGNORE YES
TAB T=1
URL GOTO=url
SEARCH SOURCE=REGEXP:"raspuns":\[\"(.[^"]*)" EXTRACT=$1
SET !VAR1 {{!EXTRACT}}
and if the word is found run the second script (if not refesh)
TAB T=2
URL GOTO=url
TAG POS=1 TYPE=TEXTAREA ATTR=AUTOCOMPLETE:off CONTENT={{!EXTRACT}}
TAG POS=1 TYPE=BUTTON ATTR=CLICK:sendMessage()&&CLASS:go&&TXT:
anyone can help me with this?
Not super sure if I know exactly what you want and as it is imacros there are some weird workarounds but this might help you
VERSION BUILD=8961227 RECORDER=FX
SET !TIMEOUT 1
SET !ERRORIGNORE YES
TAB T=1
URL GOTO=url
SEARCH SOURCE=REGEXP:"raspuns":\[\"(.[^"]*)" EXTRACT=$1
SET !VAR0 raspuns
SET !VAR1 {{!EXTRACT}}
SET !EXTRACT NULL
SET !VAR2 EVAL("('{{!VAR0}}' == '{{!VAR1}}') ? 1 : 0;")
TAB T=2
URL GOTO=url
TAG POS={{!VAR2}} TYPE=TEXTAREA ATTR=AUTOCOMPLETE:off CONTENT={{!EXTRACT}}
TAG POS={{!VAR2}} TYPE=BUTTON ATTR=CLICK:sendMessage()&&CLASS:go&&TXT:
As you didnt give a url its very hard for me to test, but point is, if if takes the word youre looking for, raspun, it will set the TAG position to 1, therefore tagging what you need, but if it doesnt, it will set the TAG pos = 0, therefore just passing through the code, hope that helps
I'm trying to use imacros on this site: http://www.philsp.com/homeville/FMI/t/t363.htm#A7331 to find the covers and publication info for short stories I have in my collection. I have my code working OK except for extracting the publication info at the top of the cells.
In this example my code has searched and found: "Simple Gifts" by "Maya Kaathryn Bohnhoff", and saved the cover. I now want it to go to the top of the cell and save the publication info, which in this example is: "Analog Science Fiction and Fact [v130 # 1 & 2, January/February 2010]"
Whatever I try jumps to the top of the top cell on the page. Can anyone help me out with this.
Thanks.
VERSION BUILD=8031994
TAB T=1
SET !ERRORIGNORE YES
URL GOTO=http://www.philsp.com/homeville/FMI/t/t363.htm#A7331
TAG POS=1 TYPE=LI ATTR=TXT:*Simple<SP>Gifts*
ONDOWNLOAD FOLDER=C:\Covers FILE=cover.jpg WAIT=YES
TAG POS=R1 TYPE=A ATTR=HREF:*http://www.philsp.com/data/images*.jpg CONTENT=EVENT:SAVETARGETAS
EDIT:
This seems to work as the popup shows the correct text to extract but the saveas still saves the text from the very top of the page. I dont understand why, any ideas?
URL GOTO=http://www.philsp.com/homeville/FMI/t/t363.htm
SET title *Simple<SP>Gifts*
TAG POS=1 TYPE=UL ATTR=TXT:{{title}} EXTRACT=TXT SEARCH SOURCE=REGEXP:"<a.+><i>(.+)\].+" EXTRACT="$1"
SET !EXTRACT_TEST_POPUP YES
SAVEAS TYPE=EXTRACT FOLDER=C:\imacros FILE=results.csv
Perhaps, the following code would be helpful:
SET title *Simple<SP>Gifts*
SET !EXTRACT_TEST_POPUP NO
TAG POS=1 TYPE=UL ATTR=TXT:{{title}} EXTRACT=TXT
SET info EVAL("var s = \"{{!EXTRACT}}\".match(/\\n(.*)\\n/)[1]; s;")
Im getting the following error with imacros
URL GOTO=http://www.tblog.com/blog_admin/addpost.php?view=full
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:post_form ATTR=NAME:ititle CONTENT={{!VAR1}}
TAG POS=1 TYPE=IMG ATTR=ID:mce_editor_0_code
TAB T=2
FRAME F=0
TAG POS=1 TYPE=TEXTAREA FORM=NAME:source ATTR=ID:htmlSource CONTENT={{!VAR8}}
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:source ATTR=ID:insert
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:post_form ATTR=NAME:publish&&VALUE:Publish<SP>This<SP>Post!
TypeError: can't access dead object, line: 9 (Error code: -1001)
If somebody can help here are some logging details
account:lugartecnologico52
paswword:1234
The site is tblog.com
We need to open a blank tab to address this error.
steps to follow
Open a tab
Add these commands
Tab T=2
Tab T=1
Run the macro
Let me know in case of any queries
This line was working before but now it doesn't extract the text, I guess this is happening because it is clicking inside the box. This only happen when I use Firefox, using Internet Explorer is ok.
VERSION BUILD=8021970
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://www.fakemailgenerator.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:emailForm ATTR=ID:fName&&VALUE:* EXTRACT=TXT
it looks like the value you need is disappear when imacros tries to scrape it, but you can use this code to get email:
URL GOTO=http://www.fakemailgenerator.com/
TAG POS=1 TYPE=span attr=id:cxtEmail EXTRACT=TXT
or you can scrape htm of your tag and parse it to get value attribute