You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.2 KiB
58 lines
1.2 KiB
{ |
|
"cells": [ |
|
{ |
|
"cell_type": "code", |
|
"execution_count": null, |
|
"id": "fc8855d0-b654-4b50-8bfd-0fe31e9488d3", |
|
"metadata": {}, |
|
"outputs": [ |
|
{ |
|
"name": "stdout", |
|
"output_type": "stream", |
|
"text": [ |
|
"76.184.180.201\n" |
|
] |
|
} |
|
], |
|
"source": [ |
|
"import requests\n", |
|
"proxy = {\n", |
|
" 'http': \"aldrich.don%40gmail.com:darkfield1980@us9164.nordvpn.com\",\n", |
|
" 'https': \"aldrich.don%40gmail.com:darkfield1980@us9164.nordvpn.com\"\n", |
|
"}\n", |
|
"r = requests.get('https://api.myip.com',proxies=proxy)\n", |
|
"print(r.json()['ip'])\n", |
|
"# s.close()" |
|
] |
|
}, |
|
{ |
|
"cell_type": "code", |
|
"execution_count": null, |
|
"id": "da2c17e8-6a44-4e54-a457-0115163961e4", |
|
"metadata": {}, |
|
"outputs": [], |
|
"source": [] |
|
} |
|
], |
|
"metadata": { |
|
"kernelspec": { |
|
"display_name": "Python 3 (ipykernel)", |
|
"language": "python", |
|
"name": "python3" |
|
}, |
|
"language_info": { |
|
"codemirror_mode": { |
|
"name": "ipython", |
|
"version": 3 |
|
}, |
|
"file_extension": ".py", |
|
"mimetype": "text/x-python", |
|
"name": "python", |
|
"nbconvert_exporter": "python", |
|
"pygments_lexer": "ipython3", |
|
"version": "3.9.7" |
|
} |
|
}, |
|
"nbformat": 4, |
|
"nbformat_minor": 5 |
|
}
|
|
|