提取TITLE的一部分并在URL中打开? [英] Extract a part of a TITLE and open it in a url?

查看:62
本文介绍了提取TITLE的一部分并在URL中打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iMacros.

I'm using iMacros.

检查元素向我展示:

<a class="avatar " title="designperks's Instagram Profile" alt="designperks's Instagram Profile" href="/app/users/ig-1451494389/designperks/photos"

我想做的是提取TITLE中的内容,直到撇号为止,然后在instagram.com中打开它,在本示例中,这是我想出的designperks:

What I want to do is extract what's in TITLE until the apostrophe and open it in instagram.com, in this example it's designperks here is what I came up with:

SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_STEP 2
TAB T=1
TAG POS={{!LOOP}} TYPE=A ATTR=TITLE:* EXTRACT=TITLE
SET !VAR1 EVAL("var s=\"{{!EXTRACT}}\"; s.split(\"'\",\"\"); ")
SET !EXTRACT NULL
SET !EXTRACT {{!VAR1}}
TAB OPEN
TAB T=2
URL GOTO=http://instagram.com/{{!VAR1}}

我快完成了,但是我知道这里有一个错误(\"'\",\"\"); "),我无法弄清楚.

I'm almost done, but I know that there is a mistake here (\"'\",\"\"); ") and I can't figure it out.

非常感谢!

推荐答案

我怎么总是在HREF中提取第四个元素?

How could I always extract the 4th element in HREF?

HREF:/app/users/*/*/photos

这篇关于提取TITLE的一部分并在URL中打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