使用 C# 中的 asp.net 表单登录屏幕抓取网站?

发布于 2024-08-26 04:59:52 字数 170 浏览 1 评论 0原文

到目前为止,我已经在 asp.net 中创建了一个 Web 应用程序。我尝试从网站的安全页面获取一些数据(网站抓取)。我已使用 HttpWebRequest 类来实现此功能,但我尚未访问安全页面。每次登录页面都被抓取为不安全页面。我有网站用户 ID 和密码,但不知道网站是用哪种语言开发的。

请建议我该怎么办?

I've created a web application in asp.net so far. where i've tried to get some data(site scraping) from secure page of a web site.I've used the HttpWebRequest class for this functionality but i haven't accessed the secure page yet. Every time the login pages was scraped not secure page.I have the site user id and password and don't know that which language site has been developed in.

Please advice what should i do ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

〃安静 2024-09-02 04:59:52

查看登录表单。您应该能够将数据发布到该表单的目标,并提供正确的用户名和密码变量。然后您应该会收到初始登录页面。

Look at the login form. You should be able to POST data to the target of that form, supplying the correct variables for username and password. You should then receive the initial logged in page back.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文