Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
  • Loading branch information
x-xz committed Sep 6, 2015
commit 6268d89fbbf1a97e81ec2768da9e98d1e2ef526c
4 changes: 2 additions & 2 deletions chapter5/1-getPageMedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ def getDownloadPath(baseUrl, absoluteUrl, downloadDirectory):
fileUrl = getAbsoluteURL(baseUrl, download["src"])
if fileUrl is not None:
print(fileUrl)

urlretrieve(fileUrl, getDownloadPath(baseUrl, fileUrl, downloadDirectory))
fileUrl = fileUrl.split('?')[0]
urlretrieve(fileUrl, getDownloadPath(baseUrl, fileUrl, downloadDirectory))