代码拉取完成,页面将自动刷新
同步操作将从 惊鸿一回车/WeChat_Article 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?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>****************************************************************************************************
* 程序原理:
>> 通过selenium登录获取token和cookie,再自动爬取和下载
* 使用前提: *
>> 电脑已装Firefox、Chrome、Opera、Edge等浏览器(默认Firefox驱动)
>> 下载selenium驱动放入python安装目录,将目录添加至环境变量(https://www.seleniumhq.org/download/)
>> 申请一个微信公众号(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说明:
>> 现在“公众号搜文章”页填完整信息
>> 再在本页填入关键词
>> 点击“启动”即可
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>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。