CN104679862A - Code processing method and device used for webpage - Google Patents

Code processing method and device used for webpage Download PDF

Info

Publication number
CN104679862A
CN104679862A CN201510091605.0A CN201510091605A CN104679862A CN 104679862 A CN104679862 A CN 104679862A CN 201510091605 A CN201510091605 A CN 201510091605A CN 104679862 A CN104679862 A CN 104679862A
Authority
CN
China
Prior art keywords
code
webpage
web page
website
page files
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
CN201510091605.0A
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201510091605.0A priority Critical patent/CN104679862A/en
Publication of CN104679862A publication Critical patent/CN104679862A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a code processing method and device used for a webpage. The method comprises the following steps: obtaining file address information of a website of a webpage of a code to be mounted of a user; accessing a webpage file of the code to be mounted according to the file address information and recording path information of the webpage file; downloading the webpage file according to the path information of the webpage file; finding a code adding label character in the downloaded webpage file; and adding the code to be mounted into the downloaded webpage file according to the code adding label character to finish the code updating of the webpage file. With the adoption of the method and the device, the code mounting efficiency can be improved, the code maintenance cost is reduced, and the technical requirements on a software demand side are reduced.

Description

A kind of code process method and apparatus for webpage
Technical field
The present invention relates to internet arena, specifically, relate to a kind of code process method and apparatus for webpage.
Background technology
More existing communication softwares (such as, Baidu Shang Qiao, Baidu's statistics or similar software) can be downloaded by software requirement side, and the Website page of this software requirement side oneself is linked up by these online consultation of software receipt netizen.But, when software requirement side uses communication software, need oneself on its Website page, manually to add the code of these software products.The factor restrictions such as the comparatively numerous and diverse or software requirement side's self-technique level of the web page files due to website, software requirement side, such code process scheme, the efficiency that code is installed is low, maintenance cost is high, and code update also cannot ensure timely installation.
Summary of the invention
For solving above-mentioned technical matters, the invention provides a kind of code process method and apparatus for webpage, the method is by obtaining the address information of the webpage affiliated web site of code to be installed, and the web page files corresponding according to address acquisition of information, search code interpolation identification character and carry out code interpolation, the installation of automatic completion code, significantly improve the efficiency that code is installed, reduce the cost of code maintenance, also reduce the technical requirement to software requirement side.
According to the first aspect of embodiment of the present invention, provide a kind of code process method for webpage, the method can comprise:
Obtain the file address information of the webpage affiliated web site of the code to be installed of user;
The web page files of code to be installed according to the message reference of described file address, records the routing information of described web page files;
Download described web page files according to described routing information, in downloaded web page files, search code add identification character, add identification character according to described code and code to be installed is added into downloaded web page files, to complete the code update of web page files.
In certain embodiments of the present invention, the web page files of described code to be installed can comprise one or more web page files of following suffix name: html, htm, shtml, xhtml, dhtml, asp, aspx, jsp, php.
In certain embodiments of the present invention, the web page files of the described code to be installed of described access can be performed by multithreading.
In certain embodiments of the present invention, code process method for webpage also can comprise: the address information obtaining the webpage affiliated web site to be detected of user's input, according to described address information query webpage file data bag, and one or more are provided to point out according to Query Result to described user.
In certain embodiments of the present invention, code process method for webpage also can comprise: obtain the request message comprising website identification code, described request message sends from described first website when the webpage of the first website is accessed by netizen, the installation associated codes of webpage on described website identification code and website, whether there are code update data corresponding to the webpage of described first website according to described request information query, if there is more new data, then carry out the installation of more fresh code.
In certain embodiments of the present invention, code process method for webpage also can comprise: when have more fresh code time, one or more websites of described renewal associated codes are inquired about according to website identification code, and more fresh code is installed to one or more websites of described association, wherein, the installation associated codes of webpage on described website identification code and website.
According to the second aspect of embodiment of the present invention, provide a kind of code processing apparatus for webpage, this device can comprise:
Acquisition module, for obtaining the file address information of the webpage affiliated web site of the code to be installed of user;
Link block, for the web page files of code to be installed according to the message reference of described file address, records the routing information of described web page files;
Processing module, for: download described web page files according to described routing information, in downloaded web page files, search code add identification character, add identification character according to described code and code to be installed is added into downloaded web page files, to complete the code update of web page files.
In certain embodiments of the present invention, in described link block, the web page files of code to be installed can comprise one or more web page files of following suffix name: html, htm, shtml, xhtml, dhtml, asp, aspx, jsp, php.
In certain embodiments of the present invention, the web page files of the described code to be installed of described link block access can be performed by multithreading.
In certain embodiments of the present invention, code processing apparatus for webpage also can comprise detection module, for: the address information obtaining the webpage affiliated web site to be detected of user's input, according to described address information query webpage file data bag, and one or more are provided to point out according to Query Result to described user.
In certain embodiments of the present invention, code processing apparatus for webpage also can comprise update module, for: obtain the request message comprising website identification code, described request message sends from described first website when the webpage of the first website is accessed by netizen, the installation associated codes of webpage on described website identification code and website, whether there are code update data corresponding to the webpage of described first website according to described request information query, if there is more new data, then carry out the installation of more fresh code.
In certain embodiments of the present invention, code processing apparatus for webpage also can comprise pushing module, for: when have more fresh code time, one or more websites of described renewal associated codes are inquired about according to website identification code, and more fresh code is installed to one or more websites of described association, wherein, the installation associated codes of webpage on described website identification code and website.
The code process method and apparatus for webpage that embodiment of the present invention provides, by obtaining the address information of the webpage affiliated web site of code to be installed, according to the corresponding web page files of address acquisition of information, inquiry code adds identification character, add identification character according to code and carry out code interpolation, the installment work of automatic completion code, significantly improve the efficiency that code is installed, reduce the cost of code maintenance, reduce the technical requirement to software requirement side; Secondly, the web page files being applicable to multiple suffix name is installed, and expands the scope of application that web page code is installed; Again, perform web page files by multithreading and read, substantially increase the reading speed of web page files; Again, corresponding code installation situation can be inquired about by the address information obtaining website, and corresponding prompting is provided to software requirement side, improve the inquiry channel of code installation situation, facilitate software requirement side to obtain code installation situation in time; Again, by automatically start during netizen's accessed web page more fresh code install or Automatic inquirying more fresh code relate to website and install, facilitate the code data that software requirement side obtains renewal in time, also reduce the cost of software requirement side's code maintenance.
Accompanying drawing explanation
Fig. 1 illustrates the schematic flow sheet of the code process method for webpage according to one embodiment of the present invention;
Fig. 2 illustrates the structural representation of the code processing apparatus for webpage according to one embodiment of the present invention.
Embodiment
For making the object of embodiments of the invention, technical scheme and advantage clearly, below in conjunction with accompanying drawing, the present invention is described in further detail.
See Fig. 1, illustrate the schematic flow sheet of the code process method for webpage according to one embodiment of the present invention, the method can comprise:
S101, obtains the address information of the webpage affiliated web site of the code to be installed of user;
S102, according to the web page files of address message reference code to be installed, the routing information of record web page files;
S103, according to routing information downloading web pages file, searches code and adds identification character, add identification character code to be installed is added into downloaded web page files, to complete the code update of web page files according to code in downloaded web page files.
In embodiments of the present invention, code process method for webpage can comprise step S101, obtain user (such as, it can be the software requirement side of the download use code product of the organizational form such as individuality or enterprise, be and provide the software provider of code product comparatively speaking) the file address information of webpage affiliated web site of code to be installed, such as, can be file transfer protocol (FTP) FTP (the File Transfer Protocol) information of website.Such as, the server system that can be to provide webpage software code obtains the user of this product code (such as, software product party in request) the file address information (such as, file transfer protocol (FTP) FTP information) of webpage affiliated web site needing to install code that inputted by the dialog box of webpage software product client.Wherein, the file address information of the webpage affiliated web site of code to be installed can comprise the FTP information of the web page files preserving this website, the server address of such as this website and port numbers, or IP address or domain name and port numbers, such as, can be 10.20.30.40:21 or www.ftpserver.com:21.File transfer protocol (FTP) FTP information also can comprise sub-directory, such as, can be 10.20.30.40:21/folder or www.ftpserver.com:21/folder etc.
Next, perform step S102, according to the web page files of file address message reference code to be installed, the routing information of record web page files.Such as, can according to file address information (such as, FTP information) connected by the server of distributing operation system interface and this website, and the file system of accessing the server of this website obtains the web page files of code to be installed, records the routing information of described web page files.Such as, when file address information is FTP information, FTP request can be initiated by distributing operation system interface to the server of website according to the FTP information of user's input, connect with the server of this website.This FTP request comprises the FTP information of client's input, and operating system can be windows system etc.Needs illustrate, after initiating FTP request to the server of website, can verify the FTP information of user's input according to the response message that the server of this website returns, if the FTP information of user's input is inaccurate, FTP information can also be pointed out inaccurate to user by dialog box, please again input.If the FTP information of user's input is accurate, can connect with the server of website, access the file system of this Website server, obtain the web page files of the code to be installed of this website (such as, the web page files of multiple suffix name can be comprised), and the routing information of this web page files form etc. of folderName/fileName (such as, can be) is recorded to the database of product servers end.
Next, perform step S103, download the web page files of code to be installed from the file system of Website server according to the routing information of the web page files be recorded in step S102 in the database of product servers end, for the web page files downloaded, can web page files be opened by operating system interface and web page files be edited.After downloading web pages file, distributing operation system interface is searched code and is added identification character in the web page files downloaded, such as, for html webpage file, it can be </body> that code adds identification character, after finding code and adding identification character, code to be installed can be added before code interpolation identification character in the web page files downloaded, then the web page files through adding code is uploaded to Website server, replace original web page files, complete the renewal of web page files.It should be noted that, the code that this step is added can be the code that code product will be used to add, and such as, needs the product adding code before Baidu business bridge or use.In addition, the code that this step is added can also be the more fresh code of code product.The code process method of embodiment of the present invention significantly can improve the efficiency of web page code installation, realizes the Auto-mounting of web page code, reduces the technical requirement to software requirement side.In certain embodiments of the present invention, after downloading web pages file, web page files can also be backuped in cloud storage system or other distributed storage server, ensure the safety of software requirement side's website and webpage file, can not lose.
In certain embodiments of the present invention, the web page files of code to be installed can comprise one or more web page files of following suffix name: html, htm, shtml, xhtml, dhtml, asp, aspx, jsp, php.In step s 102, according to the file system of the FTP message reference Website server of user, one or more the web page files that suffix is called above-mentioned form can be obtained.That is, the code that embodiment of the present invention is applicable to multiple suffix name web page files is installed, and scope applicatory is wider.
In certain embodiments of the present invention, the web page files that in step S102, the file system of access websites server obtains code to be installed can be performed by multithreading, performs web page files and reads, significantly can accelerate the reading speed of web page files by multithreading.
In certain embodiments of the present invention, code process method for webpage can also comprise: the address information obtaining the webpage affiliated web site to be detected of user's input, packet corresponding to this webpage is obtained according to this address information, inquire about the code whether comprising webpage to be detected in this packet, and provide one or more to point out according to the result of inquiry to this user.Wherein, webpage to be detected can be the webpage that user view verifies code installation situation, address information can comprise station address or web page interlinkage, can obtain the packet information of these website and webpage on code provider server according to this station address or web page interlinkage.Such as, request message can be sent (such as according to the address information of user's input, can be HTTP request message), obtain web page files packet corresponding to this address information (such as, this packet can comprise the data such as web page files corresponding to this address information), inquire about the code whether comprising the product for this webpage to be detected in this packet, if packet does not comprise the code of the product for this webpage to be detected, then point out user that code is not installed, if packet comprises the code of the product for this webpage to be detected, the database that also can initiate request to service end again goes retrieval to install recorded information, corresponding prompting can be done to user: if inquire, recorded information and be up-to-date code is installed according to the installation record result of retrieval, then to user's prompting, up-to-date code is installed, if inquire, recorded information is installed but the code having renewal, then there is more fresh code to user's prompting, the renewal of code can be initiated, if without installation recorded information, then to user's prompting, code is not installed and can carries out code Auto-mounting.Embodiment of the present invention can inquire about corresponding code installation situation by the address information obtaining website, and provides corresponding prompting to user, improves the inquiry channel of code installation situation, facilitates software requirement side to obtain code installation situation in time.
In certain embodiments of the present invention, code process method for webpage can also comprise: obtain the request message comprising website identification code, wherein, when this request message can be netizen's access websites webpage, from the webpage of this website, mounted code sends, the installation associated codes of webpage on website identification code and this website, mounted code information on a website can be inquired about according to website identification code, when installing web page code to a website X, the website identification code of this website X can be corresponding with mounted web page code, be recorded in the database of the server system of code provider.Further, web page code can be installed on the webpage on one or more website.If mounted code has renewal, according to the webpage which website is website identification code can inquire on, code is installed.Can inquire about whether there are code update data corresponding to this website identification code according to the request message comprising website identification code, if there is more new data, then can carry out the Auto-mounting of more fresh code.Such as, the FTP information of this website that formerly can store according to database, adds the similar mode of step with above-mentioned code and carries out Auto-mounting.The code process mode that embodiment of the present invention provides can carry out the update contruction work of code automatically when netizen's accessed web page, facilitate the code data that software requirement side obtains renewal in time, also reduce the cost of software requirement side's code maintenance.
In certain embodiments of the present invention, code process method for webpage can also comprise: when by more fresh code, one or more websites of this change associated codes are inquired about according to website identification code, and more fresh code is installed to one or more websites of this association, wherein, the installation associated codes of webpage on website identification code and website, such as, when installing web page code to a website X, the website identification code of this website X can be corresponding with mounted web page code, is recorded in the database of the server system of code provider.Further, web page code can be installed on the webpage on one or more website.If mounted code has renewal, according to the webpage which website is website identification code can inquire on, code is installed.After inquiring these websites, can automatically for more fresh code be installed in these websites.Embodiments of the present invention are after code has renewal, and Automatic inquirying is the website that relates to of fresh code more, and automatically carry out more fresh code and install, and reduce time and the financial cost of code maintenance, also facilitate the code maintenance task of software requirement side.
More than describe the flow process of the code installation method for webpage in conjunction with embodiment, describe the code erecting device for webpage corresponding with said method below in conjunction with embodiment.
Illustrate the structural representation of the code processing apparatus for webpage according to one embodiment of the present invention see Fig. 2, Fig. 2, this device 200 can comprise:
Acquisition module 201, for obtaining the file address information of the webpage affiliated web site of the code to be installed of user;
Link block 202, for the web page files according to file address message reference code to be installed, the routing information of record web page files;
Processing module 203, for: according to routing information downloading web pages file, in downloaded web page files, search code add identification character, add identification character according to code and code to be installed is added into downloaded web page files, to complete the code update of web page files.
The device 200 of embodiment of the present invention can comprise acquisition module 201, link block 202 and processing module 203, each module of this device can be arranged on the server apparatus of code provider, and can be connected with the website and webpage and Website server communication using the user of code.
In embodiments of the present invention, acquisition module 201 can obtain user (such as, it can be the software requirement side of the download use code product of the organizational form such as individuality or enterprise, be and provide the software provider of code product comparatively speaking) the file address information of webpage affiliated web site of code to be installed, such as, can be the FTP information of website.Such as, the file address information (such as, file transfer protocol (FTP) FTP information) needing the webpage affiliated web site installing code that the user that can obtain this product code is inputted by the dialog box of webpage software product client.Wherein, the file address information of the webpage affiliated web site of code to be installed can comprise the FTP information of the web page files preserving this website, the server address of such as this website and port numbers, or IP address or domain name and port numbers, such as, can be 10.20.30.40:21 or www.ftpserver.com:21.File transfer protocol (FTP) FTP information also can comprise sub-directory, such as, can be 10.20.30.40:21/folder or www.ftpserver.com:21/folder etc.
The web page files of the file address message reference code to be installed that link block 202 obtains according to acquisition module 201, the routing information of record web page files.Such as, can according to file address information (such as, FTP information) connected by the server of distributing operation system interface and this website, and the file system of accessing the server of this website obtains the web page files of code to be installed, records the routing information of described web page files.Such as, when file address information is FTP information, FTP request can be initiated by distributing operation system interface to the server of website according to the FTP information of user's input, connect with the server of this website.This FTP request comprises the FTP information of client's input, and operating system can be windows system etc.Needs illustrate, after initiating FTP request to the server of website, can verify the FTP information of user's input according to the response message that the server of this website returns, if the FTP information of user's input is inaccurate, FTP information can also be pointed out inaccurate to user by dialog box, please again input.If the FTP information of user's input is accurate, can connect with the server of website, access the file system of this Website server, obtain the web page files of the code to be installed of this website (such as, the web page files of multiple suffix name can be comprised), and the routing information of this web page files form etc. of folderName/fileName (such as, can be) is recorded to the database of product servers end.
Processing module 203 is recorded to the web page files in the database of product servers end routing information according to link block 202 downloads the web page files of code to be installed from the file system of Website server, for the web page files downloaded, can web page files be opened by operating system interface and web page files be edited.After downloading web pages file, distributing operation system interface is searched code and is added identification character in the web page files downloaded, such as, for html webpage file, it can be </body> that code adds identification character, after finding code and adding identification character, code to be installed can be added before code interpolation identification character in the web page files downloaded, then the web page files through adding code is uploaded to Website server, replace original web page files, complete the renewal of web page files.It should be noted that, the code that processing module 203 is added can be the code that code product will be used to add, and such as, needs the product adding code before Baidu business bridge or use.In addition, the code of interpolation can also be the more fresh code of code product.The code process mode of embodiment of the present invention significantly can improve the efficiency of web page code installation, realizes the Auto-mounting of web page code, reduces the technical requirement to software requirement side.In certain embodiments of the present invention, web page files, after downloading web pages file, can also backup in cloud storage system or other distributed storage server by processing module 203, ensures the safety of software requirement side's website and webpage file, can not lose.
In certain embodiments of the present invention, the web page files of code to be installed can comprise one or more web page files of following suffix name: html, htm, shtml, xhtml, dhtml, asp, aspx, jsp, php.Link block 202 according to the file system of the FTP message reference Website server of user, can obtain one or more the web page files that suffix is called above-mentioned form.That is, the code that embodiment of the present invention is applicable to multiple suffix name web page files is installed, and scope applicatory is wider.
In certain embodiments of the present invention, the web page files that the file system of link block 202 access websites server obtains code to be installed can be performed by multithreading, perform web page files by multithreading to read, significantly can accelerate the reading speed of web page files.
In certain embodiments of the present invention, code processing apparatus for webpage can also comprise detection module, detection module obtains the address information of the webpage affiliated web site to be detected of user's input, packet corresponding to this webpage is obtained according to this address information, inquire about the code whether comprising webpage to be detected in this packet, and provide one or more to point out according to the result of inquiry to this user.Wherein, webpage to be detected can be the webpage that user view verifies code installation situation, address information can comprise station address or web page interlinkage, can obtain the packet information of these website and webpage on code provider server according to this station address or web page interlinkage.Such as, request message can be sent (such as according to the address information of user's input, can be HTTP request message), obtain web page files packet corresponding to this address information (such as, this packet can comprise the data such as web page files corresponding to this address information), inquire about the code whether comprising the product for this webpage to be detected in this packet, if packet does not comprise the code of the product for this webpage to be detected, then point out user that code is not installed, if packet comprises the code of the product for this webpage to be detected, the database that also can initiate request to service end again goes retrieval to install recorded information, corresponding prompting can be done to user: if inquire, recorded information and be up-to-date code is installed according to the installation record result of retrieval, then to user's prompting, up-to-date code is installed, if inquire, recorded information is installed but the code having renewal, then there is more fresh code to user's prompting, the renewal of code can be initiated, if without installation recorded information, then to user's prompting, code is not installed and can carries out code Auto-mounting.Embodiment of the present invention can inquire about corresponding code installation situation by the address information obtaining website, and provides corresponding prompting to user, improves the inquiry channel of code installation situation, facilitates software requirement side to obtain code installation situation in time.
In certain embodiments of the present invention, code processing apparatus for webpage can also comprise update module, update module obtains the request message comprising website identification code, wherein, when this request message can be netizen's access websites webpage, from the webpage of this website, mounted code sends, the installation associated codes of webpage on website identification code and this website, mounted code information on a website can be inquired about according to website identification code, when installing web page code to a website X, the website identification code of this website X can be corresponding with mounted web page code, be recorded in the database of the server system of code provider.Further, web page code can be installed on the webpage on one or more website.If mounted code has renewal, according to the webpage which website is website identification code can inquire on, code is installed.Can inquire about whether there are code update data corresponding to this website identification code according to the request message comprising website identification code, if there is more new data, then can carry out the Auto-mounting of more fresh code.Such as, the FTP information of this website that formerly can store according to database, adds the similar mode of step with above-mentioned code and carries out Auto-mounting.The code process mode that embodiment of the present invention provides can carry out the update contruction work of code automatically when netizen's accessed web page, facilitate the code data that software requirement side obtains renewal in time, also reduce the time cost of software requirement side's code maintenance.
In certain embodiments of the present invention, code processing apparatus for webpage can also comprise pushing module, pushing module is when by more fresh code, one or more websites of this change associated codes are inquired about according to website identification code, and more fresh code is installed to one or more websites of this association, wherein, the installation associated codes of webpage on website identification code and website, such as, when installing web page code to a website X, the website identification code of this website X can be corresponding with mounted web page code, be recorded in the database of the server system of code provider.Further, web page code can be installed on the webpage on one or more website.If mounted code has renewal, according to the webpage which website is website identification code can inquire on, code is installed.After inquiring these websites, can automatically for more fresh code be installed in these websites.Embodiments of the present invention are after code has renewal, and Automatic inquirying is the website that relates to of fresh code more, and automatically carry out more fresh code and install, and reduce the time cost of code maintenance, also facilitate the code maintenance task of software requirement side.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode of software combined with hardware platform, can certainly all be implemented by hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, smart mobile phone or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
The term used in instructions of the present invention and wording, just to illustrating, are not meaned and are formed restriction.It will be appreciated by those skilled in the art that under the prerequisite of the ultimate principle not departing from disclosed embodiment, can various change be carried out to each details in above-mentioned embodiment.Therefore, scope of the present invention is only determined by claim, and in the claims, except as otherwise noted, all terms should be understood by the most wide in range rational meaning.

Claims (12)

1., for a code process method for webpage, it is characterized in that, comprising:
Obtain the file address information of the webpage affiliated web site of the code to be installed of user;
The web page files of code to be installed according to the message reference of described file address, records the routing information of described web page files;
Download described web page files according to described routing information, in downloaded web page files, search code add identification character, add identification character according to described code and code to be installed is added into downloaded web page files, to complete the code update of web page files.
2. method according to claim 1, is characterized in that, the web page files of described code to be installed comprises one or more web page files of following suffix name: html, htm, shtml, xhtml, dhtml, asp, aspx, jsp, php.
3. method according to claim 2, is characterized in that, the web page files of the described code to be installed of described access is performed by multithreading.
4. method as claimed in any of claims 1 to 3, is characterized in that, also comprises:
Obtain the address information of the webpage affiliated web site to be detected of user's input,
According to described address information query webpage file data bag, and one or more are provided to point out according to Query Result to described user.
5. method as claimed in any of claims 1 to 3, is characterized in that, also comprises:
Obtain and comprise the request message of website identification code, described request message sends from described first website when the webpage of the first website is accessed by netizen, the installation associated codes of webpage on described website identification code and website,
Whether there are code update data corresponding to the webpage of described first website according to described request information query, if there is more new data, then carry out the installation of more fresh code.
6. method as claimed in any of claims 1 to 3, is characterized in that, also comprises:
When have more fresh code time, one or more websites of described renewal associated codes are inquired about according to website identification code, and more fresh code is installed to one or more websites of described association, and wherein, the installation associated codes of webpage on described website identification code and website.
7. for a code processing apparatus for webpage, it is characterized in that, comprising:
Acquisition module, for obtaining the file address information of the webpage affiliated web site of the code to be installed of user;
Link block, for the web page files of code to be installed according to the message reference of described file address, records the routing information of described web page files;
Processing module, for: download described web page files according to described routing information, in downloaded web page files, search code add identification character, add identification character according to described code and code to be installed is added into downloaded web page files, to complete the code update of web page files.
8. device according to claim 7, it is characterized in that, the web page files of code to be installed described in described link block comprises one or more web page files of following suffix name: html, htm, shtml, xhtml, dhtml, asp, aspx, jsp, php.
9. device according to claim 8, is characterized in that, the web page files of the described code to be installed of described link block access is performed by multithreading.
10. according to the device in claim 7 to 9 described in any one, it is characterized in that, also comprise detection module, for:
Obtain the address information of the webpage affiliated web site to be detected of user's input,
According to described address information query webpage file data bag, and one or more are provided to point out according to Query Result to described user.
11., according to the device in claim 7 to 9 described in any one, is characterized in that, also comprise update module, for:
Obtain and comprise the request message of website identification code, described request message sends from described first website when the webpage of the first website is accessed by netizen, the installation associated codes of webpage on described website identification code and website,
Whether there are code update data corresponding to the webpage of described first website according to described request information query, if there is more new data, then carry out the installation of more fresh code.
12., according to the device in claim 7 to 9 described in any one, is characterized in that, also comprise pushing module, for:
When have more fresh code time, one or more websites of described renewal associated codes are inquired about according to website identification code, and more fresh code is installed to one or more websites of described association, and wherein, the installation associated codes of webpage on described website identification code and website.
CN201510091605.0A 2015-02-28 2015-02-28 Code processing method and device used for webpage Pending CN104679862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510091605.0A CN104679862A (en) 2015-02-28 2015-02-28 Code processing method and device used for webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510091605.0A CN104679862A (en) 2015-02-28 2015-02-28 Code processing method and device used for webpage

