MCPcopy Create free account
hub / github.com/KingFuRong/pythonSpider / download_img

Function download_img

Utils/tools.py:13–16  ·  view source on GitHub ↗
(session, name, url)

Source from the content-addressed store, hash-verified

11
12
13def download_img(session, name, url):
14 response = session.get(url)
15 with open(f'{name}.jpg', 'wb') as f:
16 f.write(response.content)
17
18
19def revert_img(path):

Callers 2

极验滑块.pyFile · 0.85
慕课网登录.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected