| 12345678910111213141516171819202122232425 |
- # -*- 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
- '''
|