摘要: 一、debug调试 1、在scrapy项目下新建main.py文件,与scrapy.cfg平级 2、代码如下 from scrapy.cmdline import execute import os import sys if __name__ == '__main__': sys.path.app 阅读全文
posted @ 2020-12-16 16:31 痴人谈情 阅读(964) 评论(0) 推荐(0) 编辑
摘要: 生成环境文件 pip freeze > huanjing.txt #自动会导入到你现在的项目文件夹中 导入环境文件 创建一个新的环境是可以导入新环境 pip install -r huanjing.txt 阅读全文
posted @ 2020-12-14 10:38 痴人谈情 阅读(111) 评论(0) 推荐(0) 编辑
摘要: import pymysql from dbutils.pooled_db import PooledDB connect_mysql = { "host": "IP地址", "port": 3306, "charset": "utf8", "db": "数据库名称", "user": "用户名", 阅读全文
posted @ 2020-12-14 10:36 痴人谈情 阅读(167) 评论(0) 推荐(0) 编辑
摘要: # coding=UTF-8 import requests import json import bs4 import re import os #判断文件是否存在 def is_file_path(path): if os.path.isfile(path): return 0 else: re 阅读全文
posted @ 2020-09-15 16:50 痴人谈情 阅读(331) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 import re def re_time(txt_data): data_time=[] re_list=[ r"(\d{4}-\d{1,2}-\d{1,2})", r"(\d{4}\.\d{1,2}\.\d{1,2})", r"(\d{4}:\d{1,2}:\d{1, 阅读全文
posted @ 2020-07-17 09:32 痴人谈情 阅读(793) 评论(0) 推荐(0) 编辑
摘要: 一、模拟器设置代理 1、设置->WLAN->左击长按k4i68pQT->修改网络->高级选项->代理(选择手动,设置代理服务器主机名、代理服务器端口)->保存,如下图 二、配置证书 1、windows配置证书 安装mitmproxy后,首先cmd运行一下以下命令,以便在windows系统中产生CA证 阅读全文
posted @ 2020-06-28 15:39 痴人谈情 阅读(3308) 评论(0) 推荐(0) 编辑
摘要: 带看fiddle安装目录,在安装目录下打开cmd命令窗口,执行命令: makecert.exe -r -ss my -n "CN=DO_NOT_TRUST_FiddlerRoot, O=DO_NOT_TRUST, OU=Created by http://www.fiddler2.com" -sky 阅读全文
posted @ 2020-06-23 14:59 痴人谈情 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1、ESLint:JavaScript开发者;不过代码格式要求十分严格,建议谨慎使用,会让你怀疑人生的 2、Vetur:Vetur是官方的VueJS扩展插件,下载量逾2000万次。其功能包括:错误检查、自动补全及提供Vue代码片段。 3、Live Server:在VS Code中,LiveServe 阅读全文
posted @ 2020-06-12 20:08 痴人谈情 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 序列化数据安装命令:pip install djangorestframework在setting设置文件中的INSTALLED_APPS选项中添加‘rest_framework’ INSTALLED_APPS = [ ... 'rest_framework', ] 1、在model同级目录下新建p 阅读全文
posted @ 2020-06-02 15:57 痴人谈情 阅读(365) 评论(0) 推荐(0) 编辑
摘要: wxml文件 <!--pages/goods_detail/index.wxml--> <view class="detail_swiper"> <swiper autoplay="{{true}}" circular="{{true}}" indicator-dots> <swiper-item 阅读全文
posted @ 2020-06-02 10:46 痴人谈情 阅读(356) 评论(2) 推荐(1) 编辑