python3蒸汽web异步登录
PySteamWeb的Python项目详细描述
要求
- Python3.5+
- 密码
- aiohttp 1.1.6
安装
- pip3安装pysteamweb
用法
>>>importasyncio>>>frompysteamwebimportSteamWebBase>>>>>>asyncdefmain():>>>asyncwithSteamWebBase(>>>username='<steam login>',>>>password='<steam password>',>>>)ass:>>>print('logging success')>>>print(awaits.session.send_session(url='http://steamcommunity.com/profiles/{}/edit'.format(s.steam_id),is_post=False))>>>>>>>>>if__name__=='__main__':>>>loop=asyncio.get_event_loop()>>>loop.run_until_complete(main())>>>loop.close()
演示
查看演示文件夹