上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页
摘要: schedule模块用法 1 import schedule 2 import time 3 4 def test(): 5 print("I'm working...") 6 def test2(): 7 print("I'm working... in job2") 8 9 # 每10分钟执行一 阅读全文
posted @ 2018-07-12 20:49 王琳杰 阅读(9149) 评论(0) 推荐(1) 编辑
摘要: pip install wxpy pip install schedule Timer实现定时 wxpy是专门用于python处理个人用户微信的相关模块,这个模块可以查看朋友、查看群组、发信息、公众号操作等等,功能非常强大。 阅读全文
posted @ 2018-07-12 20:48 王琳杰 阅读(4039) 评论(0) 推荐(0) 编辑
摘要: 对方发送过来的消息,我们通过dict进行保存,记录消息id和对应的消息内容,当对方撤回消息的时候,我们根据检测到的消息id,找到对应的dict中的消息内容,实现撤回的消息精准复原。 撤回的消息发送到文件传输助手 撤回的消息发送到原处 阅读全文
posted @ 2018-07-12 20:47 王琳杰 阅读(1314) 评论(0) 推荐(0) 编辑
摘要: schedule实现定时 1 import requests 2 from requests import exceptions 3 from urllib.request import urlopen 4 from bs4 import BeautifulSoup 5 import re 6 from wxpy import * 7 import schedule 8... 阅读全文
posted @ 2018-07-12 20:42 王琳杰 阅读(2462) 评论(1) 推荐(0) 编辑
摘要: 利用微信官方提供的开放API itchat库制作的微信聊天机器人 安装itchat,request模块,利用图灵接口 阅读全文
posted @ 2018-07-12 20:41 王琳杰 阅读(227) 评论(0) 推荐(0) 编辑
摘要: wljdeMacBook-Pro:~ wlj$ scrapy shell http://doc.scrapy.org/en/latest/_static/selectors-sample1.html >>> response.url'https://doc.scrapy.org/en/latest/ 阅读全文
posted @ 2018-07-02 21:38 王琳杰 阅读(329) 评论(0) 推荐(0) 编辑
摘要: Email起到提醒作用,当爬虫过程中遇到异常或者服务器遇到问题,可以通过Email及时向自己报告。发送邮件的协议是STMP,python内置对SMTP的支持,可以发送纯文本邮件、html邮件以及带附件的邮件。 SMTP协议 首先了解SMTP(简单邮件传输协议),邮件传送代理程序使用SMTP协议来发送 阅读全文
posted @ 2018-07-01 18:25 王琳杰 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: 天堂图片网下载,将img标签中的src属性提取出来,交给 阅读全文
posted @ 2018-07-01 16:51 王琳杰 阅读(5748) 评论(0) 推荐(0) 编辑
摘要: 正文的抽取 阅读全文
posted @ 2018-07-01 16:36 王琳杰 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 使用pyquery解析 attr()方法可获取属性 阅读全文
posted @ 2018-07-01 03:59 王琳杰 阅读(574) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页