javascript - 这个 HTML method = "POST" 标签是如何工作的?
问题描述
我最近开始了一个项目,该项目打算从某个站点下载一些数据。不幸的是,当我想用 r.text 下载 html 时,我得到了这段代码,而不是我期望的代码:
<html>
<head>
<title>Working...</title>
</head>
<body>
<form method="POST" name="hiddenform" action="some link"><input type="hidden" name="wa" value="wsignin1.0" /><input type="hidden" name="wresult" value="some links tokens and certificates" /><input type="hidden" name="wctx" value="some link" /><noscript><p>Script is disabled. Click Submit to continue.</p><input type="submit" value="Submit" /></noscript></form>
<script language="javascript">
window.setTimeout('document.forms[0].submit()', 0);
</script>
</body>
</html>
当我在 webbrowser 中打开这个 html 代码时,它会将我重定向到某个站点。
我可以使用可以像这样工作的python请求模块发送请求吗?
如果我解释得不够充分,我会很感激在评论中写出来。
解决方案
推荐阅读
- javascript - 如何在 React Navigation 中重用易于阅读和维护的屏幕?
- powershell - 需要对事件日志中的特定 USB 密钥进行 XPath 过滤
- r - 循环不适用于R中的字符列
- python - 如何在张量流中进行“四舍五入”
- android-studio - 进程'command'/Users/username/flutter/bin/flutter''以非零退出值完成 1 android studio
- verilog - 如何在 Verilog 中构建 5 位最大长度的 Galois LFSR?
- c - 如何使用 Linux 内核模块获取当前 CPU 使用率?
- ios - 如何为 LazyVGrid 实现多个单元格选择?
- inheritance - 继承从选股到联系人模型的搜索视图过滤器 - Odoo v13社区
- docker - 无法从 docker hub 拉出 graphdb-workbench