03 2020 档案

摘要:保证爬虫文件的parse方法中有可迭代类型对象(通常为列表or字典)的返回,该返回值可以通过终端指令的形式写入指定格式的文件中进行持久化操作。 scrapy使用流程: 创建工程: scrapy startproject ProName 进入工程目录: cd ProName 创建爬虫文件: scrap 阅读全文
posted @ 2020-03-31 20:29 一只小小的寄居蟹 阅读(481) 评论(0) 推荐(0) 编辑
摘要:关闭nginx service nginx stop 设置一个配置文件 order.conf server { listen 80 default_server; listen 443 default_server; server_name www.xxx.cn; location /static 阅读全文
posted @ 2020-03-26 02:47 一只小小的寄居蟹 阅读(4875) 评论(0) 推荐(0) 编辑
摘要:安装对应的 Release yum -y install epel-release Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Resolving Dependencies - 阅读全文
posted @ 2020-03-25 01:26 一只小小的寄居蟹 阅读(677) 评论(0) 推荐(0) 编辑
摘要:自带centos上运行python manage.py runserver的时候报错 django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17). 给django降级 卸载 阅读全文
posted @ 2020-03-25 01:16 一只小小的寄居蟹 阅读(551) 评论(0) 推荐(0) 编辑
摘要:flask打包下载zip文件 @app.route('/download_all') def download_all(): zipf = zipfile.ZipFile('Name.zip','w', zipfile.ZIP_DEFLATED) root_path = app.root_path 阅读全文
posted @ 2020-03-15 22:41 一只小小的寄居蟹 阅读(2828) 评论(0) 推荐(0) 编辑
摘要:pandas过滤文件重复行 import pandas as pd import os import argparse import random import string # 增加参数 parser = argparse.ArgumentParser( description="过滤文件重复行, 阅读全文
posted @ 2020-03-06 10:19 一只小小的寄居蟹 阅读(965) 评论(0) 推荐(0) 编辑
摘要:介绍 Xlsx是python用来构造xlsx文件的模块,可以向excel2007+中写text,numbers,formulas 公式以及hyperlinks超链接。 可以完成xlsx文件的自动化构造,包括: 合并单元格,制作excel图表等功能: xlsxWriter支持多种excle功能;与ex 阅读全文
posted @ 2020-03-02 00:42 一只小小的寄居蟹 阅读(1142) 评论(0) 推荐(0) 编辑

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