CN109344067A - A kind of method of automatic reprinting related news information - Google Patents

A kind of method of automatic reprinting related news information Download PDF

Info

Publication number
CN109344067A
CN109344067A CN201811147968.1A CN201811147968A CN109344067A CN 109344067 A CN109344067 A CN 109344067A CN 201811147968 A CN201811147968 A CN 201811147968A CN 109344067 A CN109344067 A CN 109344067A
Authority
CN
China
Prior art keywords
browser
news
page
information
maintenance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811147968.1A
Other languages
Chinese (zh)
Other versions
CN109344067B (en
Inventor
黄建刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Wanpeng Digital Intelligence Technology Co.,Ltd.
Original Assignee
Zhejiang Wanpeng Education Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Wanpeng Education Technology Co Ltd filed Critical Zhejiang Wanpeng Education Technology Co Ltd
Priority to CN201811147968.1A priority Critical patent/CN109344067B/en
Publication of CN109344067A publication Critical patent/CN109344067A/en
Application granted granted Critical
Publication of CN109344067B publication Critical patent/CN109344067B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Abstract

The invention discloses a kind of automatic methods for reprinting related news information.Realization of the invention is to reprint the specific Domestic News content in certain website automatically by script, is published on the website of oneself.The present invention significantly improves the maintenance real-time of oneself Website News information.By obtaining the Domestic News of more different web sites, is more enriched before content ratio, attract the concern of more users.

Description

A kind of method of automatic reprinting related news information
Technical field
The invention belongs to a kind of extensions in computer automated testing field, for the Domestic News on quick obtaining network And it reprints to a kind of method in oneself platform.
Background technique
There are many things to merit attention, a large-scale Internet company, for some daily in the world Significant events report is all relatively more timely, because they have abundant manpower resource specially to do this thing.Little company has very much can It can update slow.Like be me company, also have information notice on website, but be not to have update daily, content is total It is so several, so few users browse.
In the communication with responsible maintenance personnel, it is found that the Domestic News that they safeguard all turn to have in automatic network substantially 's.And they have fixed source.Only they really go to safeguard without so much energy.Check what maintenance personnel provided Behind website, it is found that the interface layout of these websites is very regular, be well suited for the operation of automation tools, then an idea is just It is born in this way: writes the manual operations that a set of automatic test script goes substitution maintenance personnel.
Summary of the invention
The purpose of the present invention is the angles of subsidiary company operation to set out, and provides a kind of automatic side for reprinting related news information Method.It reprints the specific Domestic News content in certain website automatically by script, is published on the website of oneself.
The technical solution adopted by the present invention to solve the technical problems includes the following steps:
Step 1, starting 2 browser B1 and B2, browser B1 open certain Website page and obtain education information, browser B2 Open oneself website maintenance Domestic News page.
Step 2, the title B1-T1 that appointed sequence number Domestic News on the page are obtained on browser B1, pause behaviour's browser Make B1, start-up operation browser B2.
Step 3, browser B2 open oneself website maintenance Domestic News page, scan for T1 as title, if T1 is not present in browser B2, suspends browser B2, and starting browser B1 operation further clicks on and opens title B1-T1 chain It connects, obtains the detailed information T1-M1 of the page, comprising: source, text.If needing to save line by line there are picture in T1-M1 Text, and it is the discovery that a flag F lag=1 is in the position of picture, and download pictures are to locally.Suspend browser B1, starts clear The device B2 that lookes at operation.If T1 is existing in browser B2, step 2 is returned to, continues to obtain next new news.
Start newly-increased Domestic News B2-T2 in step 4, browser B2, by the corresponding maintenance of information of T1-M1 into B2-T2, If detecting Flag=1 in text during maintenance, it is inserted into corresponding picture, is saved after completing information input.Suspend clear Look at device B2, starting browser B1 operation obtains next new T1 in browser B1, is then return to step 2 operation.
Step 5 has all existed until B1-T1 in browser B2, while having suspended the operation of browser B1 and B2, waits Return step 1 after longer period of time T starts a new wheel operation.
The reason of waiting longer period of time T is: 1, B1 will not frequent updating Domestic News;2, excessively frequently access B1, It may be considered to attack by B1, to refuse to service.
The present invention has the beneficial effect that:
1, the maintenance real-time of oneself Website News information is significantly improved.
2, it by obtaining the Domestic News of more different web sites, is more enriched before content ratio, attracts the pass of more users Note.
Specific embodiment
Below with reference to embodiment, the invention will be further described.
A kind of method of automatic reprinting related news information, concrete methods of realizing are as follows:
Step 1, starting 2 browser B1 and B2, browser B1 open certain Website page and obtain education information, browser B2 Open oneself website maintenance Domestic News page.
Step 2, the title B1-T1 that appointed sequence number Domestic News on the page are obtained on browser B1, pause behaviour's browser Make B1, start-up operation browser B2.
Step 3, browser B2 open oneself website maintenance Domestic News page, scan for T1 as title, if T1 is not present in browser B2, suspends browser B2, and starting browser B1 operation further clicks on and opens title B1-T1 chain It connects, obtains the detailed information T1-M1 of the page, comprising: source, text.If needing to save line by line there are picture in T1-M1 Text, and it is the discovery that a flag F lag=1 is in the position of picture, and download pictures are to locally.Suspend browser B1, starts clear The device B2 that lookes at operation.If T1 is existing in browser B2, step 2 is returned to, continues to obtain next new news.
Start newly-increased Domestic News B2-T2 in step 4, browser B2, by the corresponding maintenance of information of T1-M1 into B2-T2, If detecting Flag=1 in text during maintenance, it is inserted into corresponding picture, is saved after completing information input.Suspend clear Look at device B2, starting browser B1 operation obtains next new T1 in browser B1, is then return to step 2 operation.
Step 5 has all existed until B1-T1 in browser B2, while having suspended the operation of browser B1 and B2, waits Return step 1 after longer period of time T starts a new wheel operation.
The reason of waiting longer period of time T is: 1, B1 will not frequent updating Domestic News;2, excessively frequently access B1, It may be considered to attack by B1, to refuse to service.

Claims (1)

1. a kind of automatic method for reprinting related news information, it is characterised in that including realizing step as follows:
Step 1, starting 2 browser B1 and B2, browser B1 open certain Website page and obtain education information, and browser B2 is opened Oneself website maintenance Domestic News page;
Step 2, the title B1-T1 that appointed sequence number Domestic News on the page are obtained on browser B1, pause behaviour's browser make B1, Start-up operation browser B2;
Step 3, browser B2 open oneself website maintenance Domestic News page, scan for T1 as title, if T1 exists It is not present in browser B2, suspends browser B2, starting browser B1 operation further clicks on and opens title B1-T1 link, obtains Take the detailed information T1-M1 of the page, comprising: source, text;If needing to save text line by line there are picture in T1-M1, And it is the discovery that a flag F lag=1 is in the position of picture, and download pictures are to locally;Suspend browser B1, starts browser B2 operation;If T1 is existing in browser B2, step 2 is returned to, continues to obtain next new news;
Start newly-increased Domestic News B2-T2, by the corresponding maintenance of information of T1-M1 into B2-T2, maintenance in step 4, browser B2 During if detecting Flag=1 in text, be inserted into corresponding picture, saved after completing information input;Suspend browser B2, starting browser B1 operation, obtains next new T1 in browser B1, is then return to step 2 operation;
Step 5 has all existed until B1-T1 in browser B2, while having suspended the operation of browser B1 and B2, waits longer Return step 1 after a period of time T starts a new wheel operation.
CN201811147968.1A 2018-09-29 2018-09-29 Method for automatically transferring related news information Active CN109344067B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811147968.1A CN109344067B (en) 2018-09-29 2018-09-29 Method for automatically transferring related news information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811147968.1A CN109344067B (en) 2018-09-29 2018-09-29 Method for automatically transferring related news information

Publications (2)

Publication Number Publication Date
CN109344067A true CN109344067A (en) 2019-02-15
CN109344067B CN109344067B (en) 2021-06-15

Family

ID=65307884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811147968.1A Active CN109344067B (en) 2018-09-29 2018-09-29 Method for automatically transferring related news information

Country Status (1)

Country Link
CN (1) CN109344067B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294476A1 (en) * 2005-06-23 2006-12-28 Microsoft Corporation Browsing and previewing a list of items
CN101727486A (en) * 2009-12-04 2010-06-09 中国人民解放军信息工程大学 Web forum information extraction system
US20160202940A1 (en) * 2012-08-17 2016-07-14 Cimpress Schweiz Gmbh System and method for processing multiple mailing services orders of varying quantities and address lists
CN106599075A (en) * 2016-11-14 2017-04-26 武汉斗鱼网络科技有限公司 Statistical method and device for user behavior data
CN107391775A (en) * 2017-08-28 2017-11-24 湖北省楚天云有限公司 A kind of general web crawlers model implementation method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294476A1 (en) * 2005-06-23 2006-12-28 Microsoft Corporation Browsing and previewing a list of items
CN101727486A (en) * 2009-12-04 2010-06-09 中国人民解放军信息工程大学 Web forum information extraction system
US20160202940A1 (en) * 2012-08-17 2016-07-14 Cimpress Schweiz Gmbh System and method for processing multiple mailing services orders of varying quantities and address lists
CN106599075A (en) * 2016-11-14 2017-04-26 武汉斗鱼网络科技有限公司 Statistical method and device for user behavior data
CN107391775A (en) * 2017-08-28 2017-11-24 湖北省楚天云有限公司 A kind of general web crawlers model implementation method and system

Also Published As

Publication number Publication date
CN109344067B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN106096056B (en) One kind being based on distributed public sentiment data real-time collecting method and system
CN109033115B (en) Dynamic webpage crawler system
CN101662493B (en) Data acquiring method, system and server of user access path
CN110177139B (en) Mobile APP data capture method capable of being opened
CN101651707A (en) Method for automatically acquiring user behavior log of network
CN105045887B (en) The system and method for mixed mode cross-domain data interaction
CN104618435B (en) Realize method and the long-distance desktop management system of remote desktop
CA2619313A1 (en) Initial server-side content rendering for client-script web pages
CN105095449A (en) Method for converting HTML webpage to mobile terminal page
CN108829381A (en) Data visualization method and device
CN110768977B (en) Method and system for capturing security vulnerability information
CN103049367A (en) Automatic testing method for software
CN103237048A (en) Real-time warning system and real-time warning method of B/S framework in electrical power system
CN104182430A (en) Method and device for displaying image in text message
CN101676904A (en) Multilingual method of Web application system and device
CN103595742B (en) A method and an apparatus for debugging webpage CSS
CN108804082A (en) A kind of implementation method of plug-in unit JSBridge
CN106201817A (en) Dynamic Display content monitor method, system and device
CN102130953A (en) Embedded web system and interactive method
CN101315629B (en) Downloading method and system for web page dynamic contents
CN109344067A (en) A kind of method of automatic reprinting related news information
CN101556592A (en) Method for intelligently parsing internet content
CN116991402A (en) System for flexibly multiplexing web pages based on low-code development platform
CN103559264B (en) Widget data timely updating method and device
CN106201845A (en) The analog machine real time data of sing on web Service monitors method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 12 / F, building 8, No. 19, Jugong Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province, 310051

Patentee after: ZHEJIANG WANPENG EDUCATION SCIENCE AND TECHNOLOGY STOCK CO.,LTD.

Address before: Room 1406, Hangzhou e-commerce building, 118 Wensan West Road, Xihu District, Hangzhou City, Zhejiang Province, 310013

Patentee before: ZHEJIANG WANPENG EDUCATION SCIENCE AND TECHNOLOGY STOCK CO.,LTD.

CP02 Change in the address of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 12 / F, building 8, No. 19, Jugong Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province, 310051

Patentee after: Zhejiang Wanpeng Digital Intelligence Technology Co.,Ltd.

Address before: 12 / F, building 8, No. 19, Jugong Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province, 310051

Patentee before: ZHEJIANG WANPENG EDUCATION SCIENCE AND TECHNOLOGY STOCK CO.,LTD.

CP01 Change in the name or title of a patent holder