【问题标题】:Is there a way to download with python usging request, a csv that the url is like ‘Blob:https’有没有办法用 python 使用请求下载,一个 csv 的 url 就像'Blob:https'
【发布时间】:2020-10-09 02:09:02
【问题描述】:

我想使用 Python 机器人从 OpenTable 下载行业 CSV 状态,

但 CSV 的 URL 的格式为“Blob: https”,我无法使用请求库。

如何获取正确的 URL?或使用 python 和 blob URL 下载它?我可以使用 Selenium,但我更愿意使用请求库。

【问题讨论】:

    标签: python python-3.x selenium request bots


    【解决方案1】:

    要获取正确的 URL,请尝试制作像 mitmproxy https://mitmproxy.org 这样的代理 或者一些像 Burp Suit 这样的软件来拦截你作为客户端和网站服务器之间的流量,然后你会得到带有 HTTP 方法和 URL 的所有 HTTP 请求 和身体数据
    愿这将帮助您构建您的 BOT

    Intercepting HTTP Traffic with mitmproxy

    Intercepting HTTP Traffic With BurpSuit

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-13
      • 2016-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-29
      相关资源
      最近更新 更多