超灬超  

2018年10月16日

摘要: 通过抄袭app.blade.php 在form中增加@csrf即可 阅读全文
posted @ 2018-10-16 10:08 超灬超 阅读(510) 评论(0) 推荐(0) 编辑

2018年9月18日

摘要: 1、首先在nginx的根目录(var/www/html)下执行以下命令: svn checkout svn://127.0.0.1/tp5 2、到hooks文件夹下 执行命令:创建一个post-commit文件 vi post-commit 复制以下代码 进行修改 LOG_PATH 以及svn up 阅读全文
posted @ 2018-09-18 16:27 超灬超 阅读(403) 评论(0) 推荐(0) 编辑

2018年8月27日

摘要: //在方法后面加上参数 红色部分validate_cert=False 然后重启 pyspider 即可 class Handler(BaseHandler): crawl_config = { } @every(minutes=24 * 60) def on_start(self): self.crawl('https://travel.qun... 阅读全文
posted @ 2018-08-27 10:36 超灬超 阅读(776) 评论(0) 推荐(0) 编辑

2018年8月11日

摘要: #*encoding=utf-8 from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.common.by import By from selenium.webdriver import ActionChains from se... 阅读全文
posted @ 2018-08-11 14:51 超灬超 阅读(347) 评论(0) 推荐(0) 编辑

2018年8月10日

摘要: yntaxError: Non-UTF-8 code starting with '\xe6' in file C:/Users/Administrator/PycharmProjects/py3spider/testpyquery/testpq1.py on line 395, but no en 阅读全文
posted @ 2018-08-10 16:44 超灬超 阅读(2460) 评论(0) 推荐(0) 编辑

2018年8月8日

摘要: import requests from urllib.parse import urlencode from pyquery import PyQuery as pq import pymongo from redis import StrictRedis import time import pymysql base_url = 'https://m.weibo.cn/api/conta... 阅读全文
posted @ 2018-08-08 15:05 超灬超 阅读(356) 评论(0) 推荐(0) 编辑
 
摘要: ERROR (Errno::ENOENT): No such file or directory - ps -o rss= -p 6128 解决方法 到ruby安装目录 如下目录: Ruby25-x64/lib/ruby/gems/2.5.0/gems/redis-dump-0.4.0/lib/re 阅读全文
posted @ 2018-08-08 10:41 超灬超 阅读(1786) 评论(0) 推荐(1) 编辑

2018年7月31日

摘要: https://github.com/pyinstaller/pyinstaller/issues/3642 上面找到的方法 将python37降为python35才可以打包成功 亲测可行 阅读全文
posted @ 2018-07-31 17:05 超灬超 阅读(1096) 评论(0) 推荐(0) 编辑

2018年7月27日

摘要: from pyquery import PyQuery as pq html = """ one two three four five """ # 直接返回所有匹配的元素(html格式) 还会自动补全 doc = pq(html) # 可以传入网址以及本地文件 # print(doc('... 阅读全文
posted @ 2018-07-27 16:28 超灬超 阅读(259) 评论(0) 推荐(0) 编辑
 
摘要: from bs4 import BeautifulSoup html = """ 标题 从前有三个小姐妹,她们的名字是 , Lacie, Tillie; 她们生活在一个井的下面 ... ... 阅读全文
posted @ 2018-07-27 09:29 超灬超 阅读(1229) 评论(0) 推荐(0) 编辑