iMacros - 提取 TD 标签内的部分文本
请访问链接 http://www.networksolutions.com/whois-search/reedandthomas。 com
我只想提取文本的以下部分:
Administrative Contact:
Chilcoat, Dan [email protected]
Reed & Thomas Electrical Contractors, Inc
621 Hanover Pike
Hampstead, Maryland 21074
United States
(410) 239-9680
Technical Contact:
Chilcoat, Dan [email protected]
Reed & Thomas Electrical Contractors, Inc
621 Hanover Pike
Hampstead, Maryland 21074
United States
(410) 239-9680
并将其保存在 Excel 工作表中,每列中包含管理联系人和技术联系人详细信息。
我之前曾在 iMacros 上工作过,但我知道如何提取。 另一个项目,
URL GOTO=http://www.yellowbook.com/yellow-pages/?what={{!COL2}}&where={{!COL1}}
TAG POS=6 TYPE=STRONG ATTR=TXT:* EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=d:\ FILE=results.txt
对于我用于从 Yellowbook.com 提取特定数据的
此 whois 提取对我来说有点具有挑战性,因为它不是我想要的整个 TD 内容,而是 TD 内容的一部分(仅管理联系人和技术联系人详细信息)。我正在使用 Firefox 的 iMacros 浏览器插件。我还拥有 iMacros 浏览器的许可副本,以防您的解决方案需要我使用它。
有什么帮助吗?
Please go to the link http://www.networksolutions.com/whois-search/reedandthomas.com
I want to extract only the below part of the text:
Administrative Contact:
Chilcoat, Dan [email protected]
Reed & Thomas Electrical Contractors, Inc
621 Hanover Pike
Hampstead, Maryland 21074
United States
(410) 239-9680
Technical Contact:
Chilcoat, Dan [email protected]
Reed & Thomas Electrical Contractors, Inc
621 Hanover Pike
Hampstead, Maryland 21074
United States
(410) 239-9680
and save it in an excel sheet with the Administrative Contact and Technical Contact details in each column.
I have worked on iMacros earlier and I know how to extract though. For another project I used
URL GOTO=http://www.yellowbook.com/yellow-pages/?what={{!COL2}}&where={{!COL1}}
TAG POS=6 TYPE=STRONG ATTR=TXT:* EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=d:\ FILE=results.txt
for extracting particular data from yellowbook.com
This whois extraction is a bit challenging for me because it is not the whole TD content I am after but a part of the TD content (only Administrative Contact and Technical Contact details). I am using iMacros browser addon for firefox. I also own a licensed copy of the iMacros browser in case your solution wants me to use it.
Any help, please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然,如果您有 iMacros 脚本接口,您可以在保存之前使用任何脚本语言来操作提取。
然而,最近在 Firefox 的 iMacros 和 iMacros 浏览器(以及 IE 插件)中引入了一项新功能,它允许人们使用 javascript 的 eval 直接在 iMacros 代码中操作提取的字符串。
我建议您查看 http://wiki.imacros.net/EVAL 了解详细信息。
Of course, you can use any scripting language to manipulate the extraction before saving it, if you have iMacros Scripting Interface.
However, recently a new feature has been introduced in both iMacros for Firefox and iMacros Browser (and the IE plugin) which allows one to manipulate the extracted string right in iMacros code, using javascript's eval.
I suggest you to have a look at http://wiki.imacros.net/EVAL for the details.