是否有一个很好的教程可以帮助您了解网站正在做什么,以便您的程序可以做同样的事情?
对于需要以编程方式与动态网站交互的人来说,是否有好的指南或教程?最近出现了大量与此相关的 Perl 问题,但我还没有找到一个好的资源来指导人们。我问这个问题并不是因为我需要一个,而是因为如果它已经存在,我不想浪费时间编写它。虽然我对 Perl 最感兴趣,但额外的工具和技术大多是相同的。
通常,我会在人们的问题中看到这些问题:
- 处理、设置和保存 cookie
- 查找表单并与之交互
- 在用户代理中处理 JavaScript
- 尤其是
onLoad
、onSumbit
和 Ajax
- 尤其是
- 使用 HTTP 嗅探器工具
- 在交互式浏览器中使用 Web 开发人员插件
- 与 DOM 交互、屏幕抓取等
。很好的教程,我会将其添加到我的要做的事情列表中(除非其他人想做)。一路上,如果您对现有教程没有建议,请建议您认为新教程中应该包含的内容,包括链接、您最喜欢的工具以及您自己的用户代理开发经验。我不关心你使用的特定语言。
Is there a good guide or tutorial for people who need to programmatically interact with dynamic websites? There's been a rash of Perl questions about that lately, and I haven't found a good resource to point people toward. I'm asking not because I need one but because I don't want to waste my time writing it if it already exists. Although I'm most interested in Perl, the extra tools and techniques are mostly the same.
Typically, I see see these problems in people's questions:
- Handling, setting, and saving cookies
- Finding and interacting with forms
- Handling JavaScript inside your user-agent
- especially things like
onLoad
,onSumbit
, and Ajax
- especially things like
- Using HTTP sniffer tools
- Using Web developer plugins in interactive browsers
- Interacting with DOM, screen scraping, etc.
If there's no good tutorial, I'll add it to my list of things to do (unless someone else wants to do it). Along the way, if you don't have a suggestion for an existing tutorial, please suggest the things that you think should be in a new one, including links, your favorite tools, and your own user-agent development experiences. I don't care about the particular language you use.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我见过的最好的是 Defcon 演示视频。
The best I've seen is a Defcon presentation video.
查看 perl 库的库。应该制作一些 html 解析库来与动态网站对话。
喜欢:
http://metacpan.org/pod/HTML::DOM
但是你想吗使用 Perl 增强的网络浏览器。或者 Perl 独立应用程序?
Look at perl library of libraries. Some html parsing libraries should be made for talking to dynamic websites.
Like:
http://metacpan.org/pod/HTML::DOM
But do you want to use web-browser enhanced by perl. Or perl stand alone app?