http://www.sufeinet.com/plugin.php?id=keke_group

苏飞论坛

 找回密码
 马上注册

QQ登录

只需一步,快速开始

分布式系统框架(V2.0) 轻松承载百亿数据,千万流量!讨论专区 - 源码下载 - 官方教程

HttpHelper爬虫框架(V2.7-含.netcore) HttpHelper官方出品,爬虫框架讨论区 - 源码下载 - 在线测试和代码生成

HttpHelper爬虫类(V2.0) 开源的爬虫类,支持多种模式和属性 源码 - 代码生成器 - 讨论区 - 教程- 例子

查看: 4182|回复: 6

[咨询站长] 苏飞哥,我昨天买了会员,要你帮个忙

[复制链接]
发表于 2019-3-6 13:25:13 | 显示全部楼层 |阅读模式
本帖最后由 chelam 于 2019-3-6 13:28 编辑


    • Request URL:
      https://cn.investing.com/instruments/HistoricalDataAjax
    • Request Method:
      POST
    • Status Code:
      200 OK
    • Remote Address:
      58.68.229.173:443
    • Referrer Policy:
      no-referrer-when-downgrade

  • Response Headersview parsed
    • HTTP/1.1 200 OKServer: nginx/1.14.0Date: Tue, 05 Mar 2019 22:00:44 GMTContent-Type: text/html; charset=UTF-8Content-Length: 2067Connection: keep-aliveX-Powered-By: PHP/7.1.8Set-Cookie: ses_id=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; domain=cn.investing.comExpires: Thu, 19 Nov 1981 08:52:00 GMTCache-Control: no-store, no-cache, must-revalidatePragma: no-cacheVary: Accept-Encoding,User-AgentContent-Encoding: gzipAccept-Ranges: bytesX-Varnish: 2132773513Age: 0Via: 1.1 varnishContent-Security-Policy: upgrade-insecure-requests; block-all-mixed-content
  • Request Headersview parsed
    • POST /instruments/HistoricalDataAjax HTTP/1.1Host: cn.investing.comConnection: keep-aliveContent-Length: 190Accept: text/plain, */*; q=0.01Origin: https://cn.investing.comX-Requested-With: XMLHttpRequestUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36Content-Type: application/x-www-form-urlencodedReferer: https://cn.investing.com/equitie ... ataAccept-Encoding: gzip, deflate, brAccept-Language: zh-CN,zh;q=0.9Cookie: PHPSESSID=2qo7vvc5n23d8v0o9eu3c3qjvj; SideBlockUser=a%3A2%3A%7Bs%3A10%3A%22stack_size%22%3Ba%3A1%3A%7Bs%3A11%3A%22last_quotes%22%3Bi%3A8%3B%7Ds%3A6%3A%22stacks%22%3Ba%3A1%3A%7Bs%3A11%3A%22last_quotes%22%3Ba%3A1%3A%7Bi%3A0%3Ba%3A3%3A%7Bs%3A7%3A%22pair_ID%22%3Bs%3A5%3A%2224698%22%3Bs%3A10%3A%22pair_title%22%3Bs%3A0%3A%22%22%3Bs%3A9%3A%22pair_link%22%3Bs%3A20%3A%22%2Fequities%2Fair-canada%22%3B%7D%7D%7D%7D; geoC=CN; adBlockerNewUserDomains=1551823209; StickySession=id.12798334160.707cn.investing.com; _ga=GA1.2.2024766661.1551823218; _gid=GA1.2.841496107.1551823218; _gat=1; _gat_allSitesTracker=1; Hm_lvt_a1e3d50107c2a0e021d734fe76f85914=1551823218; __gads=ID=f46149f8a3cffd5a:T=1551823219:S=ALNI_MZbklvZdwl0YmGKxZVXurKoSH_bFQ; __qca=P0-82017016-1551823218759; billboardCounter_6=0; __atuvc=3%7C10; __atuvs=5c7ef171c8c1327c002; Hm_lpvt_a1e3d50107c2a0e021d734fe76f85914=1551823234; nyxDorf=ZGAzZDZ%2BYz00YGhkYC0xMmIyZDsyKzo5Njc0Mg%3D%3D
  • Form Dataview parsed
    • curr_id=24698&smlID=1169236&header=AC%E5%8E%86%E5%8F%B2%E6%95%B0%E6%8D%AE&st_date=2019%2F02%2F03&end_date=2019%2F03%2F05&interval_sec=Daily&sort_col=date&sort_ord=DESC&action=historical_data
苏菲.png


1. 开通SVIP会员,免费下载本站所有源码,不限次数据,不限时间
2. 加官方QQ群,加官方微信群获取更多资源和帮助
3. 找站长苏飞做网站、商城、CRM、小程序、App、爬虫相关、项目外包等点这里
 楼主| 发表于 2019-3-6 13:25:41 | 显示全部楼层
获取不了数据,问题是哪里出错了?
 楼主| 发表于 2019-3-6 13:28:36 | 显示全部楼层
Request URL: https://cn.investing.com/instruments/HistoricalDataAjax
Request Method: POST
Status Code: 200 OK
Remote Address: 58.68.229.173:443
Referrer Policy: no-referrer-when-downgrade
HTTP/1.1 200 OK
Server: nginx/1.14.0
Date: Tue, 05 Mar 2019 22:00:44 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 2067
Connection: keep-alive
X-Powered-By: PHP/7.1.8
Set-Cookie: ses_id=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; domain=cn.investing.com
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Accept-Ranges: bytes
X-Varnish: 2132773513
Age: 0
Via: 1.1 varnish
Content-Security-Policy: upgrade-insecure-requests; block-all-mixed-content
POST /instruments/HistoricalDataAjax HTTP/1.1
Host: cn.investing.com
Connection: keep-alive
Content-Length: 190
Accept: text/plain, */*; q=0.01
Origin: https://cn.investing.com
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: https://cn.investing.com/equities/air-canada-historical-data
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cookie: PHPSESSID=2qo7vvc5n23d8v0o9eu3c3qjvj; SideBlockUser=a%3A2%3A%7Bs%3A10%3A%22stack_size%22%3Ba%3A1%3A%7Bs%3A11%3A%22last_quotes%22%3Bi%3A8%3B%7Ds%3A6%3A%22stacks%22%3Ba%3A1%3A%7Bs%3A11%3A%22last_quotes%22%3Ba%3A1%3A%7Bi%3A0%3Ba%3A3%3A%7Bs%3A7%3A%22pair_ID%22%3Bs%3A5%3A%2224698%22%3Bs%3A10%3A%22pair_title%22%3Bs%3A0%3A%22%22%3Bs%3A9%3A%22pair_link%22%3Bs%3A20%3A%22%2Fequities%2Fair-canada%22%3B%7D%7D%7D%7D; geoC=CN; adBlockerNewUserDomains=1551823209; StickySession=id.12798334160.707cn.investing.com; _ga=GA1.2.2024766661.1551823218; _gid=GA1.2.841496107.1551823218; _gat=1; _gat_allSitesTracker=1; Hm_lvt_a1e3d50107c2a0e021d734fe76f85914=1551823218; __gads=ID=f46149f8a3cffd5a:T=1551823219:S=ALNI_MZbklvZdwl0YmGKxZVXurKoSH_bFQ; __qca=P0-82017016-1551823218759; billboardCounter_6=0; __atuvc=3%7C10; __atuvs=5c7ef171c8c1327c002; Hm_lpvt_a1e3d50107c2a0e021d734fe76f85914=1551823234; nyxDorf=ZGAzZDZ%2BYz00YGhkYC0xMmIyZDsyKzo5Njc0Mg%3D%3D
curr_id=24698&smlID=1169236&header=AC%E5%8E%86%E5%8F%B2%E6%95%B0%E6%8D%AE&st_date=2019%2F02%2F03&end_date=2019%2F03%2F05&interval_sec=Daily&sort_col=date&sort_ord=DESC&action=historical_data
发表于 2019-3-6 14:05:41 | 显示全部楼层
代码怎么写的,参数没有加全吧,把抓包里面的代码全部写出来
 楼主| 发表于 2019-3-6 14:18:44 | 显示全部楼层
sufei 发表于 2019-3-6 14:05
代码怎么写的,参数没有加全吧,把抓包里面的代码全部写出来

帮我用论坛的代码生成器 生成一下代码,我给你100元,可以吗?
 楼主| 发表于 2019-3-6 14:28:54 | 显示全部楼层
chelam 发表于 2019-3-6 14:18
帮我用论坛的代码生成器 生成一下代码,我给你100元,可以吗?

已经解决了,谢谢
发表于 2019-3-6 17:21:23 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 马上注册

本版积分规则

QQ|手机版|小黑屋|手机版|联系我们|关于我们|广告合作|苏飞论坛 ( 豫ICP备18043678号-2)

GMT+8, 2024-3-28 16:13

© 2014-2021

快速回复 返回顶部 返回列表