CN105550165A - Plug-in and method capable of importing webpage article into webpage text editor - Google Patents

Plug-in and method capable of importing webpage article into webpage text editor Download PDF

Info

Publication number
CN105550165A
CN105550165A CN201510981516.3A CN201510981516A CN105550165A CN 105550165 A CN105550165 A CN 105550165A CN 201510981516 A CN201510981516 A CN 201510981516A CN 105550165 A CN105550165 A CN 105550165A
Authority
CN
China
Prior art keywords
article
link
webpage
picture
plug
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.)
Pending
Application number
CN201510981516.3A
Other languages
Chinese (zh)
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.)
SHENZHEN 80S NETWORK TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN 80S NETWORK 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 SHENZHEN 80S NETWORK TECHNOLOGY Co Ltd filed Critical SHENZHEN 80S NETWORK TECHNOLOGY Co Ltd
Priority to CN201510981516.3A priority Critical patent/CN105550165A/en
Publication of CN105550165A publication Critical patent/CN105550165A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of computer programs, in particular to a plug-in and a method capable of importing a webpage article into a webpage text editor. The plug-in comprises a link input module, an HTML source code analysis module and an article generation module. The link input module is used for a user to input a webpage article link. The HTML source code analysis module is used for analyzing an HTML source code of the webpage article link and extracting the content of the webpage article from the HTML source code. The article generation module is used for splicing the extracted content into the article according to the layout of the webpage article and importing the article into the webpage text editor. Compared with the prior art, the plug-in and the method have the characteristics that the webpage article can be imported, and the content of the article can be imported in other webpage text editor only by editing and publishing the article once, so that the time and labor are saved, the layout format of an original article is not destroyed, and the working efficiency of webpage text editing is improved.

Description

Webpage article can be imported plug-in unit and the method for web page text editing machine
Technical field
The present invention relates to technical field of computer programs, particularly relate to a kind of plug-in unit and the method that webpage article can be imported web page text editing machine.
Background technology
Micro-letter public platform is the new service platform providing business service and subscriber management capabilities to individual, enterprise and tissue; for the official documents and correspondence editorial staff of the micro-letter platform of responsible operation; usually, first can deliver webpage article in runed micro-letter public number, but also more or less also have some other publicity Extension Software Platform and also need dispatch.When other publicity Extension Software Platforms of non-micro-letter, need again again with the web page text editing machine that these platforms use being edited adjustment article, so not only consuming time but also require great effort.If directly come by the article copy in public number, form can not fully mate, and also having the picture in official documents and correspondence content likely cannot show because of being the outer picture in station, producing series of problems thus.
Summary of the invention
Technical matters to be solved by this invention is, provides a kind of plug-in unit and the method that webpage article can be imported web page text editing machine, and comprises the web page text editing machine of this plug-in unit, to realize webpage article to import web page text editing machine.The present invention is achieved in that
Webpage article can be imported a plug-in unit for web page text editing machine, comprise:
Link load module, for inputting the link of webpage article for user;
Html source code analysis module, for analyzing the html source code of described webpage article link, and extracts the content of described webpage article from described html source code;
Article generation module, for the content of extraction is spliced into article by the typesetting of described webpage article, and imports described article in web page text editing machine.
Further, described html source code analysis module comprises picture analyzing submodule, described picture analyzing submodule is used for the link extracting described picture when the content of described webpage article comprises picture from described html source code, and using the link of described picture as the image link in spliced article, or according to the link of described picture, described picture is downloaded to home server, and using the link of described picture in described home server as the image link in spliced article, or according to the link of described picture, described picture is downloaded to high in the clouds, and using the link of described picture in described high in the clouds as the image link in spliced article.
Further, described link load module has link inputting interface, described link inputting interface be provided with link input field and import button, described link input field is used for inputting the link of webpage article for user, after the link of input webpage article, described importing button will run successively automatically at clicked rear described html source code analysis module and article generation module.
Further, described webpage article is micro-letter public number article.
A kind of web page text editing machine, comprise any one plug-in unit as above, described plug-in unit embeds in described web page text editing machine, has the icon corresponding with described plug-in unit at the interface of described web page text editing machine, can start described plug-in unit by clicking this icon.
Further, described link inputting interface will be shown after starting described plug-in unit.
Webpage article is imported a method for web page text editing machine, comprise the steps:
Step 1: the webpage article link receiving user's input;
Step 2: the html source code analyzing the link of described webpage article, and from described html source code, extract the content of described webpage article;
Step 3: the content of extraction is spliced into article by the typesetting of described webpage article, and described article is imported in web page text editing machine.
Further, when the content of described webpage article comprises picture, described step 2 also comprises:
The link of described picture is extracted from described html source code, and using the link of described picture as the image link in spliced article, or
Described picture is downloaded to home server by the link according to described picture, and using the link of described picture in described home server as the image link in spliced article, or
Described picture is downloaded to high in the clouds by the link according to described picture, and using the link of described picture in described high in the clouds as the image link in spliced article.
Further, described webpage article is micro-letter public number article.
The present invention by analyzing the html source code of the link of webpage article to be imported, and therefrom extracts the content of webpage article, then content is imported in web page text editing machine.Compared with prior art, the present invention can import webpage article, reaches only to edit on website to deliver an article, just the content of this article can be imported in other web page text editing machines, time saving and energy saving, also can not destroy the page format of original text chapter, improve web page text editing efficiency.
Accompanying drawing explanation
Fig. 1: the plug-in unit composition schematic diagram that webpage article can be imported web page text editing machine that the embodiment of the present invention provides;
Fig. 2: the further composition schematic diagram of above-mentioned plug-in unit;
Fig. 3: method flow schematic diagram webpage article being imported web page text editing machine that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.
As shown in Figure 1, the present invention provide firstly a kind of plug-in unit that webpage article can be imported web page text editing machine, comprises link load module 1, html source code analysis module 2 and article generation module 3.Webpage article can be any webpage article comprising micro-letter public number article.Wherein:
Link load module 1 is for inputting the link of webpage article for user.The html source code that html source code analysis module 2 links for analyzing web page article, and from html source code, extract the content of webpage article.Article for the content of extraction is spliced into article by the typesetting of webpage article, and imports in web page text editing machine by article generation module 3.
Link load module 1 has link inputting interface, link inputting interface be provided with link input field and import button, link input field is used for inputting the link of webpage article for user, after the link of input webpage article, click html source code analysis module 2 and article generation module 3 after importing button will automatically run successively, thus realize a key (namely click import button) and import webpage article to web page text editing machine, raising web page text editorial efficiency further.
The content of the webpage article that html source code analysis module 2 extracts at least comprises the word content such as article title and text.As shown in Figure 2, be the situation of reply when comprising picture in webpage article, html source code analysis module 2 also comprises picture analyzing submodule 201.Picture analyzing submodule 201 for extracting the link of picture from html source code when the content of webpage article comprises picture.After extracting the link of picture, next picture analyzing submodule 201 has three kinds of processing modes:
1, using the link of picture as the image link in spliced article;
2, according to the link of picture, picture is downloaded to home server 4, and using the link of picture in home server 4 as the image link in spliced article;
3, according to the link of picture, picture is downloaded to high in the clouds 5, and using picture beyond the clouds 5 link as the image link in spliced article.
In above three kinds of modes, which kind of mode that adopts picture analyzing submodule 201 depends on whether the website that spliced article is applied has anything to limit for image credit, if not restriction, the 1st kind of mode or the 3rd kind of mode can be adopted, adopt the 2nd kind of mode if restricted, select whether to be downloaded to by picture according to actual conditions the resource burden that this locality or high in the clouds 5 can alleviate home server 4 or high in the clouds 5.
Extract the link of picture from html source code before, picture analyzing submodule 201 can first detect in webpage article whether comprise picture, and detection method can detect according to the form for representing picture.
Meanwhile, html source code analysis module 2 also can comprise video analysis submodule and audio analysis submodule further, can detect in webpage article whether comprise video or audio frequency respectively, and detection method can detect according to the form for representing audio or video.
If detect in article have video or audio frequency, then extract video link or audio url by video analysis submodule or audio analysis submodule.Video analysis submodule and audio analysis submodule can carry out subsequent treatment to video link or audio url respectively, and processing mode can refer to the processing mode to image link.
Present invention also offers a kind of web page text editing machine, this web page text editing machine comprises above-mentioned plug-in unit.Above-mentioned plug-in unit in the form embedded web page text editor of computer socket, can form the web page text editing machine that can import webpage article.The interface of web page text editing machine has the icon corresponding with plug-in unit, can start plug-in unit by clicking this icon.After starting plug-in unit, by display link inputting interface, user is by the link of link inputting interface input webpage article, and the mode of input comprises manually input or pastes.
With the principle of work of above-mentioned plug-in unit in like manner, present invention also offers a kind of method webpage article being imported web page text editing machine, webpage article wherein can be any webpage article comprising micro-letter public number article.As shown in Figure 3, the method comprises following flow process:
Step S1: the webpage article link receiving user's input;
Step S2: the html source code of analyzing web page article link, and from html source code, extract the content of webpage article;
Step S3: the content of extraction is spliced into article by the typesetting of webpage article, and article is imported in web page text editing machine.
When the content of webpage article comprises picture, step 2 also comprises:
The link of picture is extracted from html source code, and using the link of picture as the image link in spliced article, or
Picture is downloaded to home server 4 by the link according to picture, and using the link of picture in home server 4 as the image link in spliced article, or
Picture is downloaded to high in the clouds 5 by the link according to picture, and using picture beyond the clouds 5 link as the image link in spliced article.
The specific works principle of said method and the principle of work of above-mentioned plug-in unit in like manner, do not repeat them here.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. webpage article can be imported a plug-in unit for web page text editing machine, it is characterized in that, comprising:
Link load module, for inputting the link of webpage article for user;
Html source code analysis module, for analyzing the html source code of described webpage article link, and extracts the content of described webpage article from described html source code;
Article generation module, for the content of extraction is spliced into article by the typesetting of described webpage article, and imports described article in web page text editing machine.
2. plug-in unit as claimed in claim 1, it is characterized in that, described html source code analysis module comprises picture analyzing submodule, described picture analyzing submodule is used for the link extracting described picture when the content of described webpage article comprises picture from described html source code, and using the link of described picture as the image link in spliced article, or according to the link of described picture, described picture is downloaded to home server, and using the link of described picture in described home server as the image link in spliced article, or according to the link of described picture, described picture is downloaded to high in the clouds, and using the link of described picture in described high in the clouds as the image link in spliced article.
3. plug-in unit as claimed in claim 1, it is characterized in that, described link load module has link inputting interface, described link inputting interface be provided with link input field and import button, described link input field is used for inputting the link of webpage article for user, after the link of input webpage article, described importing button will run successively automatically at clicked rear described html source code analysis module and article generation module.
4. plug-in unit as claimed in claim 1, it is characterized in that, described webpage article is micro-letter public number article.
5. a web page text editing machine, it is characterized in that, comprise plug-in unit as claimed in claim 1 or 2, described plug-in unit embeds in described web page text editing machine, at the interface of described web page text editing machine, there is the icon corresponding with described plug-in unit, described plug-in unit can be started by clicking this icon.
6. web page text editing machine as claimed in claim 4, is characterized in that, will show described link inputting interface after starting described plug-in unit.
7. webpage article is imported a method for web page text editing machine, it is characterized in that, comprise the steps:
Step 1: the webpage article link receiving user's input;
Step 2: the html source code analyzing the link of described webpage article, and from described html source code, extract the content of described webpage article;
Step 3: the content of extraction is spliced into article by the typesetting of described webpage article, and described article is imported in web page text editing machine.
8. method as claimed in claim 7, it is characterized in that, when the content of described webpage article comprises picture, described step 2 also comprises:
The link of described picture is extracted from described html source code, and using the link of described picture as the image link in spliced article, or
Described picture is downloaded to home server by the link according to described picture, and using the link of described picture in described home server as the image link in spliced article, or
Described picture is downloaded to high in the clouds by the link according to described picture, and using the link of described picture in described high in the clouds as the image link in spliced article.
9. method as claimed in claim 7, it is characterized in that, described webpage article is micro-letter public number article.
CN201510981516.3A 2015-12-23 2015-12-23 Plug-in and method capable of importing webpage article into webpage text editor Pending CN105550165A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510981516.3A CN105550165A (en) 2015-12-23 2015-12-23 Plug-in and method capable of importing webpage article into webpage text editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510981516.3A CN105550165A (en) 2015-12-23 2015-12-23 Plug-in and method capable of importing webpage article into webpage text editor

Publications (1)

Publication Number Publication Date
CN105550165A true CN105550165A (en) 2016-05-04

Family

ID=55829354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510981516.3A Pending CN105550165A (en) 2015-12-23 2015-12-23 Plug-in and method capable of importing webpage article into webpage text editor

Country Status (1)

Country Link
CN (1) CN105550165A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780663A (en) * 2016-11-22 2017-05-31 维沃移动通信有限公司 A kind of processing method and processing device of Form board frame word
CN106911794A (en) * 2017-03-23 2017-06-30 福建天泉教育科技有限公司 The method and system that a kind of picture is stored automatically
CN108270812A (en) * 2016-12-30 2018-07-10 深圳市青果乐园网络科技有限公司 For obtaining method and system of the article publication with situation of sharing
CN110119289A (en) * 2019-04-11 2019-08-13 北京字节跳动网络技术有限公司 A kind of online page method of attaching, device, medium and electronic equipment
CN110781418A (en) * 2018-07-30 2020-02-11 上海哔哩哔哩科技有限公司 Webpage text editing method and device based on URL identification and storage medium
CN111104619A (en) * 2018-10-25 2020-05-05 青岛海信移动通信技术股份有限公司 Method for collecting articles and mobile terminal
CN112667581A (en) * 2020-12-07 2021-04-16 贝壳技术有限公司 File link processing method, client and server for text editing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094135A (en) * 2006-06-23 2007-12-26 腾讯科技(深圳)有限公司 Method and system for extracting information of content in Internet
CN102270206A (en) * 2010-06-03 2011-12-07 北京迅捷英翔网络科技有限公司 Method and device for capturing valid web page contents
CN102609456A (en) * 2012-01-12 2012-07-25 凤凰在线(北京)信息技术有限公司 System and method for real-time and smart article capturing
US20120260161A1 (en) * 2009-12-30 2012-10-11 Taggy, Inc. Method for classifying and organizing content in related web pages and freely reconstructing and displaying the content
CN103488484A (en) * 2013-09-24 2014-01-01 长沙裕邦软件开发有限公司 Software implementation method and system for online editor
CN103699591A (en) * 2013-12-11 2014-04-02 湖南大学 Page body extraction method based on sample page
CN104866517A (en) * 2014-12-30 2015-08-26 智慧城市信息技术有限公司 Method and device for capturing webpage content

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094135A (en) * 2006-06-23 2007-12-26 腾讯科技(深圳)有限公司 Method and system for extracting information of content in Internet
US20120260161A1 (en) * 2009-12-30 2012-10-11 Taggy, Inc. Method for classifying and organizing content in related web pages and freely reconstructing and displaying the content
CN102270206A (en) * 2010-06-03 2011-12-07 北京迅捷英翔网络科技有限公司 Method and device for capturing valid web page contents
CN102609456A (en) * 2012-01-12 2012-07-25 凤凰在线(北京)信息技术有限公司 System and method for real-time and smart article capturing
CN103488484A (en) * 2013-09-24 2014-01-01 长沙裕邦软件开发有限公司 Software implementation method and system for online editor
CN103699591A (en) * 2013-12-11 2014-04-02 湖南大学 Page body extraction method based on sample page
CN104866517A (en) * 2014-12-30 2015-08-26 智慧城市信息技术有限公司 Method and device for capturing webpage content

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LANCE2008: "网页内容,图片及连接抓取通用类", 《GOOGLE》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780663A (en) * 2016-11-22 2017-05-31 维沃移动通信有限公司 A kind of processing method and processing device of Form board frame word
CN106780663B (en) * 2016-11-22 2020-02-21 维沃移动通信有限公司 Template frame character processing method and device
CN108270812A (en) * 2016-12-30 2018-07-10 深圳市青果乐园网络科技有限公司 For obtaining method and system of the article publication with situation of sharing
CN108270812B (en) * 2016-12-30 2021-03-23 深圳市青果乐园网络科技有限公司 Method and system for acquiring article publishing and sharing conditions
CN106911794A (en) * 2017-03-23 2017-06-30 福建天泉教育科技有限公司 The method and system that a kind of picture is stored automatically
CN106911794B (en) * 2017-03-23 2020-06-23 福建天泉教育科技有限公司 Method and system for automatically storing picture
CN110781418A (en) * 2018-07-30 2020-02-11 上海哔哩哔哩科技有限公司 Webpage text editing method and device based on URL identification and storage medium
CN111104619A (en) * 2018-10-25 2020-05-05 青岛海信移动通信技术股份有限公司 Method for collecting articles and mobile terminal
CN111104619B (en) * 2018-10-25 2023-09-26 青岛海信移动通信技术有限公司 Method for collecting articles and mobile terminal
CN110119289A (en) * 2019-04-11 2019-08-13 北京字节跳动网络技术有限公司 A kind of online page method of attaching, device, medium and electronic equipment
CN110119289B (en) * 2019-04-11 2022-07-22 北京字节跳动网络技术有限公司 Online page pasting method, device, medium and electronic equipment
CN112667581A (en) * 2020-12-07 2021-04-16 贝壳技术有限公司 File link processing method, client and server for text editing

