Skip to content
princehaku edited this page Apr 21, 2014 · 1 revision

fetcher action可以使用标准浏览器发送的header头

比如

        {
            "action": "fetcher",
            "url": "http://s.weibo.com/weibo/淘宝搜索&xsort=time&page=${1,2}",
            "headers" : {
                 "Cookie": "UOR=vip.xunlei.com,widget.weibo.com,www.baidu.com; wvr=5; USRUG=usrmdins41447; "
            },
            "timeout": 10,
            "webkit": true,

就可以使用如上cookie设置到请求的时候

普通requests方式和webkit方式均支持这种方式来设置请求头