Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
13
def
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
19
def
revert_img(path):
Callers
2
极验滑块.py
File · 0.85
慕课网登录.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected