简体   繁体   English

如何制作表单填充谷歌浏览器扩展

[英]How to make a form-filling google chrome extension

I was wondering if anyone could provide me with some links to some tutorials or explain (with some example code), how I would go about making a simple google chrome extension (or in any programming language or browser if that is impossible), how I would make an extension that can visit a specific site, fill a login form on that site, click some links and then do the same sort of thing on the linked to site.我想知道是否有人可以为我提供一些教程的链接或解释(带有一些示例代码),我将如何制作一个简单的 google chrome 扩展程序(或任何编程语言或浏览器,如果这是不可能的),我如何将制作一个可以访问特定站点的扩展程序,在该站点上填写登录表单,单击一些链接,然后在链接到的站点上执行相同的操作。

Thanks谢谢

Personally, I would not use a chrome extension, but maybe a perl script.就个人而言,我不会使用 chrome 扩展,但可能会使用 perl 脚本。 There is an extension called WWW::Mechanize that is designed exactly to do this kind of stuff.有一个名为WWW::Mechanize的扩展,专门设计用于执行此类操作。

You can find plenty of tutorials and examples, just google it.您可以找到大量教程和示例,只需 google 即可。


Edit in 2021 : the above recommendation has become a bit outdated since 2013. For a more up-to-date take, I'd still recommend a scriptable headless browser instead of an extension for most automation tasks, but probably not WWW:Mechanize. 2021 年编辑:自 2013 年以来,上述建议已经有点过时了。为了获得更新,我仍然建议使用可编写脚本的无头浏览器而不是大多数自动化任务的扩展程序,但可能不是 WWW:Mechanize。 There are good lists of options, such as this one .有很好的选项列表,例如这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM