摘要: [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_MODULE = '... 阅读全文
posted @ 2017-02-25 12:06 乾坤颠倒 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 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%3Flogin2qq%3D1%26webqq_type%3D... 阅读全文
posted @ 2017-02-25 11:27 乾坤颠倒 阅读(345) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python3 # use pip to upgrade all of the outdate package # Date 2016-10-11 # Author liuhao315@163.com # for win from subprocess import Popen,PIPE import shlex import os def runcmd(cmd... 阅读全文
posted @ 2016-10-11 12:17 乾坤颠倒 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 1. 保存信息如下 解决方案: 阅读全文
posted @ 2016-10-10 16:14 乾坤颠倒 阅读(984) 评论(0) 推荐(0) 编辑
摘要: 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.QtWidgets imp... 阅读全文
posted @ 2016-09-06 15:33 乾坤颠倒 阅读(4534) 评论(0) 推荐(0) 编辑
摘要: 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.QtWi... 阅读全文
posted @ 2016-09-06 10:44 乾坤颠倒 阅读(1674) 评论(0) 推荐(0) 编辑
摘要: 2016/7/20 1:14:45 code#!/usr/bin/env python ################################################################################# Copyright (C) 2013 Riverbank Computing Limited.## Copyright (C) 2010 Nok... 阅读全文
posted @ 2016-09-06 10:44 乾坤颠倒 阅读(2949) 评论(0) 推荐(0) 编辑
摘要: 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; MSIE 5.5... 阅读全文
posted @ 2016-09-06 10:43 乾坤颠倒 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 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): super... 阅读全文
posted @ 2016-09-06 10:37 乾坤颠倒 阅读(4340) 评论(0) 推荐(0) 编辑
摘要: 2016/7/20 1:18:29 完整codefrom PyQt5.QtWidgets import (QApplication, QWidget, QHBoxLayout, QTreeWidget, QTreeWidgetItem, QGroupBox)from PyQ... 阅读全文
posted @ 2016-07-20 12:33 乾坤颠倒 阅读(3389) 评论(0) 推荐(0) 编辑