Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用 php 从附属网站上抓取统计信息。我对 php 很陌生,但我知道如何从网站上抓取数据,但是附属网站需要你先登录。
如何填写用户名和密码字段并使用 php 按登录按钮?甚至可以用 php 做到这一点,还是我需要另一种编程语言?
您必须使用 Google Chrome 中的开发者工具或 Firefox 中的 Firebug 来分析整个登录过程,以查看发布了哪些字段(表单数据)。
之后,您需要根据您的研究开发一个 cURL 脚本。