python 爬蟲百度地圖的信息界面的實現方法
更新時間:2019年10月27日 11:36:19 作者:貓苘
這篇文章主要介紹了python 爬蟲百度地圖的界面的實現方法,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧
在爬蟲百度地圖的期間,就為它做了一個界面,運用的是PyQt5。

得到意想不到的結果:

# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'E:\pycharm_workspase\sprider_baidumap\src\view\provinces.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(589, 500)
self.comboBox_city = QtWidgets.QComboBox(Form)
self.comboBox_city.setGeometry(QtCore.QRect(50, 60, 161, 31))
self.comboBox_city.setEditable(True)
self.comboBox_city.setCurrentText("")
self.comboBox_city.setIconSize(QtCore.QSize(20, 20))
self.comboBox_city.setObjectName("comboBox_city")
self.result = QtWidgets.QTextBrowser(Form)
self.result.setGeometry(QtCore.QRect(50, 150, 481, 300))
self.result.setEnabled(False)
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.result.setFont(font)
self.result.setObjectName("result")
self.keyWord = QtWidgets.QTextEdit(Form)
self.keyWord.setEnabled(True)
self.keyWord.setGeometry(QtCore.QRect(230, 60, 151, 31))
self.keyWord.setObjectName("keyWord")
self.pushButton = QtWidgets.QPushButton(Form)
self.pushButton.setGeometry(QtCore.QRect(400, 60, 131, 31))
self.pushButton.setObjectName("pushButton")
self.label = QtWidgets.QLabel(Form)
self.label.setGeometry(QtCore.QRect(50, 110, 111, 31))
font = QtGui.QFont()
font.setFamily("Arial Black")
font.setPointSize(14)
font.setBold(True)
font.setWeight(75)
self.label.setFont(font)
self.label.setObjectName("label")
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "百度地圖商家信息列表"))
self.pushButton.setText(_translate("Form", "確定"))
self.label.setText(_translate("Form", "查詢結果:"))
界面還是不錯的,自戀一下。
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持腳本之家。
相關文章
PyTorch之torch.randn()如何創(chuàng)建正態(tài)分布隨機數
這篇文章主要介紹了PyTorch之torch.randn()如何創(chuàng)建正態(tài)分布隨機數問題,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2023-02-02
python的staticmethod與classmethod實現實例代碼
這篇文章主要介紹了python的staticmethod與classmethod實現實例代碼,分享了相關代碼示例,小編覺得還是挺不錯的,具有一定借鑒價值,需要的朋友可以參考下2018-02-02
PyQt5+pycharm開發(fā)環(huán)境搭建的實現步驟(圖文)
本文針對創(chuàng)建PyQt運行環(huán)境+PyCharm開發(fā)環(huán)境的過程進行記錄,文中通過圖片示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下2021-11-11

