-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathOG.py
144 lines (138 loc) · 9.58 KB
/
OG.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'OG.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.setEnabled(True)
MainWindow.resize(865, 675)
MainWindow.setMinimumSize(QtCore.QSize(865, 675))
MainWindow.setMaximumSize(QtCore.QSize(865, 675))
MainWindow.setAnimated(True)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.frame = QtWidgets.QFrame(self.centralwidget)
self.frame.setGeometry(QtCore.QRect(30, 40, 211, 551))
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.treeWidget = QtWidgets.QTreeWidget(self.frame)
self.treeWidget.setGeometry(QtCore.QRect(40, 10, 161, 511))
self.treeWidget.setObjectName("treeWidget")
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
self.frame_2 = QtWidgets.QFrame(self.centralwidget)
self.frame_2.setGeometry(QtCore.QRect(250, 40, 511, 311))
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_2.setObjectName("frame_2")
self.textBrowser_2 = QtWidgets.QTextBrowser(self.frame_2)
self.textBrowser_2.setGeometry(QtCore.QRect(10, 10, 491, 291))
self.textBrowser_2.setObjectName("textBrowser_2")
self.frame_3 = QtWidgets.QFrame(self.centralwidget)
self.frame_3.setGeometry(QtCore.QRect(250, 370, 511, 221))
self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_3.setObjectName("frame_3")
self.textBrowser = QtWidgets.QTextBrowser(self.frame_3)
self.textBrowser.setGeometry(QtCore.QRect(10, 10, 491, 141))
self.textBrowser.setObjectName("textBrowser")
self.pushButton = QtWidgets.QPushButton(self.frame_3)
self.pushButton.setGeometry(QtCore.QRect(100, 170, 93, 28))
self.pushButton.setObjectName("pushButton")
self.pushButton_2 = QtWidgets.QPushButton(self.frame_3)
self.pushButton_2.setGeometry(QtCore.QRect(290, 170, 93, 28))
self.pushButton_2.setObjectName("pushButton_2")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 865, 26))
self.menubar.setObjectName("menubar")
self.menu = QtWidgets.QMenu(self.menubar)
self.menu.setObjectName("menu")
self.menu_2 = QtWidgets.QMenu(self.menubar)
self.menu_2.setObjectName("menu_2")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.action = QtWidgets.QAction(MainWindow)
self.action.setObjectName("action")
self.menu.addAction(self.action)
self.menubar.addAction(self.menu.menuAction())
self.menubar.addAction(self.menu_2.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.treeWidget.headerItem().setText(0, _translate("MainWindow", "分类"))
__sortingEnabled = self.treeWidget.isSortingEnabled()
self.treeWidget.setSortingEnabled(False)
self.treeWidget.topLevelItem(0).setText(0, _translate("MainWindow", "电影"))
self.treeWidget.topLevelItem(0).child(0).setText(0, _translate("MainWindow", "猫眼评分"))
self.treeWidget.topLevelItem(1).setText(0, _translate("MainWindow", "美食"))
self.treeWidget.topLevelItem(1).child(0).setText(0, _translate("MainWindow", "美团"))
self.treeWidget.topLevelItem(2).setText(0, _translate("MainWindow", "电商"))
self.treeWidget.topLevelItem(2).child(0).setText(0, _translate("MainWindow", "京东"))
self.treeWidget.topLevelItem(3).setText(0, _translate("MainWindow", "新闻"))
self.treeWidget.topLevelItem(3).child(0).setText(0, _translate("MainWindow", "微博榜单"))
self.treeWidget.topLevelItem(3).child(1).setText(0, _translate("MainWindow", "微博话题"))
self.treeWidget.topLevelItem(3).child(2).setText(0, _translate("MainWindow", "央视新闻"))
self.treeWidget.topLevelItem(3).child(3).setText(0, _translate("MainWindow", "网易新闻"))
self.treeWidget.topLevelItem(4).setText(0, _translate("MainWindow", "天气"))
self.treeWidget.topLevelItem(4).child(0).setText(0, _translate("MainWindow", "中国天气网"))
self.treeWidget.topLevelItem(5).setText(0, _translate("MainWindow", "视频"))
self.treeWidget.topLevelItem(5).child(0).setText(0, _translate("MainWindow", "B站视频"))
self.treeWidget.topLevelItem(5).child(1).setText(0, _translate("MainWindow", "B站视频弹幕"))
self.treeWidget.topLevelItem(5).child(2).setText(0, _translate("MainWindow", "B站番剧弹幕"))
self.treeWidget.topLevelItem(5).child(3).setText(0, _translate("MainWindow", "B站评论"))
self.treeWidget.topLevelItem(6).setText(0, _translate("MainWindow", "汽车"))
self.treeWidget.topLevelItem(6).child(0).setText(0, _translate("MainWindow", "太平洋汽车"))
self.treeWidget.topLevelItem(7).setText(0, _translate("MainWindow", "招聘"))
self.treeWidget.topLevelItem(7).child(0).setText(0, _translate("MainWindow", "无忧招聘网"))
self.treeWidget.topLevelItem(8).setText(0, _translate("MainWindow", "其他"))
self.treeWidget.setSortingEnabled(__sortingEnabled)
self.textBrowser_2.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'SimSun\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">爬取内容:猫眼票房</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">网页主站:https://maoyan.com/</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">爬取站点(示例):https://maoyan.com/query?kw=%E7%A5%9E%E6%8E%A2%E7%8B%84%E4%BB%81%E6%9D%B0</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">结果数量:1(关键字) * 1</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">关键字:电影</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">支持批量关键字:是</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">ip访问频率限制:暂无</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">注意:爬取内容为搜索结果中的第一个匹配项,请确保关键字准确。</p></body></html>"))
self.pushButton.setText(_translate("MainWindow", "进入"))
self.pushButton_2.setText(_translate("MainWindow", "退出"))
self.menu.setTitle(_translate("MainWindow", "开始"))
self.menu_2.setTitle(_translate("MainWindow", "帮助"))
self.action.setText(_translate("MainWindow", "退出"))