python爬取公交车站数据_Python爬取公交站点和线路数据(上下行双向)

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'bus_info_crawling.ui'

#

# Created by: PyQt5 UI code generator 5.9.2

#

# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_Bus_Info_Crawling(object):

def setupUi(self, Bus_Info_Crawling):

Bus_Info_Crawling.setObjectName("Bus_Info_Crawling")

Bus_Info_Crawling.resize(840, 601)

self.verticalLayout_3 = QtWidgets.QVBoxLayout(Bus_Info_Crawling)

self.verticalLayout_3.setContentsMargins(-1, -1, -1, 56)

self.verticalLayout_3.setObjectName("verticalLayout_3")

self.paqu_para = QtWidgets.QGroupBox(Bus_Info_Crawling)

sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)

sizePolicy.setHorizontalStretch(0)

sizePolicy.setVerticalStretch(0)

sizePolicy.setHeightForWidth(self.paqu_para.sizePolicy().hasHeightForWidth())

self.paqu_para.setSizePolicy(sizePolicy)

font = QtGui.QFont()

font.setFamily("微软雅黑 Light")

font.setPointSize(10)

font.setBold(False)

font.setWeight(50)

self.paqu_para.setFont(font)

self.paqu_para.setAutoFillBackground(False)

self.paqu_para.setObjectName("paqu_para")

self.verticalLayout = QtWidgets.QVBoxLayout(self.paqu_para)

self.verticalLayout.setSpacing(15)

self.verticalLayout.setObjectName("verticalLayout")

self.horizontalLayout = QtWidgets.QHBoxLayout()

self.horizontalLayout.setObjectName("horizontalLayout")

self.label = QtWidgets.QLabel(self.paqu_para)

sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)

sizePolicy.setHorizontalStretch(1)

sizePolicy.setVerticalStretch(0)

sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())

self.label.setSizePolicy(sizePolicy)

font = QtGui.QFont()

font.setFamily("等线")

font.setPointSize(10)

font.setBold(False)

font.setWeight(50)

self.label.setFont(font)

self.label.setObjectName("label")

self.horizontalLayout.addWidget(self.label)

self.lineEdit_2 = QtWidgets.QLineEdit(self.paqu_para)

self.lineEdit_2.setText("")

self.lineEdit_2.setObjectName("lineEdit_2")

self.horizontalLayout.addWidget(self.lineEdit_2)

self.horizontalLayout.setStretch(0, 1)

self.horizontalLayout.setStretch(1, 6)

self.verticalLayout.addLayout(self.horizontalLayout)

self.horizontalLayout_2 = QtWidgets.QHBoxLayout()

self.horizontalLayout_2.setObjectName("horizontalLayout_2")

self.label_2 = QtWidgets.QLabel(self.paqu_para)

sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)

sizePolicy.setHorizontalStretch(1)

sizePolicy.setVerticalStretch(0)

sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())

self.label_2.setSizePolicy(sizePolicy)

font = QtGui.QFont()

font.setFamily("等线")

font.setPointSize(10)

font.setBold(False)

font.setWeight(50)

self.label_2.setFont(font)

self.label_2.setObjectName("label_2")

self.horizontalLayout_2.addWidget(self.label_2)

self.lineEdit_3 = QtWidgets.QLineEdit(self.paqu_para)

self.lineEdit_3.setObjectName("lineEdit_3")

self.horizontalLayout_2.addWidget(self.lineEdit_3)

self.horizontalLayout_2.setStretch(0, 1)

self.horizontalLayout_2.setStretch(1, 6)

self.verticalLayout.addLayout(self.horizontalLayout_2)

self.horizontalLayout_3 = QtWidgets.QHBoxLayout()

self.horizontalLayout_3.setObjectName("horizontalLayout_3")

self.label_3 = QtWidgets.QLabel(self.paqu_para)

sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)

sizePolicy.setHorizontalStretch(1)

sizePolicy.setVerticalStretch(0)

sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())

self.label_3.setSizePolicy(sizePolicy)

font = QtGui.QFont()

font.setFamily("等线")

font.setPointSize(10)

font.setBold(False)

font.setWeight(50)

self.label_3.setFont(font)

self.label_3.setObjectName("label_3")

self.horizontalLayout_3.addWidget(self.label_3)

self.lineEdit_4 = QtWidgets.QLineEdit(self.paqu_para)

self.lineEdit_4.setObjectName("lineEdit_4")

self.horizontalLayout_3.addWidget(self.lineEdit_4)

self.pushButton = QtWidgets.QPushButton(self.paqu_para)

font = QtGui.QFont()

font.setFamily("等线")

self.pushButton.setFont(font)

self.pushButton.setObjectName("pushButton")

self.horizontalLayout_3.addWidget(self.pushButton)

self.horizontalLayout_3.setStretch(0, 1)

self.horizontalLayout_3.setStretch(1, 5)

self.verticalLayout.addLayout(self.horizontalLayout_3)

self.horizontalLayout_4 = QtWidgets.QHBoxLayout()

self.horizontalLayout_4.setObjectName("horizontalLayout_4")

self.label_4 = QtWidgets.QLabel(self.paqu_para)

sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)

sizePolicy.setHorizontalStretch(1)

sizePolicy.setVerticalStretch(0)

sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())

self.label_4.setSizePolicy(sizePolicy)

font = QtGui.QFont()

font.setFamily("等线")

font.setPointSize(10)

font.setBold(False)

font.setWeight(50)

self.label_4.setFont(font)

self.label_4.setObjectName("label_4")

self.horizontalLayout_4.addWidget(self.label_4)

self.lineEdit_5 = QtWidgets.QLineEdit(self.paqu_para)

self.lineEdit_5.setObjectName("lineEdit_5")

self.horizontalLayout_4.addWidget(self.lineEdit_5)

self.pushButton_2 = QtWidgets.QPushButton(self.paqu_para)

font = QtGui.QFont()

font.setFamily("等线")

self.pushButton_2.setFont(font)

self.pushButton_2.setObjectName("pushButton_2")

self.horizontalLayout_4.addWidget(self.pushButton_2)

self.horizontalLayout_4.setStretch(0, 1)

self.horizontalLayout_4.setStretch(1, 5)

self.verticalLayout.addLayout(self.horizontalLayout_4)

self.verticalLayout_3.addWidget(self.paqu_para)

self.paqu_jindu = QtWidgets.QGroupBox(Bus_Info_Crawling)

font = QtGui.QFont()

font.setFamily("微软雅黑 Light")

font.setPointSize(10)

self.paqu_jindu.setFont(font)

self.paqu_jindu.setObjectName("paqu_jindu")

self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.paqu_jindu)

self.verticalLayout_2.setObjectName("verticalLayout_2")

self.textBrowser = QtWidgets.QTextBrowser(self.paqu_jindu)

self.textBrowser.setObjectName("textBrowser")

self.verticalLayout_2.addWidget(self.textBrowser)

self.verticalLayout_3.addWidget(self.paqu_jindu)

self.retranslateUi(Bus_Info_Crawling)

QtCore.QMetaObject.connectSlotsByName(Bus_Info_Crawling)

def retranslateUi(self, Bus_Info_Crawling):

_translate = QtCore.QCoreApplication.translate

Bus_Info_Crawling.setWindowTitle(_translate("Bus_Info_Crawling", "公交线路和站点数据抓取"))

self.paqu_para.setTitle(_translate("Bus_Info_Crawling", "爬取参数"))

self.label.setText(_translate("Bus_Info_Crawling", "

你可能感兴趣的:(python爬取公交车站数据)