Edit download_page function
このコミットが含まれているのは:
コミット
e1ff78118d
1個のファイルの変更、3行の追加、2行の削除
|
@ -59,11 +59,12 @@ def download_page(code):
|
||||||
"""
|
"""
|
||||||
Downloads the page from proxiwash website
|
Downloads the page from proxiwash website
|
||||||
"""
|
"""
|
||||||
|
url = WASHINSA_URL + code
|
||||||
try:
|
try:
|
||||||
with urllib.request.urlopen(WASHINSA_URL + code) as response:
|
with urllib.request.urlopen(url) as response:
|
||||||
return response.read().decode()
|
return response.read().decode()
|
||||||
except:
|
except:
|
||||||
print("Error processing following url: " + WASHINSA_URL)
|
print("Error processing following url: " + url)
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
|
読み込み中…
新しいイシューから参照