【问题标题】:How to run actions in a fake-browser on the server side?如何在服务器端的假浏览器中运行操作?
【发布时间】:2014-09-25 01:09:49
【问题描述】:

我需要模拟一个用户会话(登录、点击、点击、输入数据),然后在服务器端下载一个 html 页面。

如果有的话,我有哪些选择?

Python-requests 是我的第一个想法,但它无法运行 javascript——这就是为什么我需要在服务器端模拟一个假的 google-chrome/firefox 会话。

【问题讨论】:

    标签: javascript html browser automation


    【解决方案1】:

    如果您不介意使用 C# 工作,WatiN (http://watin.org/) 听起来就是您正在寻找的工具类型。我用它来登录网站、导航等。

    你可以参考这个 StackOverflow 来下载 HTML 源代码: How to get complete html content using WatiN properties

    【讨论】:

      猜你喜欢
      • 2011-10-15
      • 1970-01-01
      • 2019-02-22
      • 1970-01-01
      • 1970-01-01
      • 2020-08-09
      • 2012-01-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多