Board logo

标题: [网络连接] 批处理如何实现提取Longman朗文/朗曼在线词典网站的单词查询结果 [打印本页]

作者: shuijingmu    时间: 2014-4-4 10:56     标题: 批处理如何实现提取Longman朗文/朗曼在线词典网站的单词查询结果

本帖最后由 pcl_test 于 2016-9-29 12:12 编辑

想请教下论坛里面的朋友,自动打开网页,输入文本,自动查寻,并将网页想要的文本输出到批处理文件显示该如何写,是不是还要涉及到网页设计的东西?
比方说,我想打开http://www.ldoceonline.com/朗曼在线词典
输入一个单词如encryption,点搜索
我只想看到搜索中
en‧crypt [transitive]
to protect information by putting it into a special         code that only some people can read, especially information that is on a computer [↪ decrypt]
—encryption         noun [uncountable]
secure encryption of data
—encrypted         adjective:
files stored in encrypted form
的内容。

这个只需要在批处理中输入相应的单词即可,输出的东西也显示在批处理文件的窗口中。

想问下这个不仅要涉及批处理文件,还是要懂网页中的源代码,是不是?
作者: DAIC    时间: 2014-4-4 11:02

http://bbs.bathome.net/viewthread.php?tid=13394#pid87091
作者: shuijingmu    时间: 2014-4-4 11:06

原来已经有人写过了,好的,谢谢楼上的。
作者: shuijingmu    时间: 2014-4-4 11:14

他那个我看了下,没有涉及到通过网页查询功能。
而且不同的网页,应该不同。




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2