Method and device for generating website map

The method of generating sub-site maps through preset website map templates and paging solves the problems of complex website architecture and multi-search engine formats, and achieves fast, flexible and efficient website map generation to meet the personalization of different search engines and web page types. need.

CN112307395BActive Publication Date: 2024-12-06BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010793915.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-10
Publication Date
2024-12-06
Estimated Expiration
2040-08-10

AI Technical Summary

Technical Problem

When building website maps, the existing technology faces the differences between complex website architecture and multiple search engine formats, resulting in an increase in the workload of generating website maps, and it is impossible to quickly adjust to meet the personalized needs of different search engines, resulting in the lack of website maps. Complete or access is too stressful.

Method used

Quickly generate website maps by presetting site map templates that match information of different websites, supporting multiple search engine formats, and updating templates when needed to adapt to new search engines and web page types. Sub-site maps are generated in paging to ensure completeness and flexibility.

Benefits of technology

It realizes the rapid generation of website maps that meet the requirements of different search engines, avoids incomplete website maps and access pressure, improves generation efficiency and flexibility, and meets personalized needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112307395B_ABST
    Figure CN112307395B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a method and device for generating a website map. A specific implementation of the method includes: performing the following generation steps: obtaining website information of a target website, wherein the website information includes engine information of a search engine for indicating a website map of the target website; selecting a website map template that matches the website information from a preset website map template set as a target template according to the website information; and generating a website map of the target website using the target template. This implementation can meet the personalized needs of different websites for website maps in terms of search engines or web page types.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a method and device for generating a website map. Background Art

[0002] With the rapid development of Internet technology, the number of web pages on the Internet has increased explosively. Every website hopes to quickly synchronize its web page content and other information to search engines, so that search engines can timely index the website's web page content and other information.

[0003] At present, search engines often use a collection method based on a website map Sitemap to quickly collect information such as web page content of each website. Specifically, each website can build its own website map and then submit the website map to the search engine.

[0004] As website functions are developed and enriched, the website architecture, web page content and other aspects are becoming more and more complex. Especially for some large websites, there are many different types of web pages, which increases the workload of building network maps. In addition, there are various search engines on the Internet, and different search engines support different formats of website maps, which also increases the workload of building network maps. Summary of the invention

[0005] The embodiments of the present disclosure provide a method and apparatus for generating a website map.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for generating a website map, the method comprising: executing the following generation steps: obtaining website information of a target website, wherein the website information includes engine information of a search engine for indicating a website map of the target website; selecting a website map template that matches the website information from a preset website map template set as a target template based on the website information; and generating a website map of the target website using the target template.

[0007] In some embodiments, the website information also includes type information for indicating the type of web page of the target website.

[0008] In some embodiments, the above method also includes: obtaining filtering information; selecting a web page that does not contain filtering information from the web pages of the target website as the target web page; and using the target template to generate a website map of the target website, including: using the target template to generate a website map corresponding to the target web page.

[0009] In some embodiments, the method further includes: in response to receiving an update request for a sitemap template in the sitemap template set, updating the sitemap template in the sitemap template set according to the modification request.

[0010] In some embodiments, the above method also includes: receiving a task request for indicating the generation of a task, wherein the task is used to execute the above generation step, wherein the task request includes time information for indicating the execution frequency of the task; generating the task according to the task request; and executing the task in response to determining the execution time of the task according to the time information.

[0011] In some embodiments, the above-mentioned use of the target template to generate a website map of the target website includes: using the target template to generate sub-site maps corresponding to each web page of the target website; generating a website map of the target website based on the sub-site maps corresponding to each web page of the target website.

[0012] In some embodiments, the above method further includes: storing a website map, and obtaining address information indicating a storage address of the website map; and submitting the address information to a search engine.

[0013] In a second aspect, an embodiment of the present disclosure provides a device for generating a website map, the device comprising: an execution unit, configured to perform the following generation steps: obtaining website information of a target website, wherein the website information includes engine information of a search engine for indicating a website map of the target website; selecting a website map template that matches the website information from a preset website map template set as a target template based on the website information; and generating a website map of the target website using the target template.

