Skip to content

Commit 01a1131

Browse files
authored
Create filestoolsDemo.py
1 parent 45e909e commit 01a1131

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from watermarker.marker import add_mark
2+
3+
from filediff.diff import file_diff_compare
4+
5+
from curl2py.curlParseTool import curlCmdGenPyScript
6+
7+
# add_mark(r"D:\0.png", "学 python,看 python 技术公众号", angle=15, size=20, space=40, color='#c5094d')
8+
9+
# file_diff_compare(r"D:\一线城市.log", r"D:\一线城市2.log", diff_out="diff_result.html", max_width=70, numlines=0, no_browser=True)
10+
11+
curl_cmd = """curl 'https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/mancard/img/side/qrcode@2x-daf987ad02.png' \
12+
-H 'sec-ch-ua: "Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"' \
13+
-H 'Referer: https://www.baidu.com/' \
14+
-H 'sec-ch-ua-mobile: ?0' \
15+
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36' \
16+
-H 'sec-ch-ua-platform: "Windows"' \
17+
--compressed"""
18+
output = curlCmdGenPyScript(curl_cmd)
19+
print(output)

0 commit comments

Comments
 (0)