Similar Documents

Publication Publication Date Title
CN105550165A (en) Plug-in and method capable of importing webpage article into webpage text editor
CN104461484B (en) The implementation method and device of front-end template
CN103389895A (en) Method and system for generating front end page
CN102591880B (en) Information providing method and device
CN101526942A (en) Component implementation technology for automatically generating dynamic web page on line in real time
CN103176969A (en) Method and device for sharing microblogging information
CN104866512A (en) Method, device and system for extracting webpage content
CN104049978A (en) Method and system for achieving visualized edition and combination of codes
CN106951270B (en) Code processing method, system and server
CN104899184A (en) Character processing method, device and system
CN109445794B (en) Page construction method and device
CN105808587A (en) Method and system for embedding information into webpage and gateway device
CN113377653B (en) Method and device for generating test cases
CN104866527A (en) Dynamic webpage template matching method and device
CN112016290A (en) Automatic document typesetting method, device, equipment and storage medium
CN105550179A (en) Webpage collection method and browser plug-in
CN110232726A (en) The generation method and device of intention material
CN105260459A (en) Search method and apparatus
CN104899212A (en) Webpage display method, server and system
CN103699644A (en) Information release method, information release system and user terminal
CN108763279B (en) Webpage data distributed template acquisition method and system
CN106934047B (en) method and device for showing posting content in applet
CN104077323A (en) Method and device for converting web page content to multimedia messages
CN103678957A (en) Method, device and equipment for generating picture information and obtaining identity coded information
CN103136166B (en) Method and device for font determination

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160504

RJ01 Rejection of invention patent application after publication