mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-06 18:11:30 +00:00
Add HAR: 贴吧一键签到 (#394)
Co-authored-by: TigerCubDen <TigerCubDen@users.noreply.github.com>
This commit is contained in:
parent
3f8d093089
commit
d6a13faed4
|
@ -2652,6 +2652,18 @@
|
|||
"date": "2023-07-06 21:33:00",
|
||||
"version": "20230706",
|
||||
"commenturl": "https://github.com/qd-today/templates/issues/390"
|
||||
},
|
||||
"贴吧一键签到": {
|
||||
"name": "贴吧一键签到",
|
||||
"author": "qiandao.today",
|
||||
"url": "https://raw.githubusercontent.com/qd-today/templates/master/贴吧一键签到cookie.har",
|
||||
"update": false,
|
||||
"comments": "模拟网页端调用“常逛的吧”的一键签到功能进行签到<br>填入在百度贴吧登录后的cookie即可",
|
||||
"filename": "贴吧一键签到cookie.har",
|
||||
"content": "W3sicmVxdWVzdCI6IHsibWV0aG9kIjogIkdFVCIsICJ1cmwiOiAiaHR0cDovL3RpZWJhLmJhaWR1LmNvbS9kYy9jb21tb24vdGJzIiwgImhlYWRlcnMiOiBbeyJuYW1lIjogIkFjY2VwdC1FbmNvZGluZyIsICJ2YWx1ZSI6ICJnemlwLCBkZWZsYXRlLCBzZGNoIn0sIHsibmFtZSI6ICJIb3N0IiwgInZhbHVlIjogInRpZWJhLmJhaWR1LmNvbSJ9LCB7Im5hbWUiOiAiQWNjZXB0LUxhbmd1YWdlIiwgInZhbHVlIjogInpoLUNOLHpoO3E9MC44LGVuLVVTO3E9MC42LGVuO3E9MC40LGtvO3E9MC4yIn0sIHsibmFtZSI6ICJVcGdyYWRlLUluc2VjdXJlLVJlcXVlc3RzIiwgInZhbHVlIjogIjEifSwgeyJuYW1lIjogIlVzZXItQWdlbnQiLCAidmFsdWUiOiAiTW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTFfNCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzUwLjAuM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ZXItQWdlbnQiLCAidmFsdWUiOiAiTW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTFfNCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzUwLjAuMjY2MS4xMDIgU2FmYXJpLzUzNy4zNiJ9LCB7Im5hbWUiOiAiQ29udGVudC1UeXBlIiwgInZhbHVlIjogImFwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZDsgY2hhcnNldD1VVEYtOCJ9LCB7Im5hbWUiOiAiQWNjZXB0IiwgInZhbHVlIjogIiovKiJ9LCB7Im5hbWUiOiAiUmVmZXJlciIsICJ2YWx1ZSI6ICJodHRwOi8vdGllYmEuYmFpZHUuY29tLyJ9LCB7Im5hbWUiOiAiWC1SZXF1ZXN0ZWQtV2l0aCIsICJ2YWx1ZSI6ICJYTUxIdHRwUmVxdWVzdCJ9LCB7Im5hbWUiOiAiQ29ubmVjdGlvbiIsICJ2YWx1ZSI6ICJrZWVwLWFsaXZlIn1dLCAiY29va2llcyI6IFtdLCAiZGF0YSI6ICJpZT11dGYtOCZ0YnM9e3t0YnN8dXJsZW5jb2RlfX0iLCAibWltZVR5cGUiOiAiYXBwbGljYXRpb24veC13d3ctZm9ybS11cmxlbmNvZGVkOyBjaGFyc2V0PVVURi04In0sICJydWxlIjogeyJzdWNjZXNzX2Fzc2VydHMiOiBbeyJyZSI6ICJzdWNjZXNzIiwgImZyb20iOiAiY29udGVudCJ9XSwgImZhaWxlZF9hc3NlcnRzIjogW10sICJleHRyYWN0X3ZhcmlhYmxlcyI6IFtdfX1d",
|
||||
"date": "2023-07-13 03:50:53",
|
||||
"version": "20230713",
|
||||
"commenturl": "https://github.com/qd-today/templates/issues/393"
|
||||
}
|
||||
}
|
||||
}
|
124
贴吧一键签到cookie.har
Normal file
124
贴吧一键签到cookie.har
Normal file
|
@ -0,0 +1,124 @@
|
|||
[
|
||||
{
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "http://tieba.baidu.com/dc/common/tbs",
|
||||
"headers": [
|
||||
{
|
||||
"name": "Accept-Encoding",
|
||||
"value": "gzip, deflate, sdch"
|
||||
},
|
||||
{
|
||||
"name": "Host",
|
||||
"value": "tieba.baidu.com"
|
||||
},
|
||||
{
|
||||
"name": "Accept-Language",
|
||||
"value": "zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4,ko;q=0.2"
|
||||
},
|
||||
{
|
||||
"name": "Upgrade-Insecure-Requests",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "User-Agent",
|
||||
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"
|
||||
},
|
||||
{
|
||||
"name": "Accept",
|
||||
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
|
||||
},
|
||||
{
|
||||
"name": "Cookie",
|
||||
"value": "{{cookie}}"
|
||||
},
|
||||
{
|
||||
"name": "Connection",
|
||||
"value": "keep-alive"
|
||||
}
|
||||
],
|
||||
"cookies": []
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "tbs",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": [
|
||||
{
|
||||
"re": "{\"tbs\":\"([\\s\\S]*?)\"",
|
||||
"from": "content",
|
||||
"name": "tbs"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "http://tieba.baidu.com/tbmall/onekeySignin1",
|
||||
"headers": [
|
||||
{
|
||||
"name": "Cookie",
|
||||
"value": "{{cookie}}"
|
||||
},
|
||||
{
|
||||
"name": "Origin",
|
||||
"value": "http://tieba.baidu.com"
|
||||
},
|
||||
{
|
||||
"name": "Accept-Encoding",
|
||||
"value": "gzip, deflate"
|
||||
},
|
||||
{
|
||||
"name": "Host",
|
||||
"value": "tieba.baidu.com"
|
||||
},
|
||||
{
|
||||
"name": "Accept-Language",
|
||||
"value": "zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4,ko;q=0.2"
|
||||
},
|
||||
{
|
||||
"name": "User-Agent",
|
||||
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"
|
||||
},
|
||||
{
|
||||
"name": "Content-Type",
|
||||
"value": "application/x-www-form-urlencoded; charset=UTF-8"
|
||||
},
|
||||
{
|
||||
"name": "Accept",
|
||||
"value": "*/*"
|
||||
},
|
||||
{
|
||||
"name": "Referer",
|
||||
"value": "http://tieba.baidu.com/"
|
||||
},
|
||||
{
|
||||
"name": "X-Requested-With",
|
||||
"value": "XMLHttpRequest"
|
||||
},
|
||||
{
|
||||
"name": "Connection",
|
||||
"value": "keep-alive"
|
||||
}
|
||||
],
|
||||
"cookies": [],
|
||||
"data": "ie=utf-8&tbs={{tbs|urlencode}}",
|
||||
"mimeType": "application/x-www-form-urlencoded; charset=UTF-8"
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "success",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": []
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user