開始使用
使用網頁解鎖器很簡單,您需要向我們的代理服務unblock.abcproxy.com:17610發送一個請求,並附帶必需的身份驗證-U "username:password"以及JavaScript渲染類型X-Abc-Render,運行以下命令即可獲取網頁公開、合法的內容:
curl -x unblock.abcproxy.com:17610 -U "username-zone-unblock:password" -H "X-Abc-Render:png" "https://docs.abcproxy.com" -k > abc.png import requests
# Use your Web Unblocker credentials here.
USERNAME, PASSWORD = 'YOUR_USERNAME-zone-unblock', 'YOUR_PASSWORD'
# Define proxy dict.
proxies = {
'http': f'http://{USERNAME}:{PASSWORD}@unblock.abcproxy.com:17610',
'https': f'http://{USERNAME}:{PASSWORD}@unblock.abcproxy.com:17610',
}
headers = {
'X-Abc-Render': 'html'
}
response = requests.get(
'https://www.abcproxy.com/',
verify=False, # It is required to ignore certificate
proxies=proxies,
headers=headers,
)
# Print result page to stdout
print(response.text)
# Save returned HTML to result.html file
with open('result.html', 'w', encoding=response.encoding) as f:
f.write(response.text)
該條命令中zone-unblock代表您的服務類型,請勿更改
最后更新于