免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2734 | 回复: 5
打印 上一主题 下一主题

perl lwp模块抓取网页 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-21 15:44 |只看该作者 |倒序浏览
http://www.molecular-networks.com/online_demos/corina_demo.html
这个网址是提交小分子的化学式(N[C@@H](C)C(=O)O)后能生成 3D 结构,因需要生成很多的小分子3D结构,想写程序生成,望高手指点!

提交后会跳转到页面

http://www.molecular-networks.co ... esultname=L-alanine

然后到页面

http://www.molecular-networks.com/tmp/corina000AnNYWn.html


我只需要 Download 3D structure as PDB file 的链接就ok了


不知道这个perl能抓取到吗?

论坛徽章:
0
2 [报告]
发表于 2009-05-21 16:06 |只看该作者
这个重点在第一步

如何用程序进行提交验证 this is the key!

论坛徽章:
0
3 [报告]
发表于 2009-05-22 01:19 |只看该作者
原帖由 changejun 于 2009-5-21 16:06 发表
这个重点在第一步

如何用程序进行提交验证 this is the key!


就别管他是XXXXX步,抓数据报,看提交了啥东西,懒一点儿,直接socket连接。

论坛徽章:
0
4 [报告]
发表于 2009-05-22 10:06 |只看该作者

回复 #3 xti9er 的帖子

可否具体点?

论坛徽章:
0
5 [报告]
发表于 2009-05-22 12:02 |只看该作者
firefox live http headers

论坛徽章:
0
6 [报告]
发表于 2009-05-22 13:18 |只看该作者

回复 #5 churchmice 的帖子

没什么利用价值
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
http://www.molecular-networks.com/cgi-bin/corina/gen3dmolnet.tcl

POST /cgi-bin/corina/gen3dmolnet.tcl HTTP/1.1
Host: www.molecular-networks.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us
Accept-Encoding: gzip,deflate
Accept-Charset: gb2312,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.molecular-networks.com/online_demos/corina_demo.html
Content-Type: application/x-www-form-urlencoded
Content-Length: 62
smiles=N%5BC%40%40H%5D%28C%29C%28%3DO%29O&resultname=L-alanine
HTTP/1.x 302 Moved Temporarily
Date: Fri, 22 May 2009 05:16:04 GMT
Server: Apache/2.2.4 (Linux/SUSE)
Pragma: no-cache
Location: http://www.molecular-networks.com/tmp/corina000EOVy6Z.html
Content-Length: 0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
----------------------------------------------------------
http://www.molecular-networks.com/tmp/corina000EOVy6Z.html

GET /tmp/corina000EOVy6Z.html HTTP/1.1
Host: www.molecular-networks.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us
Accept-Encoding: gzip,deflate
Accept-Charset: gb2312,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.molecular-networks.com/online_demos/corina_demo.html

HTTP/1.x 200 OK
Date: Fri, 22 May 2009 05:16:05 GMT
Server: Apache/2.2.4 (Linux/SUSE)
X-Powered-By: PHP/5.2.9
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
----------------------------------------------------------

这个页面不能访问的 http://www.molecular-networks.com/cgi-bin/corina/gen3dmolnet.tcl
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP