05 2020 档案

该文被密码保护。
posted @ 2020-05-14 18:21 BruceLong 阅读(6) 评论(0) 推荐(0) 编辑
摘要:# python 去除字符串的标点符号 punctuation = '!,;:?"\'、,;' def removePunctuation(text): text = re.sub(r'[{}]+'.format(punctuation),' ',text) return text.strip() 阅读全文
posted @ 2020-05-12 14:56 BruceLong 阅读(13827) 评论(0) 推荐(1) 编辑
摘要:启动服务器错误requests包的requests.post发送后,传不回数据 改变服务器启动方法不要用eventlet,加个参数 celery worker -A celery_name --loglevel=info --pool=solo 阅读全文
posted @ 2020-05-11 17:21 BruceLong 阅读(492) 评论(0) 推荐(0) 编辑
摘要:在spider中 主动关闭爬虫: self.crawler.engine.close_spider(self, 'cookie失效关闭爬虫') 在pipeline 和downloadermiddlewares 主动关闭爬虫: spider.crawler.engine.close_spider(sp 阅读全文
posted @ 2020-05-09 09:20 BruceLong 阅读(733) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示