CN105808785B - Information processing method and terminal equipment - Google Patents

Information processing method and terminal equipment Download PDF

Info

Publication number
CN105808785B
CN105808785B CN201610203842.6A CN201610203842A CN105808785B CN 105808785 B CN105808785 B CN 105808785B CN 201610203842 A CN201610203842 A CN 201610203842A CN 105808785 B CN105808785 B CN 105808785B
Authority
CN
China
Prior art keywords
website list
address information
webpage address
website
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610203842.6A
Other languages
Chinese (zh)
Other versions
CN105808785A (en
Inventor
尚子峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610203842.6A priority Critical patent/CN105808785B/en
Publication of CN105808785A publication Critical patent/CN105808785A/en
Application granted granted Critical
Publication of CN105808785B publication Critical patent/CN105808785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9562Bookmark management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an information processing method and terminal equipment, wherein the method comprises the following steps: the method comprises the steps that terminal equipment runs a browser application comprising a first website list, wherein the first website list comprises N webpage address information which can be preset in the browser application, and N is an integer; establishing connection with a server, and acquiring a second website list from the server through the connection; the second website list comprises M pieces of webpage address information, M is an integer, and at least part of the webpage address information in the second website list is different from that in the first website list; and updating the first website list based on the second website list to obtain an updated first website list.

Description

Information processing method and terminal equipment
Technical Field
The present invention relates to information processing technologies, and in particular, to an information processing method and a terminal device.
Background
The default bookmarks (i.e., commercialized bookmarks) of the prior art are typically packaged in a browser installation package, and are only imported into the browser upon first startup after installation. Obviously, the default bookmark packaged in the browser installation package has the following defects: 1) updating the default bookmark is difficult, and the configuration file in the installation package needs to be changed; 2) the default bookmark added to the user bookmark depends on the installation of the browser, the default bookmark can be imported if the user is started for the first time after the installation, and once the user deletes the default bookmark, the deleted default bookmark cannot be added if the user does not install the browser for the next time.
Disclosure of Invention
In view of this, embodiments of the present invention provide an information processing method and a terminal device to solve the problems in the prior art.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides an information processing method, which is applied to terminal equipment and comprises the following steps:
the method comprises the steps that browser application comprising a first website list is operated, wherein the first website list comprises N webpage address information which can be preset in the browser application, and N is an integer;
establishing connection with a server, and acquiring a second website list from the server through the connection; the second website list comprises M pieces of webpage address information, M is an integer, and at least part of the webpage address information in the second website list is different from that in the first website list;
and updating the first website list based on the second website list to obtain an updated first website list.
In the foregoing solution, the updating the first website list based on the second website list includes:
storing the M webpage address information in the second website list into a registry;
analyzing the M webpage address information in the registry to obtain M Uniform Resource Locators (URLs);
updating the first website list based on the M URLs;
and after the first website list is updated, emptying the registry.
In the foregoing solution, the updating the first website list based on the M URLs includes:
comparing the URL in the second website list with the URL in the first website list, and determining webpage address information meeting a first preset condition; the first preset condition represents that the URL corresponding to the webpage address information in the second website list is not included in the first website list;
and adding the webpage address information meeting the first preset condition to the first website list.
In the foregoing solution, after comparing the URL in the second website list with the URL in the first website list, the method further includes:
determining webpage address information meeting a second preset condition; the second preset condition represents that the URL corresponding to the webpage address information in the second website list is contained in the first website list;
and replacing the webpage address information in the first website list by using the webpage address information meeting the second preset condition.
In the foregoing solution, before the updating the first website list based on the second website list, the method further includes:
detecting whether the browser application is restarted;
and if the first website list is restarted, updating the first website list based on the second website list.
The embodiment of the invention also provides terminal equipment, which comprises an operation module, an acquisition module and an updating module;
the operation module is used for operating the browser application comprising a first website list, wherein the first website list comprises N pieces of webpage address information which can be preset in the browser application, and N is an integer;
the acquisition module is used for establishing connection with a server and acquiring a second website list from the server through the connection; the second website list comprises M pieces of webpage address information, M is an integer, and at least part of the webpage address information in the second website list is different from that in the first website list;
and the updating module is used for updating the first website list based on the second website list to obtain an updated first website list.
In the above scheme, the update module includes a storage unit, an analysis unit, an update unit, and an emptying unit;
the storage unit is used for storing the M pieces of webpage address information in the second website list into a registry;
the analysis unit is used for analyzing the M webpage address information in the registry to obtain M Uniform Resource Locators (URLs);
the updating unit is used for updating the first website list based on the M URLs;
and the emptying unit is used for emptying the registry after the first website list is updated.
In the above scheme, the updating unit includes a ratio sub-unit and an adding sub-unit;
the comparison subunit is used for comparing the URL in the second website list with the URL in the first website list to determine the webpage address information meeting a first preset condition; the first preset condition represents that the URL corresponding to the webpage address information in the second website list is not included in the first website list;
the adding subunit is configured to add the webpage address information meeting the first preset condition to the first website list.
In the above solution, the updating unit further includes a replacing subunit;
the comparison subunit is used for determining the webpage address information meeting a second preset condition; the second preset condition represents that the URL corresponding to the webpage address information in the second website list is contained in the first website list;
and the replacing subunit is used for replacing the webpage address information in the first website list by using the webpage address information meeting the second preset condition.
In the above scheme, the terminal device further includes a detection module;
the detection module is used for detecting whether the browser application is restarted or not;
the updating module is further configured to update the first website list based on the second website list if the mobile terminal is restarted.
In the embodiment of the invention, terminal equipment runs a browser application comprising a first website list, wherein the first website list comprises N pieces of webpage address information which can be preset in the browser application, and N is an integer; establishing connection with a server, and acquiring a second website list from the server through the connection; the second website list comprises M pieces of webpage address information, M is an integer, and at least part of the webpage address information in the second website list is different from that in the first website list; and updating the first website list based on the second website list to obtain an updated first website list. Therefore, the problem that the default website in the browser cannot be quickly recovered after being deleted can be avoided, the problem that the webpage address information can be updated only by repeatedly modifying the browser installation package and installing the browser again can be avoided, the updating process of the webpage address information in the browser is simplified, and the updating efficiency is effectively improved.
Drawings
FIG. 1 is a schematic flow chart illustrating an implementation of an information processing method according to an embodiment of the present invention;
fig. 2 is a first schematic flow chart illustrating an implementation of establishing a connection between a terminal device and a server according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of an implementation of a second information processing method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a second implementation flow of establishing a connection between a terminal device and a server according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a storage of webpage address information in a key-value pair format according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an implementation flow of a third information processing method according to an embodiment of the present invention;
FIG. 7a is a schematic diagram of a flow chart of a fourth information processing method according to an embodiment of the present invention;
fig. 7b is a schematic structural diagram of a first website list according to a fourth embodiment of the present invention;
fig. 7c is a schematic structural diagram of a second website list according to a fourth embodiment of the present invention;
fig. 7d is a schematic structural diagram illustrating a composition of the updated first website list according to the fourth embodiment of the present invention;
fig. 7e is a schematic diagram of a specific implementation flow of four application examples according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a five-terminal device according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of a terminal device according to a sixth embodiment of the present invention;
fig. 10 is a schematic diagram of a configuration of a seventh information processing system according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
The first embodiment is as follows:
an embodiment of the present invention provides an information processing method, where the method is applied to cooperative communication between a terminal device and a network side server through a cloud network, and as shown in fig. 1, the method includes:
step 101, the terminal equipment runs a browser application comprising a first website list;
the first website list comprises N pieces of webpage address information which can be preset in the browser application, wherein N is an integer; the N pieces of webpage address information can be imported into a first website list of the browser application by default when the terminal equipment starts and runs the browser application for the first time. In practical applications, the first website list is usually displayed on a display interface of the terminal device in the form of a browser favorite.
102, establishing connection between the terminal equipment and a server, and acquiring a second website list from the server through the connection;
the second website list comprises M pieces of webpage address information, M is an integer, and at least part of the webpage address information in the second website list is different from that in the first website list. The M pieces of webpage address information are all pieces of webpage address information which are currently required by the server and added by the terminal device corresponding to the browser application.
In practical application, when a server needs to add or replace new webpage address information to a browser application, the server can form a second website list with all network address information which needs to be imported by the browser application at present; further, after the terminal device establishes a connection with the server, the terminal device may acquire a second website list from the server through the connection, so as to update the first website list based on the second website list.
In an embodiment of the present invention, as shown in fig. 2, the terminal device and the server may establish a connection through the following implementation procedures, and obtain the second website list through the connection;
step 1021: the terminal equipment initiates a connection request to the server, wherein the connection request is used for indicating the server to send a second website list to the terminal equipment;
step 1022: and the server responds to the connection request and sends a second website list to the terminal equipment.
Here, since the terminal device cannot predict the timing at which the server forms the second website list, the terminal device may periodically initiate a connection request to the server. Specifically, the terminal device may send a connection request to the server at regular time through a hypertext Transfer Protocol (HTTP) in a process of running the browser application.
In another embodiment of the present invention, the server may directly establish a connection with the terminal device when forming the second website list, and send the second website list to the terminal device through the connection.
Step 103, the terminal device updates the first website list based on the second website list to obtain an updated first website list.
Specifically, the terminal device compares the M pieces of web page address information in the second website list with the N pieces of web page address information in the first website list, and determines to update the first network list based on the second website list in an addition or replacement manner based on the comparison condition, so as to obtain an updated first website list.
According to the information processing method provided by the embodiment of the invention, the terminal equipment runs the browser application comprising the first website list, wherein the first website list comprises N pieces of webpage address information which can be preset in the browser application, and N is an integer; establishing connection with a server, and acquiring a second website list from the server through the connection; the second website list comprises M pieces of webpage address information, M is an integer, and at least part of the webpage address information in the second website list is different from that in the first website list; and updating the first website list based on the second website list to obtain an updated first website list. Therefore, the problem that the default website in the browser cannot be quickly recovered after being deleted can be avoided, the problem that the webpage address information can be updated only by repeatedly modifying the browser installation package and installing the browser again can be avoided, the updating process of the webpage address information in the browser is simplified, and the updating efficiency is effectively improved.
Example two:
an embodiment of the present invention provides an information processing method, where the method is applied to cooperative communication between a terminal device and a network side server through a cloud network, and as shown in fig. 3, the method includes:
step 101, the terminal equipment runs a browser application comprising a first website list;
the first website list comprises N pieces of webpage address information which can be preset in the browser application, wherein N is an integer; the N pieces of webpage address information can be imported into a first website list of the browser application by default when the terminal equipment starts and runs the browser application for the first time. In practical applications, the first website list is usually displayed on a display interface of the terminal device in the form of a browser favorite.
Step 1021: the terminal equipment initiates a connection request to the server, wherein the connection request is used for indicating the server to send a second website list to the terminal equipment;
step 1022: and the server responds to the connection request and sends a second website list to the terminal equipment.
Here, since the terminal device cannot predict the timing at which the server forms the second website list, the terminal device may periodically initiate a connection request to the server. Specifically, the terminal device may send a connection request to the server through http at regular time during the process of running the browser application.
Step 1031, the terminal device stores the M pieces of webpage address information in the second website list into a registry;
in the embodiment of the present invention, the network address information can be issued through steps 1021 to 1031, as shown in fig. 4, specifically, the terminal device may send an http connection request to the background server at regular time during the browser running process to instruct the server to send the terminal device a commercialized bookmark configured by the background server, that is, a second website list formed by M pieces of network address information; and the background server issues the commercialized bookmark to the terminal equipment.
Here, the server encodes the title and the URL in the web address information by using a preset encoding method in the process of forming the second website list, so as to encrypt the web address information. Specifically, the title and the URL of the webpage address information are encoded by using a Base64 encoding mode, and the webpage address information is stored in a key-value pair mode. For example, as shown in fig. 5, the second website list includes the following three pieces of web address information, the herboringpatent retrieval system @ http:// so. baiten. cn, the web express library @ http:// go. microsoft. com/login. dhtml, the drug online @ http:// www.drugfuture.com/index. html; the title and the URL in the above three pieces of web page address information are sequentially encoded by using the Base64 encoding method, so as to obtain the encoding result as shown in fig. 5.
Step 1032, the terminal device parses the M pieces of webpage address information in the registry to obtain M pieces of Uniform Resource Locators (URLs);
specifically, the terminal device analyzes the M pieces of web page address information stored in the registry based on the decoding mode corresponding to the preset encoding mode to obtain M URLs.
Step 1033, the terminal device updates the first website list based on the M URLs.
Specifically, the terminal device compares the URL in the second website list with the URL in the first website list, and determines a comparison result meeting different preset conditions; further, according to the determined comparison result meeting different preset conditions, the first website list is selected to be updated in an adding or replacing mode. Here, the preset conditions include at least a first preset condition and a second preset condition. The first preset condition represents that the URL corresponding to the webpage address information in the second website list is not included in the first website list; the second preset condition represents that the URL corresponding to the webpage address information in the second website list is contained in the first website list.
According to the information processing method provided by the embodiment of the invention, when the terminal equipment runs the browser application comprising the first website list consisting of N pieces of webpage address information, the second website list which is configured by the background server and comprises M pieces of webpage address information can be obtained and stored in the registry directly through the connection with the background server without the modification of the browser installation package; analyzing the M webpage address information in the registry to obtain M URLs; and updating the first website list based on the M URLs. Therefore, the problem that the default website in the browser cannot be quickly recovered after being deleted can be avoided, the problem that the webpage address information can be updated only by repeatedly modifying the browser installation package and installing the browser again can be avoided, the updating process of the webpage address information in the browser is simplified, and the updating efficiency is effectively improved.
Example three:
an embodiment of the present invention provides an information processing method, where the method is applied to a terminal device, and the terminal device and a network side server perform cooperative communication through a cloud network, and as shown in fig. 6, the method includes:
601, running a browser application comprising a first website list;
the first website list comprises N pieces of webpage address information which can be preset in the browser application, wherein N is an integer; the N pieces of webpage address information can be imported into a first website list of the browser application by default when the terminal equipment starts and runs the browser application for the first time. In practical applications, the first website list is usually displayed on a display interface of the terminal device in the form of a browser favorite.
Step 602, establishing a connection with a server, and acquiring a second website list from the server through the connection;
the second website list comprises M pieces of webpage address information, M is an integer, and at least part of the webpage address information in the second website list is different from that in the first website list. The M pieces of webpage address information are all pieces of webpage address information which are currently required by the server and added by the terminal device corresponding to the browser application.
In practical application, when a server needs to add or replace new webpage address information to a browser application, the server can form a second website list with all network address information which needs to be imported by the browser application at present; further, after the terminal device establishes a connection with the server, the terminal device may acquire a second website list from the server through the connection, so as to update the first website list based on the second website list.
Step 603, detecting whether the browser application is restarted;
here, when the terminal device detects that the browser application is restarted, the subsequent step 604 is continuously executed; otherwise, if the terminal device does not detect that the browser application is restarted, the process is ended.
Step 604, if the network address list is restarted, updating the first network address list based on the second network address list to obtain an updated first network address list.
Specifically, the terminal device compares the M pieces of web page address information in the second website list with the N pieces of web page address information in the first website list, and determines to update the first network list based on the second website list in an addition or replacement manner based on the comparison condition, so as to obtain an updated first website list.
According to the information processing method provided by the embodiment of the invention, on the basis of obtaining the second website list by establishing connection with the server, the terminal equipment detects and determines that the browser application is restarted, and updates the first website list based on the second website list. Therefore, the problem that the default website in the browser cannot be quickly recovered after being deleted can be avoided, the problem that the webpage address information can be updated only by repeatedly modifying the browser installation package and installing the browser again can be avoided, the updating process of the webpage address information in the browser is simplified, and the updating efficiency is effectively improved.
Example four:
an embodiment of the present invention provides an information processing method, where the method is applied to cooperative communication between a terminal device and a network side server through a cloud network, and as shown in fig. 7a, the method includes:
step 701, running a browser application comprising a first website list;
the first website list comprises N pieces of webpage address information which can be preset in the browser application, wherein N is an integer; the N pieces of webpage address information can be imported into a first website list of the browser application by default when the terminal equipment starts and runs the browser application for the first time. In practical applications, the first website list is usually displayed on a display interface of the terminal device in the form of a browser favorite.
Step 702, establishing connection with a server, and acquiring a second website list from the server through the connection;
the second website list comprises M pieces of webpage address information, M is an integer, and at least part of the webpage address information in the second website list is different from that in the first website list. The M pieces of webpage address information are all pieces of webpage address information which are currently required by the server and added by the terminal device corresponding to the browser application.
In practical application, when a server needs to add or replace new webpage address information to a browser application, the server can form a second website list with all network address information which needs to be imported by the browser application at present; further, after the terminal device establishes a connection with the server, the terminal device may acquire a second website list from the server through the connection, so as to update the first website list based on the second website list.
In an embodiment of the present invention, the terminal device and the server may initiate a connection request to the server, where the connection request is used to instruct the server to send the second website list to the terminal device; and the server responds to the connection request and sends a second website list to the terminal equipment.
Here, since the terminal device cannot predict the timing at which the server forms the second website list, the terminal device may periodically initiate a connection request to the server. Specifically, the terminal device may send a connection request to the server through http at regular time during the process of running the browser application.
In another embodiment of the present invention, the server may directly establish a connection with the terminal device when forming the second website list, and send the second website list to the terminal device through the connection.
Step 703, storing the M pieces of web page address information in the second website list into a registry;
in the embodiment of the present invention, the issuing process of the network address information may be implemented through steps 702 to 703, as shown in fig. 4, specifically, the terminal device may send an http connection request to the background server at regular time in the process of running the browser, so as to instruct the server to send the terminal device a commercialized bookmark configured by the background server, that is, a second website list formed by M pieces of network address information; and the background server issues the commercialized bookmark to the terminal equipment.
Here, the server encodes the title and the URL in the web address information by using a preset encoding method in the process of forming the second website list, so as to encrypt the web address information. Specifically, the title and the URL of the webpage address information are encoded by using a Base64 encoding mode, and the webpage address information is stored in a key-value pair mode. For example, as shown in fig. 5, the second website list includes the following three pieces of web address information, the herboringpatent retrieval system @ http:// so. baiten. cn, the web express library @ http:// go. microsoft. com/login. dhtml, the drug online @ http:// www.drugfuture.com/index. html; the title and the URL in the three pieces of webpage address information are sequentially encoded by using the Base64 encoding mode, and the encoding result pointed by the dotted arrow in FIG. 5 is obtained.
Step 704, detecting whether the browser application is restarted;
here, when the terminal device detects that the browser application is restarted, the subsequent step 705 is continuously executed; otherwise, if the terminal device does not detect that the browser application is restarted, the process is ended.
Step 705, if the server is restarted, analyzing the M webpage address information in the registry to obtain M URLs;
specifically, the terminal device analyzes the M pieces of web page address information stored in the registry based on the decoding mode corresponding to the preset encoding mode to obtain M URLs.
Step 706, comparing the URL in the second website list with the URL in the first website list;
here, if the URL in the second website list is compared with the URL in the first website list, and it is determined that the webpage address information meeting the first preset condition is obtained, the subsequent step 707 is continuously performed, and if it is determined that the webpage address information meeting the second preset condition is obtained, the subsequent step 708 is continuously performed; the first preset condition represents that the URL corresponding to the webpage address information in the second website list is not included in the first website list; the second preset condition represents that the URL corresponding to the webpage address information in the second website list is contained in the first website list.
Step 707, determining the web page address information meeting a first preset condition, and adding the web page address information meeting the first preset condition to the first website list;
step 708, determining webpage address information meeting a second preset condition, and replacing the webpage address information in the first website list by using the webpage address information meeting the second preset condition;
and 709, emptying the registry.
Specifically, after updating the first website list in any way of step 707 or step 708, the terminal device clears the registry. In this way, by deleting the contents in the registry, it is possible to avoid performing a duplicate load of the web page address information stored in the registry the next time the browser application is restarted.
The following describes updating the first website list based on the second website list in steps 706-708 of the embodiment of the present invention, as shown in fig. 7 b-7 d, assuming that the first website list shown in fig. 7b includes the following five pieces of webpage address information: patent Star @ http:// www.patentstar.cn/; chinese patent network @ http:// www.cnpatent.com/search/zlss.asp; SOOPAT @ http:// www.soopat.com/tologin; BT patent retrieval system @ http:// so. basic. cn/; web page newsletter list @ http:// go. Microsoft.com/login.dhtml; the second website address list shown in fig. 7c includes the following three pieces of web address information: baiteng patent retrieval System @ http:// so. baiten. cn/; web page flash library @ http:// go. Microsoft. com/login.dhtml; the drug is online @ http:// www.drugfuture.com/index.html; after comparing the URL in the second website list with the URL in the first website list, determining that the webpage address information meeting a first preset condition is as follows: the drug is online @ http:// www.drugfuture.com/index.html; html is added to the first website list, so the webpage address information drug is at @ http:// www.drugfuture.com/index; after comparison, determining that the webpage address information meeting the second preset condition is as follows: baiteng patent retrieval System @ http:// so. baiten. cn/; web page flash library @ http:// go. Microsoft. com/login.dhtml; therefore, the web page address information Baiteng patent retrieval system @ http:// so. basic. cn/; the web page news database @ http:// go. microsoft.com/login.dhtml replaces the web page address information BT patent retrieval system @ http:// so. basic.cn/and the web page news list @ http:// go. microsoft.com/login.dhtml in the first web address list, and the updated first web address list shown in fig. 7d is obtained.
In an application example of the present invention, the terminal device obtains the bookmark, i.e., the second website list including the M pieces of web page address information, from the background server in the manner shown in fig. 2. Specifically, as shown in fig. 7e, the information processing method in the application example of the present invention specifically includes:
step 1, a browser process of the terminal device sends a request to a background server in a fixed time through http, and if the commercialized bookmark is configured with an update, the background server sends the updated bookmark to the terminal device.
And step 2, the terminal equipment acquires the updated bookmark and stores the bookmark in a registry.
And 3, reading the bookmark in the registry after the browser process of the terminal equipment is restarted.
And 4, if no bookmark exists in the registry, indicating that the background is not updated, directly exiting without adding, namely the bookmark loading fails, and ending the process.
And step 5, if the registry has bookmarks, loading all the bookmarks into a memory queue.
And 6, traversing the bookmarks in the queue according to the loading sequence, decoding the character string values of the loaded bookmark data by using Base64, wherein the decoded content is title @ url, and analyzing the title and url of the bookmark according to the @ symbols.
And 7, searching url in the current user bookmark.
And 8, deleting the existing user bookmarks if the url exists.
And 9, adding the traversed bookmark to the user bookmark.
Step 10, judging whether traversal is finished or not; if not, continuously and circularly executing the step 5 to the step 9.
And 11, deleting the data in the registry after all the bookmarks are completely added, and avoiding repeated loading when the browser process is restarted next time.
Therefore, by the information processing method provided by the embodiment of the invention, the terminal device can add the updated bookmark of the server at any time, and the addition process only needs to modify the background configuration, so that the problem that the default website in the browser cannot be quickly restored after being deleted is avoided, and the problem that the webpage address information can be updated only by repeatedly modifying the browser installation package and installing the browser again can be avoided, so that the updating process of the webpage address information in the browser is simplified, and the updating efficiency is effectively improved.
The application relates to the following abbreviations and key terms:
and (4) process: is the basis of the operating system architecture; is the execution of a program; is the activity that occurs when a program and its data are executed sequentially on a processor; is the process of program running on a data set, and is an independent unit for resource allocation and scheduling of the system.
A registry: is an important database in Microsoft Windows for storing the setting information of the system and the application program.
URL: a uniform resource locator, also known as a web page address, is an address of a standard resource on the internet.
Bookmark: the web address saved by the user in the browser.
The browser: a client browsing program of a world wide Web (Web) service. Various requests can be sent to a world wide Web (Web) server and the hypertext information and various multimedia data formats sent from the server can be interpreted, displayed and played.
Example five:
as shown in fig. 8, the terminal device 80 includes an operation module 801, an obtaining module 802, and an updating module 803;
the running module 801 is configured to run a browser application including a first website list, where the first website list includes N pieces of webpage address information that can be preset in the browser application, and N is an integer;
the obtaining module 802 is configured to establish a connection with a server, and obtain a second website list from the server through the connection; the second website list comprises M pieces of webpage address information, M is an integer, and at least part of the webpage address information in the second website list is different from that in the first website list;
the updating module 803 is configured to update the first website list based on the second website list, so as to obtain an updated first website list.
In one example, as shown in fig. 8, the update module includes a storage unit, a parsing unit, an update unit, and a clearing unit;
the storage unit is used for storing the M pieces of webpage address information in the second website list into a registry;
the analysis unit is used for analyzing the M webpage address information in the registry to obtain M Uniform Resource Locators (URLs);
the updating unit is used for updating the first website list based on the M URLs;
and the emptying unit is used for emptying the registry after the first website list is updated.
In one example, as shown in FIG. 8, the update unit includes a ratio sub-unit and an add sub-unit;
the comparison subunit is used for comparing the URL in the second website list with the URL in the first website list to determine the webpage address information meeting a first preset condition; the first preset condition represents that the URL corresponding to the webpage address information in the second website list is not included in the first website list;
the adding subunit is configured to add the webpage address information meeting the first preset condition to the first website list.
In one example, as shown in FIG. 8, the update unit further includes a replacement subunit;
the comparison subunit is also used for determining webpage address information meeting a second preset condition; the second preset condition represents that the URL corresponding to the webpage address information in the second website list is contained in the first website list;
and the replacing subunit is used for replacing the webpage address information in the first website list by using the webpage address information meeting the second preset condition.
In an example, as shown in fig. 8, the terminal device further includes a detection module 804;
the detecting module 804 is configured to detect whether the browser application is restarted;
the updating module 803 is further configured to update the first website list based on the second website list if the mobile terminal is restarted.
In practical application, the running module 801, the obtaining module 802, the updating module 803, the detecting module 804 included in the terminal device, and the units and sub-units included in each module may all correspond to a processor. The specific structure of the processor can be an electronic component or a collection of electronic components with processing functions, such as a Central Processing Unit (CPU), a microprocessor MCU, a Digital Signal Processor (DSP), a programmable logic device (PLC) or the like. The processor includes executable codes, the executable codes are stored in a storage medium, the processor can be connected to the storage medium through a communication interface such as a bus, and when the corresponding functions of the specific modules are executed, the executable codes are read from the storage medium and executed. The portion of the storage medium used to store the executable code is preferably a non-transitory storage medium.
The running module 801, the obtaining module 802, the updating module 803 and the detecting module 804 may be integrated to correspond to the same processor, or respectively correspond to different processors; when the integration corresponds to the same processor, the processor processes the functions corresponding to the operation module 801, the obtaining module 802, the updating module 803 and the detecting module 804 by time division.
The terminal device according to the fifth embodiment of the present invention provides hardware for implementing the method according to the first to fourth embodiments, and can be used to implement any of the technical solutions according to the first to fourth embodiments, and similarly, the second website list configured by the background server can be obtained directly through connection with the background server without modifying the browser installation package, and the first website list is updated based on the second website list, so as to implement cloud-controlled addition of the web page address information.
Example six:
this embodiment provides a specific hardware based on the terminal device in the fifth embodiment, as shown in fig. 9, the apparatus includes a processor 902, a storage medium 904, and at least one external communication interface 901; the processor 902, the storage medium 904, and the external communication interface 901 are all connected via a bus 903. The processor 902 may be a microprocessor, a central processing unit, a digital signal processor, a programmable logic array, or other electronic components with processing functions. The storage medium 904 has stored therein computer executable code.
The hardware may be the terminal device.
When the hardware is the terminal device, the processor 902 can at least realize the following functions when executing the computer executable code;
the method comprises the steps that browser application comprising a first website list is operated, wherein the first website list comprises N webpage address information which can be preset in the browser application, and N is an integer;
establishing connection with a server, and acquiring a second website list from the server through the connection; the second website list comprises M pieces of webpage address information, M is an integer, and at least part of the webpage address information in the second website list is different from that in the first website list;
and updating the first website list based on the second website list to obtain an updated first website list.
Example seven:
as shown in fig. 10, the present embodiment provides an information processing system including a server 1001 and a terminal device 1002; the server 1001 and at least one terminal device 1002 are connected via a network; the network may be a wired network, a wireless network, or a hybrid network of wired and wireless. The system is used for executing the information processing method in the first embodiment or the second embodiment.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (12)

1. An information processing method, which is applied to a browser application run by a terminal device, is characterized by comprising the following steps:
running the browser application comprising the bookmark taking the first website list as the bookmark;
the first website list consists of N pieces of default webpage address information packaged in an installation package of the browser application, wherein N is an integer;
establishing connection with a server, and acquiring a second website list from the server through the connection;
the second website list comprises M pieces of webpage address information, M is an integer, and at least part of the webpage address information in the second website list is different from that in the first website list;
comparing the M webpage address information in the second website list with the N webpage address information in the first website list, and updating the first website list based on the comparison result to obtain an updated first website list.
2. The method according to claim 1, wherein comparing the M pieces of web page address information in the second website list with the N pieces of web page address information in the first website list, and updating the first website list based on the comparison result comprises:
storing the M webpage address information in the second website list into a registry;
analyzing the M webpage address information in the registry to obtain M Uniform Resource Locators (URLs);
comparing the M URLs with URLs in the first website list, and updating the first website list based on a comparison result;
and after the first website list is updated, emptying the registry.
3. The method of claim 2, wherein the updating the first website list based on the comparison result comprises:
and when determining that the URL corresponding to the webpage address information in the second website list is not included in the first website list based on the comparison result, adding the webpage address information which is not included in the first website list in the second website list to the first website list.
4. The method of claim 2, wherein the updating the first website list based on the comparison result comprises:
and when determining that the URL corresponding to the webpage address information in the second website list is contained in the first website list based on the comparison result, replacing the webpage address information in the first website list by using the webpage address information contained in the first website list in the second website list.
5. The method according to any one of claims 1 to 4, wherein before comparing the M pieces of webpage address information in the second website list with the N pieces of webpage address information in the first website list, the method further comprises:
detecting whether the browser application is restarted;
and if the network address list is restarted, comparing the M webpage address information in the second website list with the N webpage address information in the first website list.
6. A terminal device is provided with a browser application, and is characterized by comprising an operation module, an acquisition module and an updating module;
the operation module is used for operating the browser application with a first website list as a bookmark, wherein the first website list is composed of N pieces of default webpage address information packaged in an installation package of the browser application, and N is an integer;
the acquisition module is used for initiating a connection request to a server at regular time, wherein the connection request is used for indicating the server to send a second website list to the terminal equipment; the second website list comprises M pieces of webpage address information, M is an integer, and at least part of the webpage address information in the second website list is different from that in the first website list;
the updating module is used for comparing the M webpage address information in the second website list with the N webpage address information in the first website list, and updating the first website list based on the comparison result to obtain an updated first website list.
7. The terminal device according to claim 6, wherein the update module comprises a storage unit, a parsing unit, an update unit and a clearing unit;
the storage unit is used for storing the M pieces of webpage address information in the second website list into a registry;
the analysis unit is used for analyzing the M webpage address information in the registry to obtain M Uniform Resource Locators (URLs);
the updating unit is used for comparing the M URLs with URLs in the first website list and updating the first website list based on a comparison result;
and the emptying unit is used for emptying the registry after the first website list is updated.
8. The terminal device of claim 7, wherein the updating unit is further configured to:
and when determining that the URL corresponding to the webpage address information in the second website list is not included in the first website list based on the comparison result, adding the webpage address information which is not included in the first website list in the second website list to the first website list.
9. The terminal device of claim 7, wherein the updating unit is further configured to:
and when determining that the URL corresponding to the webpage address information in the second website list is contained in the first website list based on the comparison result, replacing the webpage address information in the first website list by using the webpage address information contained in the first website list in the second website list.
10. The terminal device according to any one of claims 6 to 9, wherein the terminal device further comprises a detection module;
the detection module is used for detecting whether the browser application is restarted or not;
the updating module is further configured to compare the M pieces of web page address information in the second website list with the N pieces of web page address information in the first website list if the mobile terminal is restarted.
11. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the information processing method according to any one of claims 1 to 5.
12. An electronic device, comprising:
a memory for storing executable instructions;
a processor for implementing the information processing method of any one of claims 1 to 5 when executing the executable instructions.
CN201610203842.6A 2016-04-01 2016-04-01 Information processing method and terminal equipment Active CN105808785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610203842.6A CN105808785B (en) 2016-04-01 2016-04-01 Information processing method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610203842.6A CN105808785B (en) 2016-04-01 2016-04-01 Information processing method and terminal equipment

