Skip to content

Commit

Permalink
使用正确代理成功
Browse files Browse the repository at this point in the history
  • Loading branch information
JLUVicent committed Sep 16, 2021
1 parent 319c796 commit df1ef74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 15_urllib_代理.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# 这个代理不太好使,得买代理
proxies = {
'http': '117.88.246.51:3000'
'http': '116.22.29.155:4245'
}

# ProxyHandler中是一个以字典形式存在的代理ip
Expand All @@ -29,5 +29,5 @@
# print(content)

# 保存
with open('daili.html', 'w', encoding='utf-8') as fp:
with open('urllibdaili.html', 'w', encoding='utf-8') as fp:
fp.write(content)

0 comments on commit df1ef74

Please sign in to comment.