摘要: https://blog.csdn.net/boss2967/article/details/79019467 阅读全文
posted @ 2018-11-30 09:41 徐李帅 阅读(96) 评论(0) 推荐(0) 编辑
摘要: cook_dict={} cookies_list = ['a=1','b=2','c=3'] for cookie in cookies_list: cook_dict[cookie.split('=')[0]]=cookie.split('=')[1] # print(cookie.split('=')[0]) # print(cookie.split('=')[1]... 阅读全文
posted @ 2018-11-27 16:15 徐李帅 阅读(204) 评论(0) 推荐(0) 编辑
摘要: import urllib.request url = 'http://www.baidu.com/' response = urllib.request.urlopen(url) data = response.read() str_data = data.decode('utf_8') # print(str_data) with open('baidu.html','w',encodin... 阅读全文
posted @ 2018-11-08 16:48 徐李帅 阅读(2187) 评论(0) 推荐(0) 编辑
摘要: import urllib.request import random import re import json ''' 解决访问403的问题,需要模仿浏览器访问 ''' my_headers = [ "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171... 阅读全文
posted @ 2018-11-08 16:48 徐李帅 阅读(207) 评论(0) 推荐(0) 编辑
摘要: '''邮件收发''' def autosendemail(content): magTolist = ['lishuai.xu@zhutech.net'] for msgTo in magTolist: msg = email.mime.multipart.MIMEMultipart() msgFrom = 'lishuai.xu@zhutech.... 阅读全文
posted @ 2018-11-07 11:21 徐李帅 阅读(144) 评论(0) 推荐(0) 编辑
摘要: http://lib.csdn.net/article/python/62942 阅读全文
posted @ 2018-10-29 14:29 徐李帅 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Python 爬虫基础Selenium库的使用:https://blog.csdn.net/weixin_36279318/article/details/79475388 Web测试工具Selenium入门心得:http://www.selenium.org.cn/1954.html 阅读全文
posted @ 2018-09-30 13:51 徐李帅 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 引用方法 from pyquery import PyQuery as pq 基本CSS选择器 from pyquery import PyQuery as pq html = ''' <div id="wrap"> <ul class="s_from"> asdasd <link href="ht 阅读全文
posted @ 2018-09-29 17:02 徐李帅 阅读(309) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/yezitoo/article/details/78193794 阅读全文
posted @ 2018-09-28 13:57 徐李帅 阅读(123) 评论(0) 推荐(0) 编辑
摘要: SELECT DISTINCT a.fullname, a.belong_user_id AS belong_id, a.store_type FROM c_store_tbl a JOIN c_store_tbl b ON a.store_type != b.store_type WHERE a.belong_user_id = b.belong_user_id ORDER BY ... 阅读全文
posted @ 2018-08-22 21:15 徐李帅 阅读(8242) 评论(0) 推荐(1) 编辑