- 博客(21)
- 收藏
- 关注
转载 2017-02-08 01:19:09 Scrapy: pk5_mylist
[TOC]###2017-02-08 01:19:09 Scrapy:pk5_mylist.md> Save the records with MongoDB#### settings.py```# -*- coding: utf-8 -*-BOT_NAME = 'bengbeng'SPIDER_MODULES = ['bengbeng.spiders']NEWSPIDER_MO...
2017-02-25 12:06:00
133
转载 2016-09-02 16:50:15 webqq 协议分析
2016-09-02 16:50:15 webqq 协议分析1. 扫描二维码登录https://ssl.ptlogin2.qq.com/ptqrlogin?webqq_type=10&remember_uin=1&login2qq=1&aid=501004106&u1=http%3A%2F%2Fw.qq.com%2Fproxy.html%3Flogin2q...
2017-02-25 11:27:00
194
转载 python3_pip_upgrade_package_win
#!/usr/bin/env python3# use pip to upgrade all of the outdate package# Date 2016-10-11# Author liuhao315@163.com# for winfrom subprocess import Popen,PIPEimport shleximport os...
2016-10-11 12:17:00
172
转载 2016-10-10 14:23:33 scrapy crawl projectName (cannot import name '_win32stdio')
1. 保存信息如下D:\python3\BR16>scrapy crawl BR16B -L WARNINGUnhandled error in Deferred:2016-10-10 14:19:05 [twisted] CRITICAL: Unhandled error in Deferred:Traceback (most recent call last...
2016-10-10 16:14:00
130
转载 2016-09-06 15:19:59 python352 + PyQt5 QTextEdit 追加写入(分行)/自动滚屏
2016-09-06 15:19:59 PyQt5 QTextEdit 追加写入 / 分行写入#!/usr/bin/env python3 # Author:1626478661# Date:2016-09-06 15:28:21# PyQt5 QTextEdit from PyQt5 import QtWidgets, QtCore, QtGuifrom PyQt5.QtWidget...
2016-09-06 15:33:00
589
转载 2016/7/20 1:14:45 PyQT5 实现点击隐藏,展开效果
2016/7/20 1:14:45code#!/usr/bin/env python ################################################################################# Copyright (C) 2013 Riverbank Computing Limited.## Copyright (C) 2...
2016-09-06 10:44:00
759
转载 2016/7/20 21:22:32 PyQT5 设置窗口icon / 显示图片
2016/7/20 21:22:32 使用QIconfrom PyQt5.Qt import QIconself.setWindowIcon(QIcon('img/0719/Icon.jpg'))效果:2016/7/20 21:38:21 加载本地图片code:from PyQt5.QtCore import *from PyQt5.QtGui import *from PyQt5...
2016-09-06 10:44:00
164
转载 2016/5/9 14:17:40 python bs4 BeautifulSoup 抓取糗事百科文字信息
2016/5/9 14:17:40# -*- coding: utf-8 -*-import urllibimport urllib.requestfrom bs4 import BeautifulSoupclass QiuShi(): def __init__(self): user_agent = 'Mozilla/4.0 (compatible;...
2016-09-06 10:43:00
85
转载 2016-09-06 10:33:36 PyQT5 tableview 背景颜色
2016-09-06 10:33:36 PyQT5 tableview 背景颜色 from PyQt5.QtGui import * from PyQt5.Qt import *from PyQt5.QtCore import * class MyDialog(QDialog): def __init__(self, parent=None): ...
2016-09-06 10:37:00
888
转载 2016/7/20 1:18:29 PyQT5 炫酷的左侧导航效果
2016/7/20 1:18:29完整codefrom PyQt5.QtWidgets import (QApplication, QWidget, QHBoxLayout, QTreeWidget, QTreeWidgetItem, QGroupBox)fro...
2016-07-20 12:33:00
1038
转载 2016/7/18 22:20:58 PyQT5 设置控件颜色(例子)
1. 一种样式self.Mgmt016.setStyleSheet('''background-color:rgb(255, 132, 139);border-radius: 5px; color: rgb(255, 255, 255);''')background-color:rgb(255, 132, 139); 控件颜色border-radius: 3px; 圆角效果 color...
2016-07-20 12:32:00
241
转载 2016/7/13 23:39:43 xPath 分析网页元素
1. 采用QQ浏览器 , 当前以获取qiushibaike里面的内容以及好笑,评论数为例选择需要抓取的内容,然后右键检查会出现一个调试界面,在 elements 里面选择需要抓取的信息,右键 copy - copy XPath3. 接下来 可以到 console 界面调试一下抓取的信息(妹的,这么强悍)使用 $x('XPath') 可以抓到相关信息4. 相应的我们可以得到相关Xpath...
2016-07-20 12:27:00
64
转载 2016/7/20 12:17:54 MariaDB 默认情况下,无法验证密码
1. System information:[root@mgt MgmtStatus]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.2 (Maipo)[root@mgt MgmtStatus]# uname -aLinux mgt 3.10.0-327.el7.x86_64 #1 SMP Thu O...
2016-07-20 12:24:00
73
转载 yii2-adminlte-asset / yii2-admin 安装配置
1.承接上一篇,安装一个靓的模板(yii2-adminlte-asset)AdminLTE 。以及一个user图形化管理界面(yii2-admin)2. 首先安装yii2-adminlte-asset ,同样是采用composer 安装,注意得到yii2的安装目录,默认的就是advancedE:\Program Files\phpStudy\WWW\yii2\advanced&g...
2016-07-11 14:48:00
404
转载 yii2 advance 安装
1. 前提条件,php版本得> 5.4D:\phpStudy>php -vPHP 5.5.17 (cli) (built: Sep 16 2014 16:17:50)Copyright (c) 1997-2014 The PHP GroupZend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologi...
2016-07-11 14:33:00
139
转载 dmidecode.py (python3_dmidecode)
#!/usr/bin/env python3# -*- coding: utf-8 -*-import subprocessimport redict_sn_productName = {}def getDmidecode(): # #variable 'out' is subprocess output info top...
2016-07-08 16:27:00
173
转载 2016/6/30 10:12:06 delphi7 tips
2016/7/4 0:41:58 倒叙for i:=7 downto 1do....2016/7/3 22:24:27 for in dofor betStart:=1 to 7 do ShowMessage(IntToStr(betStart));2016/7/3 19:38:17...
2016-07-05 09:53:00
152
转载 python352+PyQT5 btcdice.com 验证程序
0. 求打赏:Doge: DU5zf68E7x4YtMayUaX91z6dQDouS2u5aeLTC : LR4Qm8Cc2jKRdV4MZCpXtrAE8SZ2dXuj1o#!/usr/bin/python3from PyQt5.QtWidgets import *from PyQt5.QtGui import *from PyQt5.Q...
2016-07-04 15:21:00
177
转载 delphi7 写的一个验证btcdice网站结果的程序
mark 下:主要实现的功能有: Sha256算法 / hmac_sha512算法 (上网搜索了2天才搞定,资料太少)包含Listview 相关用法1. Main window2. 运行结果unit Main_unit;interfaceuses Windows, Messages, SysUtils, Variants, Clas...
2016-07-04 15:14:00
202
转载 PyQT_Group
2016/6/27 10:15:52 PyQT_GroupfromPyQt5.QtCoreimport*fromPyQt5.QtGuiimport*fromPyQt5.QtWidgetsimport*import sysclassWindow(QWidget): def __init__(self): s...
2016-07-04 14:48:00
124
转载 python3.5.2 with redhat7.2
2016/7/4 11:04:40 1. download source package[root@Rack_TestData haozil]# wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz2. System information[ro...
2016-07-04 14:37:00
94
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人