Publications (2)

Publication Number Publication Date
CN105808785A CN105808785A (en) 2016-07-27
CN105808785B true CN105808785B (en) 2021-01-05

Family

ID=56459915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610203842.6A Active CN105808785B (en) 2016-04-01 2016-04-01 Information processing method and terminal equipment

Country Status (1)

Country Link
CN (1) CN105808785B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685664A (en) * 2020-12-30 2021-04-20 惠州Tcl移动通信有限公司 Method and system for updating default bookmark by browser and intelligent terminal
CN116781425B (en) * 2023-08-21 2023-11-07 太平金融科技服务(上海)有限公司深圳分公司 Service data acquisition method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262544A (en) * 2010-05-24 2011-11-30 腾讯科技(深圳)有限公司 Method and device for upgrading software
CN102651021A (en) * 2012-03-31 2012-08-29 奇智软件(北京)有限公司 Icon content updating method and device
CN103095838A (en) * 2013-01-16 2013-05-08 福州博远无线网络科技有限公司 Method for upgrading Android smartphone software through downloading incremental upgrade package
CN104636367A (en) * 2013-11-11 2015-05-20 腾讯科技(深圳)有限公司 Bookmark recommendation method and device
US9251280B1 (en) * 2008-05-09 2016-02-02 Sprint Spectrum L.P. Method for bookmark detection and correction for a client device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102323931A (en) * 2011-08-25 2012-01-18 百度在线网络技术(北京)有限公司 Method for updating browser configuration information and equipment
CN103136316A (en) * 2012-02-29 2013-06-05 何劲 Website navigation system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9251280B1 (en) * 2008-05-09 2016-02-02 Sprint Spectrum L.P. Method for bookmark detection and correction for a client device
CN102262544A (en) * 2010-05-24 2011-11-30 腾讯科技(深圳)有限公司 Method and device for upgrading software
CN102651021A (en) * 2012-03-31 2012-08-29 奇智软件(北京)有限公司 Icon content updating method and device
CN103095838A (en) * 2013-01-16 2013-05-08 福州博远无线网络科技有限公司 Method for upgrading Android smartphone software through downloading incremental upgrade package
CN104636367A (en) * 2013-11-11 2015-05-20 腾讯科技(深圳)有限公司 Bookmark recommendation method and device

