| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 6196 人关注过本帖, 3 人收藏
标题:老师好,又来请教了,这个网页的采集入口如何找,谢谢
只看楼主 加入收藏
jinanshui
Rank: 2
等 级:论坛游民
帖 子:295
专家分:67
注 册:2009-10-6
结帖率:93.88%
收藏(1)
已结贴  问题点数:20 回复次数:56 
老师好,又来请教了,这个网页的采集入口如何找,谢谢
老师好,又来请教了,这个网页的数据采集入口如何找,谢谢,我用开发者工具找了很长时间,没找到
https://www.lottery.
图片附件: 游客没有浏览图片的权限,请 登录注册

搜索更多相关主题的帖子: 采集 老师 网页 https index 
2021-05-31 10:36
sdta
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:江苏省连云港市
等 级:版主
威 望:335
帖 子:9841
专家分:27213
注 册:2012-2-5
收藏
得分:0 
图片附件: 游客没有浏览图片的权限,请 登录注册

{"dataFrom":"","emptyFlag":false,"errorCode":"0","errorMessage":"处理成功","success":true,"value":{"dlt":{"drawPdfUrl":"https://pdf.,"isGetKjpdf":1,"lotteryDrawNum":"21060","lotteryDrawResult":"09 13 25 31 33 03 07","lotteryDrawTime":"2021-05-29 20:24:38","lotteryEquipmentCount":1,"lotteryGameName":"大乐透","lotteryGameNum":"85","lotterySaleBeginTime":"2021-05-26 20:10:00","lotterySaleEndtime":"2021-05-29 20:00:00","lotteryUnsortDrawresult":"09 33 31 25 13 07 03","poolBalanceAfterdraw":"509,405,220.73","ruleType":0,"termList":["21060","21059","21058","21057","21056","21055","21054","21053","21052","21051","21050","21049","21048","21047","21046","21045","21044","21043","21042","21041","21040","21039","21038","21037","21036","21035","21034","21033","21032","21031","21030","21029","21028","21027","21026","21025","21024","21023","21022","21021","21020","21019","21018","21017","21016","21015","21014","21013","21012","21011"]},"fj225":{},"fj317":{},"fj317fj":{},"fj367":{},"hlj61":{},"hn41":{},"js7":{},"pls":{},"plw":{},"qxc":{},"zj205":{},"zj61":{}}}

坚守VFP最后的阵地
2021-05-31 11:01
jinanshui
Rank: 2
等 级:论坛游民
帖 子:295
专家分:67
注 册:2009-10-6
收藏
得分:0 
回复 2楼 sdta
谢谢老师,学习了,正在探索如何采集各期的数据,请老师不吝赐教..
2021-05-31 15:31
sdta
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:江苏省连云港市
等 级:版主
威 望:335
帖 子:9841
专家分:27213
注 册:2012-2-5
收藏
得分:0 
先学基础,解析JSON数据

坚守VFP最后的阵地
2021-05-31 16:02
吹水佬
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:451
帖 子:10607
专家分:43186
注 册:2014-5-20
收藏
得分:0 
回复 3楼 jinanshui
是“历史开奖”
https://webapi.

[此贴子已经被作者于2021-5-31 16:51编辑过]

2021-05-31 16:44
吹水佬
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:451
帖 子:10607
专家分:43186
注 册:2014-5-20
收藏
得分:0 
通常这类数据相对较大,刷新一下 Network,再点击 Size 排一下就找到
2021-05-31 16:49
jinanshui
Rank: 2
等 级:论坛游民
帖 子:295
专家分:67
注 册:2009-10-6
收藏
得分:0 
以下是引用吹水佬在2021-5-31 16:49:15的发言:

通常这类数据相对较大,刷新一下 Network,再点击 Size 排一下就找到



老师,球号可以找到,但是这个期数这表达式怎么有错误?谢谢,不呈现
CREATE CURSOR 大乐透 (红1 C(2), 红2 C(2), 红3 C(2),红4 C(2),红5 C(2),兰1 C(2),兰2 C(2))
lcUrl = "https://webapi.
oHTTP=NEWOBJECT("MSXML2.XMLHTTP")
oHTTP.Open("GET", lcUrl, .F.)
oHTTP.SETREQUESTHEADER("Content-Type", "text/html;charset=UTF-8")
oHTTP.Send()
lcText = STRCONV(oHTTP.ResponseBody, 11)
lcText = STREXTRACT(lcText,'lotteryUnsortDrawresult":"','","matchList')
lyText = STREXTRACT(lcText,',"lotteryDrawNum":"','","lotteryDrawResult":"')
?? lcText ,lyText
2021-05-31 21:37
sdta
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:江苏省连云港市
等 级:版主
威 望:335
帖 子:9841
专家分:27213
注 册:2012-2-5
收藏
得分:0 
21061期
图片附件: 游客没有浏览图片的权限,请 登录注册

坚守VFP最后的阵地
2021-05-31 22:45
sdta
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:江苏省连云港市
等 级:版主
威 望:335
帖 子:9841
专家分:27213
注 册:2012-2-5
收藏
得分:0 
21061期开奖详细数据
drawFlowFund
"0"
drawFlowFundRj
""
estimateDrawTime
""
isGetKjpdf
1
isGetXlpdf
2
lotteryDrawNum
"21061"
lotteryDrawResult
"15 19 20 26 32 04 07"
lotteryDrawStatus
20
lotteryDrawTime
"2021-05-31"
lotteryEquipmentCount
2
lotteryGameName
"超级大乐透"
lotteryGameNum
"85"
lotteryGamePronum
0
lotteryPromotionFlag
0
lotterySaleBeginTime
"2021-05-29 20:10:00"
lotterySaleEndTimeUnix
0
lotterySaleEndtime
"2021-05-31 20:00:00"
lotterySuspendedFlag
0
lotteryUnsortDrawresult
"15+32+26+19+20 07+04"
matchList
[]
pdfType
1
poolBalanceAfterdraw
"502,877,803.60"
poolBalanceAfterdrawRj
""
prizeLevelList

awardType
0
group
"101"
lotteryCondition
""
prizeLevel
"一等奖"
sort
101
stakeAmount
"6484687"
stakeCount
"7"
totalPrizeamount
"45392809"
awardType
0
group
"201"
lotteryCondition
""
prizeLevel
"一等奖(追加)"
sort
201
stakeAmount
"5187749"
stakeCount
"3"
totalPrizeamount
"15563247"
awardType
0
group
"301"
lotteryCondition
""
prizeLevel
"二等奖"
sort
301
stakeAmount
"115599"
stakeCount
"100"
totalPrizeamount
"11559900"
awardType
0
group
"401"
lotteryCondition
""
prizeLevel
"二等奖(追加)"
sort
401
stakeAmount
"92479"
stakeCount
"41"
totalPrizeamount
"3791639"
awardType
0
group
"501"
lotteryCondition
""
prizeLevel
"三等奖"
sort
501
stakeAmount
"10000"
stakeCount
"230"
totalPrizeamount
"2300000"
awardType
0
group
"601"
lotteryCondition
""
prizeLevel
"四等奖"
sort
601
stakeAmount
"3000"
stakeCount
"1,032"
totalPrizeamount
"3096000"
awardType
0
group
"701"
lotteryCondition
""
prizeLevel
"五等奖"
sort
701
stakeAmount
"300"
stakeCount
"18,516"
totalPrizeamount
"5554800"
awardType
0
group
"801"
lotteryCondition
""
prizeLevel
"六等奖"
sort
801
stakeAmount
"200"
stakeCount
"32,712"
totalPrizeamount
"6542400"
awardType
0
group
"901"
lotteryCondition
""
prizeLevel
"七等奖"
sort
901
stakeAmount
"100"
stakeCount
"33,028"
totalPrizeamount
"3302800"
awardType
0
group
"1001"
lotteryCondition
""
prizeLevel
"八等奖"
sort
1001
stakeAmount
"15"
stakeCount
"909,788"
totalPrizeamount
"13646820"
awardType
0
group
"1101"
lotteryCondition
""
prizeLevel
"九等奖"
sort
1101
stakeAmount
"5"
stakeCount
"8,985,884"
totalPrizeamount
"44929420"

prizeLevelListRj
[]
ruleType
0
termList
[]
totalSaleAmount
"304,392,970"
totalSaleAmountRj
""
verify
1
vtoolsConfig

坚守VFP最后的阵地
2021-05-31 23:04
sdta
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:江苏省连云港市
等 级:版主
威 望:335
帖 子:9841
专家分:27213
注 册:2012-2-5
收藏
得分:5 
以下是引用jinanshui在2021-5-31 21:37:48的发言:




老师,球号可以找到,但是这个期数这表达式怎么有错误?谢谢,不呈现
CREATE CURSOR 大乐透 (红1 C(2), 红2 C(2), 红3 C(2),红4 C(2),红5 C(2),兰1 C(2),兰2 C(2))
lcUrl = "https://webapi.
oHTTP=NEWOBJECT("MSXML2.XMLHTTP")
oHTTP.Open("GET", lcUrl, .F.)
oHTTP.SETREQUESTHEADER("Content-Type", "text/html;charset=UTF-8")
oHTTP.Send()
lcText = STRCONV(oHTTP.ResponseBody, 11)
lcText = STREXTRACT(lcText,'lotteryUnsortDrawresult":"','","matchList')
lyText = STREXTRACT(lcText,',"lotteryDrawNum":"','","lotteryDrawResult":"')
?? lcText ,lyText


顺序调整下即可
lyText = STREXTRACT(lcText,',"lotteryDrawNum":"','","lotteryDrawResult":"')
lcText = STREXTRACT(lcText,'lotteryUnsortDrawresult":"','","matchList')
?? lcText ,lyText

坚守VFP最后的阵地
2021-05-31 23:26
快速回复:老师好,又来请教了,这个网页的采集入口如何找,谢谢
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.026668 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved