批量转存百度网盘的分享资源,怎么写?用到什么?求个原理
百度盘很蛋疼,那种"分享"的全部都必须一个个手工打开然后转存. 如果我们想一次性批量转存的话要怎么弄呢? 后台是要怎么个原理. 看到人家已经有这种软件了, 但是用起来非常蛋疼,限制3条,还要注册它的帐号. 这种后台转存的原理是什么样的呢?抓包然后post数据吗?人家做的软件在这里:
软件介绍 : http://www.cr173.com/html/21753_1.html
软件下载 : http://www.cncrk.com/downinfo/58370.html
这玩意也能卖钱?
抓个包,写下很简单。 是要抓包 然后post呵?我就用chrome工具看了下,点击"转存"后会post个链接.但我试了下自己构造那个链接不行.
比如这个资源点击转存:
http://pan.baidu.com/share/link?uk=337152700&shareid=372224
后会post下面这么个链接,但是直接访问是失败. 那是不是要把所有的数据包都post出去呢?我不会抓包
http://pan.baidu.com/share/transfer?channel=chunlei&clienttype=0&web=1&from=337152700&shareid=372224 有没有办法根据那个分享的资源的链接构造出个地址直接访问一下就实现转存呢?
比如这个是资源链接:http://pan.baidu.com/share/link?uk=337152700&shareid=372224
然后构造出个什么链接访问一下就直接转存了?
不是一两个链接的问题,涉及较多操作,不登录获取Cookies你就想一步转存?
按抓包构造数据吧。 大侠能不帮忙做个例子?抓包和post都不会诶..
我用chrome工具,看到它headers是这样的:是不是就把这个post出去呢?cookies里面好多,都不知道用哪个
Request URL:http://pan.baidu.com/share/transfer?channel=chunlei&clienttype=0&web=1&from=3892720857&shareid=2994215852
Request Method:POST
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4
Connection:keep-alive
Content-Length:233
Content-Type:application/x-www-form-urlencoded
Cookie:BAIDUID=9F3B31872DEFB67EC96FD903D6EFDFB6:FG=1; PANWEB=1; Hm_lvt_b181fb73f90936ebd334d457c848c8b5=1380691822; Hm_lpvt_b181fb73f90936ebd334d457c848c8b5=1380691822; bdshare_firstime=1380693475113; BDUSS=dyQms3VTMwd3NBT1BwZER-WkNHaUsyV1pScUVteU41QX5-WmNJalVBYVVUSE5TQVFBQUFBJCQAAAAAAAAAAAEAAAAiG-s4Z3JlYXQ2OTk4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJS~S1KUv0tSUk; H_PS_PSSID=3409_3488_1448_3422_2981_3502_3109; BDCLND=iLa9K2qzOHCj%2Fc2z3WVWXr%2BkjkQjJL465HBm%2FctcjcQ%3D; Hm_lvt_773fea2ac036979ebb5fcc768d8beb67=1380702305,1380702577,1380702579,1380703065; Hm_lpvt_773fea2ac036979ebb5fcc768d8beb67=1380703277; Hm_lvt_adf736c22cd6bcc36a1d27e5af30949e=1380702305,1380702577,1380702579,1380703065; Hm_lpvt_adf736c22cd6bcc36a1d27e5af30949e=1380703277; cflag=65535%3A1
DNT:1
Host:pan.baidu.com
Origin:http://pan.baidu.com
Referer:http://pan.baidu.com/share/link?uk=3892720857&shareid=2994215852
User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36
X-Requested-With:XMLHttpRequest
Query String Parametersview sourceview URL encoded
channel:chunlei
clienttype:0
web:1
from:3892720857
shareid:2994215852
Form Dataview sourceview URL encoded
path:
filelist:["/茶树网学院10天自学教程(带素材)/案例分析/案例素材.rar"]
Response Headersview source
Cache-Control:no-cache
Content-Length:184
Content-Type:application/json; charset=UTF-8
Date:Wed, 02 Oct 2013 08:41:47 GMT
Pragma:no-cache
Server:lighttpd
X-Powered-By:PHP/5.2.10
cookies:
Request Cookies
793
BAIDUID
9F3B31872DEFB67EC96FD903D6EFDFB6:FG=1
N/A
N/A
N/A
47
BDCLND
iLa9K2qzOHCj%2Fc2z3WVWXr%2BkjkQjJL465HBm%2FctcjcQ%3D
N/A
N/A
N/A
61
BDUSS
dyQms3VTMwd3NBT1BwZER-WkNHaUsyV1pScUVteU41QX5-WmNJalVBYVVUSE5TQVFBQUFBJCQAAAAAAAAAAAEAAAAiG-s4Z3JlYXQ2OTk4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJS~S1KUv0tSUk
N/A
N/A
N/A
200
H_PS_PSSID
3409_3488_1448_3422_2981_3502_3109
N/A
N/A
N/A
47
Hm_lpvt_773fea2ac036979ebb5fcc768d8beb67
1380703277
N/A
N/A
N/A
53
Hm_lpvt_adf736c22cd6bcc36a1d27e5af30949e
1380703277
N/A
N/A
N/A
53
Hm_lpvt_b181fb73f90936ebd334d457c848c8b5
1380691822
N/A
N/A
N/A
53
Hm_lvt_773fea2ac036979ebb5fcc768d8beb67
1380702305,1380702577,1380702579,1380703065
N/A
N/A
N/A
85
Hm_lvt_adf736c22cd6bcc36a1d27e5af30949e
1380702305,1380702577,1380702579,1380703065
N/A
N/A
N/A
85
Hm_lvt_b181fb73f90936ebd334d457c848c8b5
1380691822
N/A
N/A
N/A
52
PANWEB
1
N/A
N/A
N/A
10
bdshare_firstime
1380693475113
N/A
N/A
N/A
32
cflag
65535%3A1
N/A
N/A
N/A
15
Response Cookies
建议学习下抓包。否则给你源码你也看不懂。 我已经写出了相关的软件…免费发布到了网上的…如果需要可以联系我… http://www.52pojie.cn/thread-227762-1-2.html httpwatch 网页抓包工具,xmlhttp就ok啦 WebBrowser1 做登录,,xmlhttp 做post,不用处理什么cookies,用httpwatch 网页抓包工具找url,和post的内容。
补充:VB , 网络编程