Also Published As

Publication number Publication date
CN105808785A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
US9639519B1 (en) Methods and systems for javascript parsing
CN108206802B (en) Method and device for detecting webpage backdoor
US11086962B2 (en) Webpage loading method, client and server
RU2689439C2 (en) Improved performance of web access
CN105843815B (en) Page comment processing method and device and browser
WO2015055081A1 (en) Method, apparatus and mobile terminal for browser based video playback
CN104077310B (en) Load the method, apparatus and system of resource file
US10158740B2 (en) Method and apparatus for webpage resource acquisition
CN106776761A (en) A kind of mobile browser renders the method and device of webpage
CN104572843A (en) Page loading method and device
CN107040584B (en) Method and device for downloading picture by client
CN102368213A (en) Page downloading control method and system for IE (Internet Explorer) core browser
WO2014029321A1 (en) Method, device and mobile terminal for restoring page
CN103955495B (en) The method for down loading and device of page child resource
CN103051706A (en) Dynamic webpage request processing system and method for dynamic website
CN102917074A (en) Server-side browser realization method and server
WO2015074459A1 (en) Method and apparatus for opening webpage, invoking client, and creating light app
WO2017097039A1 (en) Method and apparatus for detecting whether video can be played
WO2018133772A1 (en) Method, device, storage medium, and electronic device for obtaining webpage resources
WO2014056352A1 (en) Method, device and system for web page transcoding
CN110442286B (en) Page display method and device and electronic equipment
CN104038520A (en) Multi-version distributed resource management method and multi-version distributed resource management system
CN104023046B (en) Mobile terminal recognition method and device
CN102368250B (en) Page downloading control method and system for IE (Internet Explore) kernel browser
CN105808785B (en) Information processing method and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant