CN109344067B - Method for automatically transferring related news information - Google Patents

Method for automatically transferring related news information Download PDF

Info

Publication number
CN109344067B
CN109344067B CN201811147968.1A CN201811147968A CN109344067B CN 109344067 B CN109344067 B CN 109344067B CN 201811147968 A CN201811147968 A CN 201811147968A CN 109344067 B CN109344067 B CN 109344067B
Authority
CN
China
Prior art keywords
browser
information
news information
page
opens
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.)
Active
Application number
CN201811147968.1A
Other languages
Chinese (zh)
Other versions
CN109344067A (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 Science And Technology Stock 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 Science And Technology Stock Co ltd filed Critical Zhejiang Wanpeng Education Science And Technology Stock 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method for automatically transferring relevant news information. The invention can automatically transfer the news information content specific to a certain website through the script and release the news information content to the website of the user. The invention obviously improves the real-time maintenance of the news information of the own website. By acquiring news information of a plurality of different websites, the content is richer than before, and more users' attention is attracted.

Description

Method for automatically transferring related news information
Technical Field
The invention belongs to an extension of the field of computer automation test, and discloses a method for quickly acquiring news information on a network and transferring the news information to a platform of a user.
Background
Every day in the world, a lot of attention is paid, and a large internet company reports a lot of important things in time because the large internet company has enough manpower resources to do the things specially. Small companies are likely to be slow to update. The information is announced on the website just like the company of the user, but the information is not updated every day, the content is always just a few, and therefore few users browse the information.
In communication with the responsible maintenance personnel, the news information they maintain is found to be basically transferred from the existing news information in the network. And they have a fixed origin. Except that they do not have as much effort to maintain. After viewing the websites provided by the maintenance personnel, the interface layout of the websites is found to be very regular and is very suitable for the operation of the automation tool, so that an idea is born: an automated test script is compiled to replace the manual operation of maintenance personnel.
Disclosure of Invention
The invention aims to provide a method for automatically transferring relevant news information from the view point of company operation. The news information content specific to a certain website is automatically transferred through the script and is released to the website of the user.
The technical scheme adopted by the invention for solving the technical problem comprises the following steps:
step 1, 2 browsers B1 and B2 are started, the browser B1 opens a certain website page to acquire education information, and the browser B2 opens a website maintenance news information page.
And 2, acquiring a title B1-T1 of news information with a designated sequence number on the page on the browser B1, pausing the browser operation B1, and starting the browser operation B2.
Step 3, the browser B2 opens a self website maintenance news information page, searches by using T1 as a title, suspends the browser B2 if T1 does not exist in the browser B2, starts the browser B1 to operate, further clicks and opens a title B1-T1 link, and acquires page detailed information T1-M1, including: out, text. If there are pictures in T1-M1, the text needs to be saved line by line, and the position of the picture is found to be marked with Flag 1, and the picture is downloaded locally. Browser B1 is paused and browser B2 operation is initiated. If T1 already exists in browser B2, go back to step 2 and continue to get the next new news.
And 4, starting newly added news information B2-T2 in the browser B2, maintaining the information corresponding to the T1-M1 in B2-T2, inserting a corresponding picture if Flag is detected to be 1 in the text in the maintenance process, and storing the information after the information is input. Pause browser B2, start browser B1 operation, get the next new T1 in browser B1, and then go back to step 2 operation.
Step 5, until B1-T1 all exist in browser B2, and simultaneously the operations of browsers B1 and B2 are suspended, and after waiting for a longer period of time T, the operation returns to step 1, and a new round of operation is started.
The reason for waiting a longer period of time T is: 1. b1 not update news information frequently; 2. accessing B1 too frequently may be considered an attack by B1, thereby denying service.
The invention has the following beneficial effects:
1. the maintenance real-time performance of the news information of the own website is obviously improved.
2. By acquiring news information of a plurality of different websites, the content is richer than before, and more users' attention is attracted.
Detailed Description
The present invention will be further described with reference to the following examples.
A method for automatically transferring relevant news information is concretely implemented as follows:
step 1, 2 browsers B1 and B2 are started, the browser B1 opens a certain website page to acquire education information, and the browser B2 opens a website maintenance news information page.
And 2, acquiring a title B1-T1 of news information with a designated sequence number on the page on the browser B1, pausing the browser operation B1, and starting the browser operation B2.
Step 3, the browser B2 opens a self website maintenance news information page, searches by using T1 as a title, suspends the browser B2 if T1 does not exist in the browser B2, starts the browser B1 to operate, further clicks and opens a title B1-T1 link, and acquires page detailed information T1-M1, including: out, text. If there are pictures in T1-M1, the text needs to be saved line by line, and the position of the picture is found to be marked with Flag 1, and the picture is downloaded locally. Browser B1 is paused and browser B2 operation is initiated. If T1 already exists in browser B2, go back to step 2 and continue to get the next new news.
And 4, starting newly added news information B2-T2 in the browser B2, maintaining the information corresponding to the T1-M1 in B2-T2, inserting a corresponding picture if Flag is detected to be 1 in the text in the maintenance process, and storing the information after the information is input. Pause browser B2, start browser B1 operation, get the next new T1 in browser B1, and then go back to step 2 operation.
Step 5, until B1-T1 all exist in browser B2, and simultaneously the operations of browsers B1 and B2 are suspended, and after waiting for a longer period of time T, the operation returns to step 1, and a new round of operation is started.
The reason for waiting a longer period of time T is: 1. b1 not update news information frequently; 2. accessing B1 too frequently may be considered an attack by B1, thereby denying service.

Claims (1)

1. A method for automatically transferring relevant news information is characterized by comprising the following implementation steps:
step 1, 2 browsers B1 and B2 are started, the browser B1 opens a certain website page to acquire education information, and the browser B2 opens a website maintenance news information page;
step 2, acquiring a title B1-T1 of news information with a designated sequence number on a page on a browser B1, pausing to operate the browser B1, and starting to operate the browser B2;
step 3, the browser B2 opens a self website maintenance news information page, searches by taking B1-T1 as a title, if the B1-T1 does not exist in the browser B2, suspends the browser B2, starts the browser B1 operation, further clicks and opens a title B1-T1 link, and obtains page detailed information T1-M1, which comprises the following steps: giving out and showing text; if the pictures exist in the T1-M1, the text needs to be stored line by line, the position of the picture is found to be marked with Flag 1, and the picture is downloaded to the local; pausing browser B1, and starting browser B2 operation; if the B1-T1 exists in the browser B2, returning to the step 2, and continuing to acquire a next new piece of news;
step 4, starting newly added news information B2-T2 in the browser B2, maintaining information corresponding to the T1-M1 in B2-T2, inserting a corresponding picture if Flag is detected to be 1 in the text in the maintenance process, and storing the information after the information is input; pausing the browser B2, starting the browser B1 operation, acquiring a next new browser B1-T1 in the browser B1, and returning to the operation in the step 2;
step 5, until B1-T1 all exist in browser B2, and simultaneously the operations of browsers B1 and B2 are suspended, and after waiting for a longer period of time T, the operation returns to step 1, and a new round of operation is started.
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 CN109344067A (en) 2019-02-15
CN109344067B true 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)

Family Cites Families (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
US8941868B2 (en) * 2012-08-17 2015-01-27 Vistaprint Schweiz Gmbh System and method for processing multiple mailing services orders of varying quantities and address lists
CN106599075B (en) * 2016-11-14 2019-07-09 武汉斗鱼网络科技有限公司 A kind of method and device of counting user behavioral 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
CN109344067A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
US20140123033A1 (en) Systems, methods, and apparatuses for implementing a shared session server to enable multiple browser clients to simultaneously view and interact with common web content in a shared browsing session
CN102904912B (en) Method and system for downloading webpage contents
CN102647462B (en) Application acquisition and sending method and device
US20100083098A1 (en) Streaming Information that Describes a Webpage
CN103279507B (en) Webpage spider operational method and system
CN104199851A (en) Method for extracting telephone numbers according to yellow page information and cloud server
CN103729385B (en) Method and device for automatically updating reports
CN103095743A (en) Handling method and system of grey release
CN106326025A (en) Method and device for processing abnormality of browser
RU2015156798A (en) SYSTEM AND METHOD OF PUSH (PUSH) ADVERTISEMENTS BASED ON THE HOME GATEWAY
CN105095407A (en) Method and system for real-time search of application program content
WO2017096967A1 (en) Method and device for self-adaptively displaying web page
CN102110168A (en) Method and device for extending functions of mobile terminal browser
CN103581232A (en) Web page transmission method, web page displaying device and system including device
CN104537496A (en) Intelligent terminal device use condition statistical analysis method and device
CN103488508B (en) Browser working method, browser and terminal equipment
CN109344067B (en) Method for automatically transferring related news information
CN102984266A (en) Interactive processing method and device for data
CN104361130A (en) Method for searching equipment in local area network or appointed network segment in webpage
CN102831179A (en) Webpage processing method and device
CN101227390B (en) Method for implementing priority level for generating order of mapping item for network address conversion
CN103559264B (en) Widget data timely updating method and device
CN101556592A (en) Method for intelligently parsing internet content
CN102130916B (en) Authority control method and device for page content level
CN107577680B (en) Real-time full-text retrieval system based on HBase big data and implementation method thereof

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