[0014] In some embodiments, the website information also includes type information for indicating the type of web page of the target website.

[0015] In some embodiments, the execution unit is further configured to: obtain filtering information; select a webpage that does not contain filtering information from the webpages of the target website as the target webpage; and generate a website map corresponding to the target webpage using a target template.

[0016] In some embodiments, the apparatus further comprises an updating unit configured to, in response to receiving an update request for a sitemap template in the sitemap template set, update the sitemap template in the sitemap template set according to the modification request.

[0017] In some embodiments, the above-mentioned device also includes a task processing unit, which is configured to: receive a task request for indicating the generation of a task, wherein the task is used to execute the above-mentioned generation step, wherein the task request includes time information for indicating the execution frequency of the task; generate the task according to the task request; and execute the task in response to determining the execution time of the task according to the time information.

[0018] In some embodiments, the execution unit is further configured to: generate sub-sitemaps corresponding to each webpage of the target website using the target template; and generate a websitemap of the target website according to the sub-sitemaps corresponding to each webpage of the target website.

[0019] In some embodiments, the above-mentioned device further includes: a storage unit configured to store a website map and obtain address information indicating a storage address of the website map; and a submission unit configured to submit the address information to a search engine.

[0020] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.

[0021] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.

[0022] The method and device for generating a website map provided by the embodiments of the present disclosure respectively set website map templates matching different website information in advance, so that after obtaining the website information of a website, a website map of the website can be quickly generated by using the preset website map template matching the website information, so as to meet the personalized needs of different websites for website maps in terms of search engines or web page types, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0024] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;

[0025] Figure 2 is a flow chart of an embodiment of a method for generating a website map according to the present disclosure;

[0026] Figure 3 is a flow chart of another embodiment of a method for generating a website map according to the present disclosure;

[0027] Figure 4 is a flow chart of another embodiment of a method for generating a website map according to the present disclosure;

[0028] Figure 5is a flow chart of another embodiment of a method for generating a website map according to the present disclosure;

[0029] Figure 6 is a structural schematic diagram of an embodiment of a device for generating a website map according to the present disclosure;

[0030] Figure 7 It is a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. DETAILED DESCRIPTION

[0031] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0032] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0033] Figure 1 An exemplary architecture 100 is shown to which an embodiment of a method for generating a website map or an apparatus for generating a website map of the present disclosure can be applied.

[0034] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0035] The terminal devices 101, 102, 103 interact with the server 105 through the network 104 to receive or send messages, etc. Various client applications may be installed on the terminal devices 101, 102, 103. For example, search applications, browser applications, instant messaging tools, social platform software, information flow applications, crawler applications, etc.

[0036] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0037] The server 105 may be a server providing various services, such as a backend server providing support for client applications installed on the terminal devices 101, 102, 103. The server 105 may receive and process requests sent by the terminal devices 101, 102, 103, thereby generating processing results and feeding them back to the terminal devices 101, 102, 103.

[0038] It should be noted that the method for generating a website map provided in the embodiment of the present disclosure is generally performed by the terminal devices 101, 102, 103, and accordingly, the apparatus for generating a website map is generally provided in the terminal devices 101, 102, 103. At this time, the exemplary system architecture 100 may not have the server 105 and the network 104.

[0039] It should also be noted that the method for generating a website map provided in the embodiment of the present disclosure may also be executed by the server 105, and accordingly, the device for generating a website map may also be set in the server 105. At this time, the exemplary system architecture 100 may not have terminal devices 101, 102, 103 and network 104).

[0040] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server 105 is software, it can be implemented as multiple software or software modules (for example, multiple software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0041] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0042] Continue to refer Figure 2 , which shows a process 200 of an embodiment of a method for generating a website map according to the present disclosure. The method for generating a website map includes the following generating steps:

[0043] Step 201, obtaining website information of a target website.

[0044] In this embodiment, the website may be a website for displaying various contents. The target website may be a pre-specified website. The website information of the website may include various information related to the website.

[0045] The website information of the target website may include the engine information of the search engine for indicating the website map of the target website. Among them, the website map (Sitemap), also known as the site map, is a navigation web page file generated according to the structure, framework, content, etc. of the website. Generally, the website map of the website usually contains all the links of the website.

[0046] A website can submit a sitemap to a search engine so that the search engine can index the sitemap of the website. After that, the search engine can understand the structure of the website based on the sitemap, crawl the website pages, and thus index the content of each page of the website.

[0047] The search engine that includes the website map of the target website may refer to the search engine to which the website map of the target website is expected to be submitted. The engine information may be various information that can be used to characterize the search engine. For example, the engine information may be the name of the search engine.

[0048] The information recorded in the sitemap may vary depending on the actual application requirements. For example, the information recorded in the sitemap includes but is not limited to the URL, title, summary, content, type, creation time, modification time, and webpage status (such as accessible or inaccessible, etc.) of each webpage.

[0049] The execution body of the method for generating a website map (such as Figure 1 The terminal devices 101, 102, 103) shown in the figure can obtain the website information of the target website from the local or other terminal devices. For example, the website information input by the user can be received.

[0050] Step 202: According to the website information, a website map template matching the website information is selected from a preset website map template set as a target template.

[0051] In this embodiment, the website map template can be used to generate a website map. The specific content and format of the website map template can be flexibly set by the technician according to the actual application requirements. Specifically, a website map template matching the website information can be designed for different website information. At this time, the website map template set can be composed of website map templates corresponding to various different website information.

[0052] When the website map includes engine information, since the formats of website maps collected by different search engines are usually different, website map templates with different formats can be designed in advance for different search engines to match them.

[0053] In this embodiment, the correspondence between the website information and the website map templates can be pre-stored. At this time, the website map template corresponding to the website information of the target website can be selected from the website map template set as the target template.

[0054] Step 203, using the target template, generate a website map of the target website.

[0055] In this embodiment, the website map of the target website can be generated based on the target template using various existing website map generation methods. For example, according to the web page information (such as web page name, title, content, uniform resource locator URL, etc.) of each web page of the target website, by parsing the target template, the website structure, framework, content and other information are written into the target template according to the format of the target template, thereby obtaining the website map of the target website.

[0056] In some optional implementations of this embodiment, after the website map of the target website is generated, the website map can be further stored. Then, address information indicating the storage address of the website map can be obtained, and the address information can be submitted to the search engine corresponding to the target website. The address information can be various information that can indicate the storage address of the website map. For example, the address information can be the URL of the storage location of the website map.

[0057] As a result, the search engine can quickly crawl and index the web page content, website structure, etc. of the target website based on the website map. When users use the search engine to search for content related to the target website, the search engine can return the indexed relevant web pages of the target website for users to access these web pages, which in turn helps to increase the traffic of the target website and its natural ranking in the search engine.

[0058] In some optional implementations of this embodiment, in response to receiving an update request for a sitemap template in the sitemap template set, the sitemap template in the sitemap template set is updated according to the modification request.

[0059] Since the content of a website may be updated over time, the format of the sitemap supported by the search engine may also need to be adjusted, which may result in the sitemap template also needing to be updated. For example, it is necessary to add a sitemap template corresponding to a new search engine. For another example, it is necessary to add a sitemap template corresponding to a new web page type. For another example, useless sitemap templates can be deleted. For another example, existing sitemap templates can be modified or adjusted.

[0060] Therefore, the website map template can be managed and updated in time according to the changes in the application scenarios, so as to match the website information of each website in time, thereby ensuring the rapid generation of the website map and the reliability of the generated website map.

[0061] In some optional implementations of this embodiment, when using the selected target template to generate a website map of the target website, the target template can be used to generate sub-site maps corresponding to each web page of the target website; then, based on the sub-site maps corresponding to each web page of the target website, a website map of the target website is generated.

[0062] Optionally, the sub-sitemaps corresponding to the web pages of the target website can be generated in sequence using the target template according to the preset web page sequence. The web page sequence can represent the sequence between the web pages of the target website. The web page sequence can be set by the technician according to the actual application requirements. For example, the web page sequence can be determined according to the display weight of each web page.

[0063] For example, the sub-sitemap corresponding to each webpage can be generated in turn using the sitemap template corresponding to each webpage according to the pre-specified webpage order, and then the sub-sitemaps of each webpage can be combined to generate the sitemap of the target website. It should be understood that when the target website expects to access multiple search engines and / or the types of webpages of the target website are multiple, the target template corresponding to the target website includes multiple sitemap templates that match the corresponding search engines and webpage types.

[0064] By generating the sub-sitemaps corresponding to each web page in a paging manner and then combining them to obtain the sitemap of the target website, the sitemaps of different pages can be differentiated and the sitemap generation speed can be improved. Especially for some large websites with a large number of web pages, the sitemap generation efficiency can be greatly improved, and the flexibility of the sitemap generation process can also be improved.

[0065] Optionally, the content of the website map template may include two parts: one part may be used to record the index of the sub-site map corresponding to each web page of the target website, and the other part may be used to record the sub-site map of each web page of the target website, so as to facilitate the management and maintenance of the generated website map later.

[0066] For some target websites with many web pages, after creating the sub-sitemap of each web page, the address information of the sub-sitemap corresponding to each web page can be written into the index part of the sitemap template, wherein the address information of the sub-sitemap can be used to represent the storage address of the sub-sitemap. This can facilitate the quick location of the sub-sitemap corresponding to each web page and the modification of the sitemap of the target website.

[0067] Optionally, the number of web pages recorded in each website map template may also be set to control the size of the website map template.

[0068] Optionally, after the website map is generated, the number of web pages recorded in the website map may be further recorded, so that a technician can subsequently view and understand relevant information of the website map generated this time.

[0069] In the prior art, tools specifically used to generate website maps are usually used or the website map is generated by a development system. However, when a website needs to access a new search engine with different requirements for the website map, these methods cannot quickly adjust the website map to meet the different requirements of the search engine. In addition, some existing website map generation methods need to crawl the website's pages from the website's root directory, and then generate a website map based on the crawling results. However, this method usually results in an incomplete generated website map due to the inability to crawl some pages, and this method also brings access pressure to the website.

[0070] The method provided by the above-mentioned embodiment of the present disclosure can quickly generate a website map to access the corresponding search engine by pre-setting a matching website map template for search engines with different requirements for the website map. At the same time, when a website needs to access a new search engine, a website map can also be quickly generated by setting a website map template to expand the new search engine. In addition, the website map can also be generated in a paging manner according to the specified web page sequence, thereby ensuring the integrity of the content of the website map, avoiding the situation where some web pages are not included, and at the same time avoiding unnecessary visits to the website, reducing the access pressure on the website.

[0071] Further references Figure 3 , which shows a process 300 of another embodiment of a method for generating a website map. The process 300 of the method for generating a website map includes the following generating steps:

[0072] Step 301, obtaining website information of a target website, where the website information includes engine information and type information.

[0073] In this embodiment, the website information of the target website may include engine information of a search engine for indicating a website map of the target website, and may also include type information for indicating the type of web page of the target website. Specifically, the web pages of the target website may be divided into different types according to a specified division method based on actual application requirements. The type information may be information in various forms to characterize the type of the web page.

[0074] Step 302: According to the website information, a website map template matching the website information is selected from a preset website map template set as a target template.

[0075] In this embodiment, the website map that matches the website information of the target website may refer to a website map template that matches both the type of the web page of the target website and the corresponding search engine.

[0076] As an example, the search engines corresponding to the target website include search engines "A" and "B", and the two search engines support different formats of website maps. The web page types of the target website include "T1", "T2", and "T3", and the formats of website maps matching different types of web pages are different. At this time, a website map template that matches the three types of web pages "T1", "T2", and "T3" can be set for search engine "A". At the same time, a website map template that matches the three types of web pages "T1", "T2", and "T3" can be set for search engine "B". That is, in this case, six types of website map templates can be pre-set.

[0077] Step 303: Generate a website map of the target website using the target template.

[0078] The specific execution process of the contents not described in detail in the above steps 301-303 can be referred to Figure 2 The relevant descriptions in the corresponding embodiments will not be repeated here.

[0079] Existing methods for generating website maps cannot quickly adjust website maps when faced with personalized needs of search engines for different types of web pages. The method provided by the above-mentioned embodiments of the present disclosure sets matching website map templates for different search engines respectively, and further sets matching website map templates for different types of web pages respectively, thereby determining the website map template used by the target website according to the search engine corresponding to the target website and the type of web page of the target website, and then quickly generating a website map that matches the search engine and web page type corresponding to the target website, thereby improving the generation speed of the website map, and meeting the personalized needs of search engines for different types of web pages, which also facilitates the search engine to expand the collection of different types of web pages.

[0080] Further references Figure 4 , which shows a process 400 of another embodiment of a method for generating a website map. The process 400 of the method for generating a website map includes the following generating steps:

[0081] Step 401, obtaining website information of a target website.

[0082] Step 402, obtaining filtering information, and selecting a web page that does not contain the filtering information from the web pages of the target website as the target web page.

[0083] In this embodiment, the filtering information can be various types of information such as text and images. The filtering information can be set in advance by a technician according to actual application requirements. For example, private information or sensitive information (such as sensitive words, sensitive images, etc.) of the target website can be set in advance as filtering information. Then, the web pages containing the filtering information can be removed from the various web pages of the target website to obtain a web page that does not contain the filtering information as the target web page, thereby filtering the web pages of the target website.

[0084] Step 403: According to the website information, a website map template matching the website information is selected from a preset website map template set as a target template.

[0085] In this embodiment, after determining the target web page, only the sitemap templates that match the website information of the target website and the target web page of the target website can be selected from the sitemap template set as the target template, thereby avoiding the selection of unnecessary sitemap templates.

[0086] Step 404: Generate a website map corresponding to the target webpage using the target template.

[0087] In this embodiment, a sitemap involving only the target webpage of the target website can be generated based on the target template using various existing sitemap generation methods, so that the generated sitemap does not include relevant content of webpages containing filtering information other than the target webpage.

[0088] The specific execution process of the contents not described in detail in the above steps 401-404 can be referred to Figure 2 and Figure 3 The relevant descriptions in the corresponding embodiments will not be repeated here.

[0089] In some optional implementations of the present embodiment, in response to receiving an update request for filtering information, the filtering information is updated according to the received update request. Specifically, according to changes in the actual application scenario, the filtering information may also change accordingly. For example, there may be situations where sudden sensitive words need to be filtered. At this time, the filtering information may be updated at any time according to demand (such as adding new filtering information, deleting filtering information, etc.), thereby achieving flexible management and control of the filtering information, and then the web pages involved in the generated website map of the target website may be controlled to filter the web pages containing the filtering information, thereby achieving rapid filtering of the target website. Then, a website map of the target website may be generated based on the filtered web pages.

[0090] When a large number of web pages on a website contain content such as sensitive information, the existing methods for generating website maps cannot quickly delete the relevant content of these web pages from the website map. The method provided by the above-mentioned embodiment of the present disclosure pre-sets filtering information so that when generating a website map, the web pages of the target website are first filtered according to the filtering information to quickly remove non-compliant web pages, and then the website map is generated based on the filtered target website. In addition, the filtering information of the target website can be conveniently and flexibly controlled according to needs, so as to ensure timely filtering of the target website.

[0091] Further references Figure 5 , which shows a process 500 of another embodiment of a method for generating a website map. The process 500 of the method for generating a website map includes the following steps:

[0092] Step 501: Receive a task request for instructing to generate a task.

[0093] In this embodiment, the execution subject may receive a task request sent by a user. The task request is used to indicate that the generated task can be used to perform the steps of generating a website map as shown in steps 5031-5033 below. The task request may include time information. The time information may be used to indicate the execution frequency of the task generated as indicated by the task request. For example, the time information may be used to indicate that the task is executed once a day.

[0094] Step 502: Generate a task according to the task request.

[0095] In this embodiment, the task request may be generated to indicate the generated task. Specifically, according to different application requirements, the task request may also include various information of the task indicated by it. For example, the task request may also include the name of the website map generated after the task is executed.

[0096] Step 503, in response to determining the execution time of the arrival task according to the time information, the following generation steps 5031-5033 are executed:

[0097] Step 5031, obtaining website information of the target website.

[0098] Step 5032: According to the website information, a website map template matching the website information is selected from a preset website map template set as a target template.

[0099] Step 5033, using the target template, generate a website map of the target website.

[0100] For details about the execution process of the content not described in detail in the above steps, please refer to Figure 2 , Figure 3 , Figure 4The relevant descriptions in the corresponding embodiments will not be repeated here.

[0101] Alternatively, various existing frameworks for implementing task scheduling (such as Quartz, XXL-JOB, Elastic-Job, etc.) can be used to complete the generation and control of tasks. For example, after receiving a task request, the task requested to generate the task can be added to the Quartz schedule. In this way, the generation process and scheduling control of the task can be more conveniently controlled.

[0102] In some optional implementations of this embodiment, the time information included in the task request can be represented using a Cron expression, so that the task generation time can be dynamically adjusted by controlling the Cron expression, that is, the generation time of the website map can be dynamically adjusted, thereby flexibly controlling the update frequency of the website map.

[0103] In some optional implementations of this embodiment, in response to receiving a control instruction of a task, the task is controlled according to the control instruction, wherein the control instruction can be used to indicate at least one of the following: start, pause, stop. Thus, when generating a task indicated by a task request, the task can be paused, stopped, started, etc. as required, thereby achieving real-time dynamic control of the website map generation process.

[0104] The method provided by the above-mentioned embodiment of the present disclosure can execute the task at a specified time to generate a website map by creating a task for generating a website map, thereby facilitating the management and control of the website map generation cycle, and at the same time, through real-time dynamic control of the task execution process, flexible control of the website map generation process is achieved.

[0105] Further references Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for generating a website map. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0106] like Figure 6 As shown, the apparatus 600 for generating a website map provided in this embodiment includes an execution unit 601. The execution unit 601 is configured to execute the following generation steps: obtaining website information of a target website, wherein the website information includes engine information of a search engine for indicating a website map of the target website; selecting a website map template matching the website information from a preset website map template set as a target template according to the website information; and generating a website map of the target website using the target template.

[0107] In the apparatus 600 for generating a website map in this embodiment, the specific processing of the execution unit 601 and the technical effects thereof can be referred to in Figure 2 The relevant descriptions of step 201, step 202 and step 203 in the corresponding embodiment are not repeated here.

[0108] In some optional implementations of this embodiment, the website information also includes type information for indicating the type of web page of the target website.

[0109] In some optional implementations of this embodiment, the execution unit 601 is further configured to: obtain filtering information; select a web page that does not contain filtering information from the web pages of the target website as the target web page; and generate a website map corresponding to the target web page using a target template.

[0110] In some optional implementations of this embodiment, the above-mentioned device 600 for generating a website map also includes an updating unit (not shown in the figure) configured to: in response to receiving an update request for a website map template in the website map template set, update the website map template in the website map template set according to the modification request.

[0111] In some optional implementations of this embodiment, the above-mentioned device 600 for generating a website map also includes a task processing unit (not shown in the figure) configured to: receive a task request for indicating the generation of a task, wherein the task is used to perform the above-mentioned generation step, wherein the task request includes time information for indicating the execution frequency of the task; generate a task according to the task request; and execute the task in response to determining the execution time of the task according to the time information.

[0112] In some optional implementations of this embodiment, the execution unit 601 is further configured to: generate sub-sitemaps corresponding to each web page of the target website using the target template; and generate a websitemap of the target website according to the sub-sitemaps corresponding to each web page of the target website.

[0113] In some optional implementations of this embodiment, the above-mentioned device 600 for generating a website map also includes a storage unit (not shown in the figure) configured to store the website map and obtain address information indicating the storage address of the website map; a submission unit is configured to submit the address information to the search engine.

[0114] The device provided by the above-mentioned embodiment of the present disclosure performs the following generation steps through the execution unit: obtaining the website information of the target website, wherein the website information includes the engine information of the search engine for indicating the website map of the target website; selecting a website map template matching the website information from a preset website map template set as the target template according to the website information; and generating the website map of the target website using the target template. In this way, the website map of the website can be generated quickly, and the personalized needs of different websites for the website map in terms of search engines or web page types can be met.

[0115] Reference below Figure 7 , which shows an electronic device (eg, Figure 1 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0116] like Figure 7 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0117] Typically, the following devices may be connected to the I / O interface 705: input devices 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 608 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication devices 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 7Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0118] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0119] It should be noted that the computer-readable medium described in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0120] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device performs the following generation steps: obtaining website information of the target website, wherein the website information includes engine information of a search engine for indicating a website map of the target website; selecting a website map template that matches the website information from a preset website map template set as a target template based on the website information; and generating a website map of the target website using the target template.

[0121] Computer program code for performing the operations of embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0122] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0123] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor including an execution unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the execution unit may also be described as "a unit that performs the following generation steps: obtaining website information of a target website, wherein the website information includes engine information of a search engine for indicating a website map of the target website; selecting, based on the website information, a website map template that matches the website information from a preset website map template set as a target template; using the target template, generating a website map of the target website ” .

[0124] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) to form a technical solution.

Claims

1. A method for generating a website map, comprising: Perform the following build steps: Acquire website information of a target website, wherein the website information includes engine information of a search engine for indicating a website map of the target website; According to the website information, selecting a website map template matching the website information from a preset website map template set as a target template; The target template is used to generate a website map of the target website, including: writing the structure, framework, and content of the target website into the target template according to the format of the target template to generate a website map of the target website.

2. The method according to claim 1, wherein: The website information also includes type information for indicating the type of the webpage of the target website.

3. The method according to claim 1, wherein: The method further comprises: Get filtering information; Selecting a web page that does not contain the filtering information from the web pages of the target website as the target web page; and The step of generating a website map of the target website by using the target template includes: The target template is used to generate a website map corresponding to the target webpage.

4. The method according to claim 1, wherein: The method further comprises: In response to receiving an update request for a site map template in the site map template set, the site map template in the site map template set is updated according to the update request.

5. The method according to claim 1, wherein: The method further comprises: receiving a task request for instructing to generate a task, wherein the task is used to perform the generating step, wherein the task request includes time information for indicating the execution frequency of the task; Generate a task according to the task request; In response to determining that the execution time of the task has arrived according to the time information, the task is executed.

6. The method according to claim 1, wherein: The step of generating a website map of the target website by using the target template includes: Generate sub-site maps corresponding to each web page of the target website using the target template; A website map of the target website is generated according to the sub-site maps corresponding to each web page of the target website.

7. The method according to any one of claims 1 to 6, wherein: The method further comprises: storing the website map, and obtaining address information indicating a storage address of the website map; Submit the address information to the search engine.

8. A device for generating a website map, wherein: The device comprises: The execution unit is configured to perform the following generation steps: Acquire website information of a target website, wherein the website information includes engine information of a search engine for indicating a website map of the target website; According to the website information, selecting a website map template matching the website information from a preset website map template set as a target template; The target template is used to generate a website map of the target website, including: writing the structure, framework, and content of the target website into the target template according to the format of the target template to generate a website map of the target website.

9. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and system used for generating website map for website

    CN108255831A