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.
25 lines
432 B
25 lines
432 B
# -*- coding: utf-8 -*-
|
|
import aiohttp
|
|
import asyncio
|
|
|
|
|
|
async def fetch(url):
|
|
async with aiohttp.ClientSession() as session:
|
|
async with session.get(url) as response:
|
|
return await response.text()
|
|
|
|
|
|
async def main():
|
|
url = 'http://api.ip.cc'
|
|
content = await fetch(url)
|
|
print(content)
|
|
|
|
|
|
asyncio.run(main())
|
|
|
|
'''
|
|
Proxy server: 175.99.17.215
|
|
port: 6011
|
|
username: lumi-jiege0210
|
|
password: aaaAAA111
|
|
''' |