CN107562799A - A kind of content reprints the method and device shared - Google Patents
A kind of content reprints the method and device shared Download PDFInfo
- Publication number
- CN107562799A CN107562799A CN201710661324.3A CN201710661324A CN107562799A CN 107562799 A CN107562799 A CN 107562799A CN 201710661324 A CN201710661324 A CN 201710661324A CN 107562799 A CN107562799 A CN 107562799A
- Authority
- CN
- China
- Prior art keywords
- content
- body matter
- chained address
- web page
- module
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The method shared is reprinted the invention discloses a kind of content, is comprised the following steps:First judgment step:Whether the chained address for judging to get is effective chained address, if it is, performing the second judgment step;Second judgment step:Judge whether that the chained address can be opened, if it is, performing content obtainment step;Content obtainment step:Web page contents corresponding to the chained address are obtained, the web page contents include body matter;Forwarding step:The body matter extracted is sent to reprinting end.The device shared is reprinted the invention also discloses a kind of electronic equipment, computer-readable recording medium and content.Present disclosure reprints the method shared and allows user to realize that a key reprints body matter on webpage, more facilitates the operation of user.
Description
Technical field
The present invention relates to a kind of field of computer technology, more particularly to a kind of content to reprint the method and device shared.
Background technology
At present, the existing flow for reprinting content, content first is selected in third party website, reproducting content, then, returns to this
Stand edit box, paste content.Sequence after stickup also manually to article remodifies typesetting.Picture is also required to upload again.Most
After could issue.Operate fairly cumbersome complexity.
But there is following defect in currently existing scheme:
(1) complex operation, reprinting corresponding content needs to spend more time;
(2) or be merely able to reprint original text the page, it is impossible to adapt it to the structure demand of oneself page.
The content of the invention
For overcome the deficiencies in the prior art, an object of the present invention is that providing a kind of content reprints the side shared
Method, it can solve the technical problem that a key reprints body matter.
The second object of the present invention is to provide a kind of electronic equipment, and it, which can solve a key, reprints the technology of body matter and ask
Topic.
The third object of the present invention is to provide a kind of computer-readable recording medium, and it can solve a key and reprint in text
The technical problem of appearance.
The fourth object of the present invention is that providing a kind of content reprints the device shared, and it can solve a key and reprint in text
The technical problem of appearance.
An object of the present invention adopts the following technical scheme that realization:
A kind of content reprints the method shared, and comprises the following steps:
First judgment step:Judge whether the chained address that gets is effective chained address, if it is, performing the
Two judgment steps;
Second judgment step:Judge whether that the chained address can be opened, if it is, performing content obtainment step;
Content obtainment step:Web page contents corresponding to the chained address are obtained, the web page contents include body matter;
Forwarding step:The body matter extracted is sent to reprinting end.
Further, following sub-step is also included between content obtainment step and forwarding step:
Compression step:Web page contents are compressed to obtain compressed content and upload onto the server;
Depressurization steps:Body matter is obtained, the body matter is that server obtains to compressed content decompression extraction.
Further, the 3rd judgment step is also included after depressurization steps:Judge whether body matter extracts success, such as
Fruit is then to perform forwarding step, if it is not, then chained address is sent to server.
The second object of the present invention adopts the following technical scheme that realization:
A kind of electronic equipment, including memory, processor and storage can be run on a memory and on a processor
Computer program, following steps are realized during the computing device described program:
First judgment step:Judge whether the chained address that gets is effective chained address, if it is, performing the
Two judgment steps;
Second judgment step:Judge whether that the chained address can be opened, if it is, performing content obtainment step;
Content obtainment step:Web page contents corresponding to the chained address are obtained, the web page contents include body matter;
Forwarding step:The body matter extracted is sent to reprinting end.
Further, following sub-step is also included between content obtainment step and forwarding step:
Compression step:Web page contents are compressed to obtain compressed content and upload onto the server;
Depressurization steps:Body matter is obtained, the body matter is that server obtains to compressed content decompression extraction.
Further, the 3rd judgment step is also included after depressurization steps:Judge whether body matter extracts success, such as
Fruit is then to perform forwarding step, if it is not, then chained address is sent to server.
The third object of the present invention adopts the following technical scheme that realization:
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor
The as above method described by any one is realized during row.
The fourth object of the present invention adopts the following technical scheme that realization:
A kind of content reprints the device shared, including with lower module:
First judge module:Whether the chained address for judging to get is effective chained address, if it is, holding
The judge module of row second;
Second judge module:For judging whether that the chained address can be opened, if it is, performing content obtaining mould
Block;
Content obtaining module:For obtaining web page contents corresponding to the chained address, the web page contents are included in text
Hold;
Sending module:For the body matter extracted to be sent to reprinting end.
Further, following submodule is also included between content acquisition module and sending module:
Compression module:For web page contents are compressed with compressed content and upload onto the server;
Decompression module:For obtaining body matter, the body matter is that server obtains to compressed content decompression extraction
's.
Further, the 3rd judge module is also included after decompression module:For judging whether body matter is extracted into
Work(, if it is, sending module is performed, if it is not, then chained address is sent to server.
Compared with prior art, the beneficial effects of the present invention are:
Present disclosure reprints the method shared and allows user to realize that a key reprints body matter on webpage, more
Facilitate the operation of user.
Brief description of the drawings
Fig. 1 is the flow chart that present disclosure reprints the method shared;
Fig. 2 is the structure chart that present disclosure reprints the device shared.
Embodiment
Below, with reference to accompanying drawing and embodiment, the present invention is described further, it is necessary to which explanation is, not
Under the premise of afoul, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination
Example.
Embodiment one:
As shown in figure 1, present embodiments providing a kind of content reprints the method shared, comprise the following steps:
S1:Whether the chained address for judging to get is effective chained address, if it is, performing step S2;This
Step is primarily to obtain the address for the body matter for needing to replicate, it is necessary first to by canonical match cognization URL addresses, if
For effective connection, automatically user can be helped to paste at address input box, otherwise without operation, or also a kind of mode
It is direct replicate at webpage link address to address input box;
S2:Judge whether that the chained address can be opened, if it is, performing step S3;It is main in the present embodiment logical
Webview is crossed to open chained address, so as to open Webpage, is passed through after step S1 judges it for regular link
Webview opens the page;If informal link, then send and prompt accordingly to user terminal to remind the user chained address
Problem be present or send and reprint failure to user terminal;
S3:Web page contents corresponding to the chained address are obtained, the web page contents include body matter;The step passes through
JavaScript obtains the content of whole webpage, and user protects the page having already turned on by JavaScript after opening the page
It is stored to local.Step S2 and step S3 is primarily intended to solve following problem:1st, some websites are to need user's registration to log in
It can just check to obtain afterwards, if user does not register login, can't see the content of correlation;2nd, some websites are to need to climb over the walls
It can conduct interviews;3rd, the web site url having be can do it is secondary redirect, if by webview open avoid because secondary redirect make
Into the problem of can not extracting content;4th, user can be allowed to determine whether Current Content needs the content extracted.By step S2 and
Step S3 is effectively avoided the problem of can not obtaining body matter;
Also include step S31 after step s 3:Web page contents are compressed to obtain compressed content and be uploaded to service
Device;
S32:Body matter is obtained, the body matter is that server obtains to compressed content decompression extraction;Mainly
By way of Gzip compression/decompressions, what it is due to preservation is the full page that has already turned on, so content can be relatively more, so
Need to be compressed by Gzip, by full page content compression to original 40%, increase data transmission bauds, reduce user
Upload the flow used;After client is compressed with Gzip, transferring content carries again after being decompressed to server, server to content
Take text.
S33:Judge whether body matter extracts success, if it is, step S4 is performed, if it is not, then by chained address
Send to server;Carry out needing to set corresponding extracting rule when text extraction, effectively to extract it, to keep away
It is hands-free to get substantial amounts of useless information, and the information extracted will be arranged accordingly, so that the content reprinted
It can directly transmit and play reprinting quickly, and reprint the problem of content arrangement is attractive in appearance;Except in server end to body matter
Outside being extracted, extraction and analysis can also be carried out to corresponding content in client;
S4:The body matter extracted is sent to reprinting end.Content of pages is extracted after obtaining body matter, sent out
It is sent to reprint and is confirmed whether to reprint to user at end, the reprinting end can be an editing machine either web page contents, more excellent
Selection of land mode is an editing machine, user can be caused to carry out changing and processing accordingly to its content again, so that it makes
With more convenient.If, it is necessary to which chained address corresponding with body matter is sent to clothes when extracting body matter failure
Business device, can cause technical staff to optimize text extracting rule, and the user that thereby may be ensured that next time has same requirements can carry
Take corresponding content.
Embodiment two:
Embodiment two discloses a kind of electronic equipment, and the electronic equipment includes processor, memory and program, wherein locating
One or more can be used by managing device and memory, and program is stored in memory, and is configured to by computing device,
During the computing device program, realize that the content of embodiment one reprints the method shared.The electronic equipment can be that hand is mechanical, electrical
The a series of electronic equipment of brain, tablet personal computer etc..
Embodiment three:
Embodiment three discloses a kind of readable computer-readable storage medium, and the storage medium is used for storage program, and should
When program is executed by processor, realize that the content of embodiment one reprints the method shared.
Example IV:
As shown in Fig. 2 the device shared is reprinted present invention also offers a kind of content, including with lower module:
First judge module:Whether the chained address for judging to get is effective chained address, if it is, holding
The judge module of row second;
Second judge module:For judging whether that the chained address can be opened, if it is, performing content obtaining mould
Block;
Content obtaining module:For obtaining web page contents corresponding to the chained address, the web page contents are included in text
Hold;Also include following submodule between content acquisition module and sending module:
Compression module:For web page contents are compressed with compressed content and upload onto the server;
Decompression module:For obtaining body matter, the body matter is that server obtains to compressed content decompression extraction
's;
3rd judge module:For judging whether body matter extracts success, if it is, sending module is performed, if
It is no, then chained address is sent to server;
Sending module:For the body matter extracted to be sent to reprinting end.
Above-mentioned embodiment is only the preferred embodiment of the present invention, it is impossible to the scope of protection of the invention is limited with this,
The change and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention
Claimed scope.
Claims (10)
1. a kind of content reprints the method shared, it is characterised in that comprises the following steps:
First judgment step:Whether the chained address for judging to get is effective chained address, is sentenced if it is, performing second
Disconnected step;
Second judgment step:Judge whether that the chained address can be opened, if it is, performing content obtainment step;
Content obtainment step:Web page contents corresponding to the chained address are obtained, the web page contents include body matter;
Forwarding step:The body matter extracted is sent to reprinting end.
2. content as claimed in claim 1 reprints the method shared, it is characterised in that in content obtainment step and forwarding step
Between also include following sub-step:
Compression step:Web page contents are compressed to obtain compressed content and upload onto the server;
Depressurization steps:Body matter is obtained, the body matter is that server obtains to compressed content decompression extraction.
3. content as claimed in claim 2 reprints the method shared, it is characterised in that also includes the 3rd after depressurization steps
Judgment step:Judge whether body matter extracts success, if it is, forwarding step is performed, if it is not, then chained address is sent out
Deliver to server.
4. a kind of electronic equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, it is characterised in that realize following steps during the computing device described program:
First judgment step:Whether the chained address for judging to get is effective chained address, is sentenced if it is, performing second
Disconnected step;
Second judgment step:Judge whether that the chained address can be opened, if it is, performing content obtainment step;
Content obtainment step:Web page contents corresponding to the chained address are obtained, the web page contents include body matter;
Forwarding step:The body matter extracted is sent to reprinting end.
5. electronic equipment as claimed in claim 4, it is characterised in that also include between content obtainment step and forwarding step
Following sub-step:
Compression step:Web page contents are compressed to obtain compressed content and upload onto the server;
Depressurization steps:Body matter is obtained, the body matter is that server obtains to compressed content decompression extraction.
6. electronic equipment as claimed in claim 5, it is characterised in that also include the 3rd judgment step after depressurization steps:
Judge whether body matter extracts success, if it is, forwarding step is performed, if it is not, then chained address is sent to service
Device.
7. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that:The computer program quilt
The method as described in claim 1-3 any one is realized during computing device.
8. a kind of content reprints the device shared, it is characterised in that including with lower module:
First judge module:For judging whether the chained address that gets is effective chained address, if it is, performing the
Two judge modules;
Second judge module:For judging whether that the chained address can be opened, if it is, performing content obtaining module;
Content obtaining module:For obtaining web page contents corresponding to the chained address, the web page contents include body matter;
Sending module:For the body matter extracted to be sent to reprinting end.
9. content as claimed in claim 8 reprints the device shared, it is characterised in that in content acquisition module and sending module
Between also include following submodule:
Compression module:For web page contents are compressed with compressed content and upload onto the server;
Decompression module:For obtaining body matter, the body matter is that server obtains to compressed content decompression extraction.
10. content as claimed in claim 9 reprints the device shared, it is characterised in that also includes the after decompression module
Three judge modules:For judging whether body matter extracts success, if it is, sending module is performed, if it is not, then will link
Address is sent to server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710661324.3A CN107562799A (en) | 2017-08-04 | 2017-08-04 | A kind of content reprints the method and device shared |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710661324.3A CN107562799A (en) | 2017-08-04 | 2017-08-04 | A kind of content reprints the method and device shared |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107562799A true CN107562799A (en) | 2018-01-09 |
Family
ID=60975014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710661324.3A Pending CN107562799A (en) | 2017-08-04 | 2017-08-04 | A kind of content reprints the method and device shared |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107562799A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804615A (en) * | 2018-05-30 | 2018-11-13 | 维沃移动通信(深圳)有限公司 | A kind of sharing method and server |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101408898A (en) * | 2008-11-07 | 2009-04-15 | 北大方正集团有限公司 | Method and device for extracting web page text |
CN103116609A (en) * | 2013-01-18 | 2013-05-22 | 北京奇虎科技有限公司 | Server, client-side, system and method of achieving page load of browser |
CN103699591A (en) * | 2013-12-11 | 2014-04-02 | 湖南大学 | Page body extraction method based on sample page |
CN104077323A (en) * | 2013-03-29 | 2014-10-01 | 中国移动通信集团公司 | Method and device for converting web page content to multimedia messages |
-
2017
- 2017-08-04 CN CN201710661324.3A patent/CN107562799A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101408898A (en) * | 2008-11-07 | 2009-04-15 | 北大方正集团有限公司 | Method and device for extracting web page text |
CN103116609A (en) * | 2013-01-18 | 2013-05-22 | 北京奇虎科技有限公司 | Server, client-side, system and method of achieving page load of browser |
CN104077323A (en) * | 2013-03-29 | 2014-10-01 | 中国移动通信集团公司 | Method and device for converting web page content to multimedia messages |
CN103699591A (en) * | 2013-12-11 | 2014-04-02 | 湖南大学 | Page body extraction method based on sample page |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804615A (en) * | 2018-05-30 | 2018-11-13 | 维沃移动通信(深圳)有限公司 | A kind of sharing method and server |
CN108804615B (en) * | 2018-05-30 | 2021-12-28 | 维沃移动通信(深圳)有限公司 | Sharing method and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103078868B (en) | The application process of a kind of Quick Response Code and system | |
CN106060655A (en) | Video processing method, server and terminal | |
CN104854848B (en) | The processing method of terminal and contact head image | |
CN102609401A (en) | Webpage annotation method | |
CN107358402A (en) | A kind of with no paper meeting office device of LAN and its method of work | |
CN106357697A (en) | Multi-terminal page synchronizing method based on WebSocket attribute synchronization | |
CN105469335A (en) | PC front end based learning system | |
CN101470729B (en) | Web page picture displaying method and device | |
CN105391587B (en) | The Samba configuring management methods and system of a kind of network equipment | |
CN106789353A (en) | The method and system of orientation problem between client and service end | |
CN100555285C (en) | Web page information synergistic browsing system and method | |
CN106095743A (en) | A kind of RichText Edition method and device | |
CN108683694A (en) | A kind of information synergism processing method, system and server | |
CN108039173A (en) | Voice messaging input method, mobile terminal, system and readable storage medium storing program for executing | |
CN103107979B (en) | Annotation processing method and device for layout files | |
CN104461537B (en) | A kind of multi-service integrated system based on browser kernel | |
CN206147770U (en) | Classroom management equipment of registering based on two -dimensional code and fingerprint identification | |
CN107562799A (en) | A kind of content reprints the method and device shared | |
CN104601358B (en) | A kind of matching process and device realized between acquisition system and analysis system | |
CN108880992A (en) | Data transmission method, computer equipment and storage medium | |
CN107066528A (en) | A kind of network information annotation method | |
CN208722177U (en) | Cloud printing equipment | |
US20130300818A1 (en) | Interactive video platform system and method for the same | |
CN108183941A (en) | Terminal medical imaging remote synchronization method, apparatus and computer readable storage medium | |
CN104580521A (en) | Preloading method and system for client to smoothly access to server data |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180109 |