任何人都可以帮我用imacro脚本从文本框中的网页中提取网址
例如,我想从后续页面(源代码)
中提取此网址http://myhost.com/blogs/trackback?post_id=1
<div id="section-trackbacks" class="blog-section tab_container">
<h3 class="section-title"><span>Trackbacks</span></h3>
<div class="trackback-container">
<div class="entry-trackback" onclick="eblog.trackback.url.copy();">Trackback URL for this blog entry</div>
<div class="entry-trackback-input">
<input type="text" class="inputbox ffa fwb fsg" id="trackback-url" value="http://myhost.com/blogs/trackback?post_id=1" style="width: 90%;" onclick="eblog.trackback.url.copy();" />
</div>
答案 0 :(得分:1)
试试这个:
tag pos=1 type=input attr=class:inputbox<sp>ffa<sp>fwb<sp>fsg extract=htm
SET !VAR1 EVAL("var s=\"{{!EXTRACT}}\"; var index=s.indexOf(\"value=\");var index2=s.indexOf(\"style\");var r=s.substring(index+7,index2-2);r;")
prompt {{!var1}}