steamuserimages subdir
This commit is contained in:
parent
20309b376b
commit
a632b75b8f
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ def parse_trs(trs):
|
|||
url = urlparse(url_string)
|
||||
if url.netloc.startswith('steamuserimages'):
|
||||
response = requests.get(url_string)
|
||||
with open(url.path.strip('/').replace('/', '_'), "wb") as f:
|
||||
with open('steamuserimages/' + url.path.strip('/').replace('/', '_'), "wb") as f:
|
||||
f.write(response.content)
|
||||
|
||||
# get first page
|
||||
|
|
Loading…
Reference in a new issue