1 Star 0 Fork 79

owenlzb/WeChat_Article

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainwindow.ui 23.28 KB
一键复制 编辑 原始数据 按行查看 历史
洛枫 提交于 2019-05-04 20:00 . Add files via upload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>787</width>
<height>739</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>620</width>
<height>520</height>
</size>
</property>
<property name="mouseTracking">
<bool>false</bool>
</property>
<property name="windowTitle">
<string>微信公众号文章</string>
</property>
<property name="windowIcon">
<iconset>
<normaloff>../../icon.jpg</normaloff>../../icon.jpg</iconset>
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string> 公众号搜文章 </string>
</attribute>
<widget class="QWidget" name="">
<property name="geometry">
<rect>
<x>10</x>
<y>394</y>
<width>715</width>
<height>236</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QTableWidget" name="tableWidget_result">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="cursor" stdset="0">
<cursorShape>IBeamCursor</cursorShape>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="lineWidth">
<number>1</number>
</property>
<property name="midLineWidth">
<number>1</number>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAsNeeded</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="autoScroll">
<bool>true</bool>
</property>
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<property name="verticalScrollMode">
<enum>QAbstractItemView::ScrollPerPixel</enum>
</property>
<property name="horizontalScrollMode">
<enum>QAbstractItemView::ScrollPerPixel</enum>
</property>
<property name="gridStyle">
<enum>Qt::SolidLine</enum>
</property>
<property name="sortingEnabled">
<bool>false</bool>
</property>
<property name="rowCount">
<number>5</number>
</property>
<property name="columnCount">
<number>2</number>
</property>
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<attribute name="verticalHeaderCascadingSectionResizes">
<bool>false</bool>
</attribute>
<row/>
<row/>
<row/>
<row/>
<row/>
<column>
<property name="text">
<string>Title</string>
</property>
</column>
<column>
<property name="text">
<string>URL</string>
</property>
</column>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_notes">
<property name="minimumSize">
<size>
<width>200</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<family>华文楷体</family>
<pointsize>10</pointsize>
</font>
</property>
<property name="whatsThis">
<string>调试窗口</string>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="frameShape">
<enum>QFrame::Panel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="">
<property name="geometry">
<rect>
<x>10</x>
<y>140</y>
<width>715</width>
<height>237</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,0,0,0">
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<item>
<layout class="QFormLayout" name="formLayout">
<property name="formAlignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<item row="0" column="0">
<widget class="QLabel" name="Label_target">
<property name="text">
<string>目标公众号英文名</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="LineEdit_target">
<property name="minimumSize">
<size>
<width>200</width>
<height>25</height>
</size>
</property>
<property name="statusTip">
<string/>
</property>
<property name="placeholderText">
<string>为空则默认新华社(xinhuashefabu1)</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="Label_user">
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>个人公众号账号</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="LineEdit_user">
<property name="minimumSize">
<size>
<width>200</width>
<height>25</height>
</size>
</property>
<property name="placeholderText">
<string>为空则自动打开页面后手动输入</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="Label_pwd">
<property name="text">
<string>个人公众号密码</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="LineEdit_pwd">
<property name="minimumSize">
<size>
<width>200</width>
<height>25</height>
</size>
</property>
<property name="text">
<string extracomment="123"/>
</property>
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
<property name="placeholderText">
<string>为空则自动打开页面后手动输入</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="gapLabel">
<property name="text">
<string>查询间隔(s)</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="LineEdit_timegap">
<property name="minimumSize">
<size>
<width>200</width>
<height>25</height>
</size>
</property>
<property name="placeholderText">
<string>为空则默认为5s,一页约10条,越短越快被限制</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="Label_time">
<property name="text">
<string>时间范围(年)</string>
</property>
</widget>
</item>
<item row="4" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_3" stretch="0,0,0,0,0">
<property name="spacing">
<number>6</number>
</property>
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<item>
<widget class="QLineEdit" name="lineEdit_timeStart">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="placeholderText">
<string>1999</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_timeEnd">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="placeholderText">
<string>2019</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label">
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>关键词</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_keyword">
<property name="minimumSize">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="pushButton_start">
<property name="minimumSize">
<size>
<width>20</width>
<height>50</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>启动(*^▽^*)</string>
</property>
<property name="iconSize">
<size>
<width>24</width>
<height>24</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox">
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="statusTip">
<string/>
</property>
<property name="whatsThis">
<string>记住密码</string>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
<property name="text">
<string>记住密码</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_stop">
<property name="minimumSize">
<size>
<width>20</width>
<height>50</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>终止 ̄へ ̄</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QLabel" name="label_head">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>715</width>
<height>124</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>120</height>
</size>
</property>
<property name="text">
<string>****************************************************************************************************
* 程序原理:
&gt;&gt; 通过selenium登录获取token和cookie,再自动爬取和下载
* 使用前提: *
&gt;&gt; 电脑已装Firefox、Chrome、Opera、Edge等浏览器(默认Firefox驱动)
&gt;&gt; 下载selenium驱动放入python安装目录,将目录添加至环境变量(https://www.seleniumhq.org/download/)
&gt;&gt; 申请一个微信公众号(https://mp.weixin.qq.com)
Copyright © SXF 本软件禁止一切形式的商业活动
****************************************************************************************************</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string> 关键词搜文章 </string>
</attribute>
<widget class="QLabel" name="Label_time_2">
<property name="geometry">
<rect>
<x>90</x>
<y>190</y>
<width>36</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>关键词</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_keyword_2">
<property name="geometry">
<rect>
<x>130</x>
<y>190</y>
<width>158</width>
<height>20</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</widget>
<widget class="QLabel" name="label_head_2">
<property name="geometry">
<rect>
<x>10</x>
<y>0</y>
<width>715</width>
<height>124</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>120</height>
</size>
</property>
<property name="text">
<string>****************************************************************************************************
* demo说明:
&gt;&gt; 现在“公众号搜文章”页填完整信息
&gt;&gt; 再在本页填入关键词
&gt;&gt; 点击“启动”即可
Copyright © SXF 本软件禁止一切形式的商业活动
****************************************************************************************************</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_stop_2">
<property name="geometry">
<rect>
<x>520</x>
<y>230</y>
<width>80</width>
<height>50</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>20</width>
<height>50</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>终止 ̄へ ̄</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_start_2">
<property name="geometry">
<rect>
<x>520</x>
<y>154</y>
<width>80</width>
<height>50</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>20</width>
<height>50</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>启动(*^▽^*)</string>
</property>
<property name="iconSize">
<size>
<width>24</width>
<height>24</height>
</size>
</property>
</widget>
</widget>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>787</width>
<height>23</height>
</rect>
</property>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections>
<connection>
<sender>pushButton_start</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>Start_Run()</slot>
<hints>
<hint type="sourcelabel">
<x>707</x>
<y>282</y>
</hint>
<hint type="destinationlabel">
<x>396</x>
<y>104</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushButton_stop</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>Stop_Run()</slot>
<hints>
<hint type="sourcelabel">
<x>707</x>
<y>412</y>
</hint>
<hint type="destinationlabel">
<x>471</x>
<y>241</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushButton_start_2</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>Start_Run_2()</slot>
<hints>
<hint type="sourcelabel">
<x>593</x>
<y>251</y>
</hint>
<hint type="destinationlabel">
<x>786</x>
<y>250</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushButton_stop_2</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>Stop_Run_2()</slot>
<hints>
<hint type="sourcelabel">
<x>587</x>
<y>312</y>
</hint>
<hint type="destinationlabel">
<x>801</x>
<y>301</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>Start_Run()</slot>
<slot>Stop_Run()</slot>
<slot>Table_Update()</slot>
<slot>Start_Run_2()</slot>
<slot>Stop_Run_2()</slot>
</slots>
</ui>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/owenlzbsz/WeChat_Article.git
git@gitee.com:owenlzbsz/WeChat_Article.git
owenlzbsz
WeChat_Article
WeChat_Article
master

搜索帮助