Skip to content

Commit 38b6364

Browse files
authored
Merge pull request #157 from Weltolk/patch-1
Update request_with_cookie.py
2 parents c47db8c + 77670f0 commit 38b6364

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/request_with_cookie.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
添加Cookie扫描示例
88
99
命令行调用时:
10-
./crawlergo -c /home/test/chrome-linux/chrome -o json --ignore-url-keywords quit,exit,zhuxiao --custom-headers "{\"Cookie\": \"crawlergo=Cool\"}"
10+
./crawlergo -c /home/test/chrome-linux/chrome -o json --ignore-url-keywords quit,exit,zhuxiao,logout --custom-headers "{\"Cookie\": \"crawlergo=Cool\"}"
1111
1212
使用 --ignore-url-keywords 添加你想要的排除的关键字,避免访问注销请求
1313
"""
@@ -21,7 +21,7 @@ def main():
2121
"Cookie": "crawlergo=Cool"
2222
}
2323
cmd = ["./crawlergo", "-c", "/home/test/chrome-linux/chrome",
24-
"-o", "json", "--ignore-url-keywords", "quit,exit,zhuxiao", "--custom-headers", simplejson.dumps(headers),
24+
"-o", "json", "--ignore-url-keywords", "quit,exit,zhuxiao,logout", "--custom-headers", simplejson.dumps(headers),
2525
target]
2626

2727
rsp = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

0 commit comments

Comments
 (0)