python
LeeZhejie
个人学习,如有帮助纯属巧合
展开
-
使用python sdk批量提取阿里云实例信息
编写python脚本调用阿里云SDK批量提取阿里云某region(如杭州)全部运行中实例的基本信息并生成表格。# author lizhejieimport jsonimport csvfrom aliyunsdkcore.client import AcsClientfrom aliyunsdkcore.acs_exception.exceptions import ClientExceptionfrom aliyunsdkcore.acs_exception.exceptions imp原创 2020-08-20 10:27:10 · 856 阅读 · 0 评论 -
python爬虫里的cookie处理(Session类)
import requestsheaders = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKi\ t/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36'}url = 'http://www.renren.c...原创 2018-12-20 17:34:09 · 677 阅读 · 0 评论