Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
luyishisi committed Jul 22, 2018
2 parents 3fcfca4 + 58c5a97 commit bebcb82
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def get_request(url,headers):
"http": "http://"+ip+':'+duankou,
"https": "http://"+ip+':'+duankou,
}
#如果代理需要账户和密码,则需这样:
#proxies = {
# "http": "http://user:[email protected]:3128/",
#}
#url = "https://www.urlteam.org"

html=requests.get(url,headers=headers,timeout=20,proxies=proxies).text#.decode('utf-8')
Expand Down

0 comments on commit bebcb82

Please sign in to comment.