只需一步,快速开始
分布式系统框架(V2.0) 轻松承载百亿数据,千万流量!讨论专区 - 源码下载 - 官方教程
HttpHelper爬虫框架(V2.7-含.netcore) HttpHelper官方出品,爬虫框架讨论区 - 源码下载 - 在线测试和代码生成
HttpHelper爬虫类(V2.0) 开源的爬虫类,支持多种模式和属性 源码 - 代码生成器 - 讨论区 - 教程- 例子
使用道具 举报
clrscr 发表于 2019-5-16 01:03 把原网址发出来,好帮你测
HttpHelper http = new HttpHelper(); HttpItem item = new HttpItem() { URL = "https://weixin.sogou.com/weixin?type=2&s_from=input&query=c%23&ie=utf8&_sug_=n&_sug_type_=", Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3", KeepAlive = true, }; HttpResult request = http.GetHtml(item); string html = request.Html;
clrscr 发表于 2019-5-25 21:38 获取到的HTML可以搜索到网页的内容,
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|手机版|联系我们|关于我们|广告合作|苏飞论坛 ( 豫ICP备18043678号-2)
GMT+8, 2025-3-12 19:24
© 2014-2021