Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
对获取page_top进行了延时
Browse files Browse the repository at this point in the history
  • Loading branch information
will4906 committed Apr 21, 2017
1 parent c8b8c3d commit 2cb9bd0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 415 deletions.
5 changes: 0 additions & 5 deletions entity/QueryInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ def __init__(self):
"陆敏华", "张新宇", "孙怡雯", "李乔亮", "齐素文", "徐海华", "倪东", "刘维湘",
"李抱朴", "黄炳升", "徐敏", "雷柏英", "胡亚欣", "何前军", "郑介志", "常春起",
"陈雯雯", "罗永祥", "黄鹏", "林静", "王倪传", "刘立", "张治国", "董磊"]
# self.__inventorList = ["汪天富", "谭力海", "彭珏", "但果", "叶继伦", "覃正笛",
# "张旭", "张会生", "钱建庭", "丁惠君", "刁现芬", "沈圆圆", "周永进", "孔湉湉",
# "陆敏华", "张新宇", "孙怡雯", "李乔亮", "齐素文", "徐海华", "倪东", "刘维湘",
# "李抱朴", "黄炳升", "徐敏", "雷柏英", "胡亚欣", "何前军", "郑介志", "常春起",
# "陈雯雯", "罗永祥", "黄鹏", "林静", "王倪传", "刘立", "张治国", "董磊"]

self.__proposer = "深圳大学"
self.__startDate = "2001-01-01"
Expand Down
318 changes: 0 additions & 318 deletions geckodriver.log

This file was deleted.

10 changes: 5 additions & 5 deletions ghostdriver.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[INFO - 2017-04-01T09:05:48.918Z] GhostDriver - Main - running on port 54634
[INFO - 2017-04-01T09:05:52.436Z] Session [68195bf0-16ba-11e7-8f6c-e9061457cf0c] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Mobile Safari/537.36","webSecurityEnabled":true}
[INFO - 2017-04-01T09:05:52.436Z] Session [68195bf0-16ba-11e7-8f6c-e9061457cf0c] - page.customHeaders: - {}
[INFO - 2017-04-01T09:05:52.436Z] Session [68195bf0-16ba-11e7-8f6c-e9061457cf0c] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"windows-10-32bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"},"phantomjs.page.settings.userAgent":"Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Mobile Safari/537.36"}
[INFO - 2017-04-01T09:05:52.436Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: 68195bf0-16ba-11e7-8f6c-e9061457cf0c
[INFO - 2017-04-21T17:25:00.844Z] GhostDriver - Main - running on port 51422
[INFO - 2017-04-21T17:25:04.354Z] Session [7516f940-26b7-11e7-b00e-2b1cca88e8f0] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Mobile Safari/537.36","webSecurityEnabled":true}
[INFO - 2017-04-21T17:25:04.354Z] Session [7516f940-26b7-11e7-b00e-2b1cca88e8f0] - page.customHeaders: - {}
[INFO - 2017-04-21T17:25:04.354Z] Session [7516f940-26b7-11e7-b00e-2b1cca88e8f0] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"windows-10-32bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"},"phantomjs.page.settings.userAgent":"Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Mobile Safari/537.36"}
[INFO - 2017-04-21T17:25:04.354Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: 7516f940-26b7-11e7-b00e-2b1cca88e8f0
12 changes: 0 additions & 12 deletions js_dir/qwer.js

This file was deleted.

75 changes: 0 additions & 75 deletions js_dir/test.js

This file was deleted.

2 changes: 2 additions & 0 deletions service/Query.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def queryTarget(self, inventor, proposer, startDate, patentTypeIndex):
if self.__isElementLoadingSuccess():
if self.__inputQueryTargetData(inventor, proposer, startDate, patentTypeIndex):
if self.__waitEngine.wait_for_loading():
self.__waitEngine.waitForSeconds(1)
pageSum = self.__getPageSum()
if pageSum is not None:
self.__progressController.queryTargetSuccessfully(pageSum)
Expand Down Expand Up @@ -125,6 +126,7 @@ def __choosePatentType(self, patentTypeIndex):
# 获取页码总数
def __getPageSum(self):
if self.__driver.page_source.find("没有检索到") != -1:
print("没有检索到")
return 0
else:
try:
Expand Down
Binary file modified 专利.xls
Binary file not shown.

0 comments on commit 2cb9bd0

Please sign in to comment.