Publications (1)

Publication Number Publication Date
CN104679862A true CN104679862A (en) 2015-06-03

Family

ID=53314904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510091605.0A Pending CN104679862A (en) 2015-02-28 2015-02-28 Code processing method and device used for webpage

Country Status (1)

Country Link
CN (1) CN104679862A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943512A (en) * 2017-11-28 2018-04-20 晶晨半导体(上海)股份有限公司 A kind of update method of software systems
CN108959384A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Web data acquisition methods, device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499100A (en) * 2008-01-18 2009-08-05 捷讯研究有限公司 Method and apparatus for checkout transition in an e-commerce application
CN101924780A (en) * 2009-06-15 2010-12-22 北京华智大为科技有限公司 Online customer service method and system
CN102110198A (en) * 2009-12-28 2011-06-29 北京安码科技有限公司 Anti-counterfeiting method for web page
US7975025B1 (en) * 2008-07-08 2011-07-05 F5 Networks, Inc. Smart prefetching of data over a network
CN102915363A (en) * 2012-10-18 2013-02-06 北京奇虎科技有限公司 Website storing method and system
CN103248641A (en) * 2012-02-07 2013-08-14 腾讯科技(深圳)有限公司 Network download method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499100A (en) * 2008-01-18 2009-08-05 捷讯研究有限公司 Method and apparatus for checkout transition in an e-commerce application
US7975025B1 (en) * 2008-07-08 2011-07-05 F5 Networks, Inc. Smart prefetching of data over a network
CN101924780A (en) * 2009-06-15 2010-12-22 北京华智大为科技有限公司 Online customer service method and system
CN102110198A (en) * 2009-12-28 2011-06-29 北京安码科技有限公司 Anti-counterfeiting method for web page
CN103248641A (en) * 2012-02-07 2013-08-14 腾讯科技(深圳)有限公司 Network download method, device and system
CN102915363A (en) * 2012-10-18 2013-02-06 北京奇虎科技有限公司 Website storing method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943512A (en) * 2017-11-28 2018-04-20 晶晨半导体(上海)股份有限公司 A kind of update method of software systems
CN108959384A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Web data acquisition methods, device, computer equipment and storage medium
CN108959384B (en) * 2018-05-31 2023-04-07 康键信息技术(深圳)有限公司 Webpage data acquisition method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11403262B2 (en) Local networked storage linked to remote networked storage system
US8180376B1 (en) Mobile analytics tracking and reporting
CN102333092B (en) Network user identification method and application server
CN108228818A (en) Web page resources loading method and device, electronic equipment and storage medium
CN102307210A (en) Data downloading system and data management and downloading method thereof
CN101729442A (en) Method and device for realizing content sharing
CN104753966A (en) Resource file inquiry method and system based on server and client caches
US20210344638A1 (en) Method for network traffic forwarding, request sending, and communication acceleration, forwarding server and node server
CN103365695A (en) Method and device for increasing sub-resource loading speed
CN106909595B (en) Data migration method and device
CN103701929A (en) Method and device for realizing business data caching
CN105868234A (en) Update method and device of caching data
US7949724B1 (en) Determining attention data using DNS information
CN102193925A (en) On-line multi-version management method and device for manuscripts in manuscript system
CN102323937A (en) Method and equipment for providing search result
CN102790772A (en) Cookie data processing method, server and client
CN101662478A (en) Method for tracking downloading, installation and uninstallation of software and system thereof
CN101848430B (en) Device and method for service request authentication, service request authentication system and method of service request authentication system
CN101008946A (en) Search method of Chinese mobile communication information and device thereof
CN104679862A (en) Code processing method and device used for webpage
CN108062352B (en) Webpage page caching processing method, mobile terminal equipment and medium product
WO2008096992A1 (en) System and method for providing search service by keywords
CN102904935B (en) Downloading method, downloading device and downloading system based on home gateway
CN104021192A (en) Database renewing method and device
CN106230988A (en) A kind of processing method for playing video files and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20150603