CN113010811B - Webpage acquisition method and device, electronic equipment and computer readable storage medium - Google Patents

Webpage acquisition method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113010811B
CN113010811B CN201911323773.2A CN201911323773A CN113010811B CN 113010811 B CN113010811 B CN 113010811B CN 201911323773 A CN201911323773 A CN 201911323773A CN 113010811 B CN113010811 B CN 113010811B
Authority
CN
China
Prior art keywords
webpage
user identification
target
user
version number
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
CN201911323773.2A
Other languages
Chinese (zh)
Other versions
CN113010811A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201911323773.2A priority Critical patent/CN113010811B/en
Publication of CN113010811A publication Critical patent/CN113010811A/en
Application granted granted Critical
Publication of CN113010811B publication Critical patent/CN113010811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/954Navigation, e.g. using categorised browsing
    • 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/9566URL specific, e.g. using aliases, detecting broken or misspelled links

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)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a webpage acquisition method, a webpage acquisition device, electronic equipment and a computer readable storage medium, and relates to the technical field of webpages. The specific implementation scheme is as follows: receiving a webpage access request sent by front-end equipment, wherein the webpage access request comprises a website and a first user identifier; determining different versions of webpages corresponding to the websites; selecting a target webpage from the webpages of different versions according to the first user identification; and sending the webpage data of the target webpage to the front-end equipment. According to the embodiment of the application, the website can be used, and different webpages can be navigated according to different user identifications, so that different use requirements of different users on webpage functions are met.

Description

Webpage acquisition method and device, electronic equipment and computer readable storage medium
Technical Field
The application relates to the field of computer technology, in particular to the field of web page technology.
Background
The web page is identified and accessed via a web site, which is the portal to navigate the web page. Currently, the web pages navigated by the same web site are identical. When different users navigate web pages through the same web site, the resulting web pages are identical. However, the requirements of different users on the web page functions are often different, so that the existing method of navigating a single web page through a website often cannot meet the user requirements.
Disclosure of Invention
The embodiment of the application provides a webpage acquisition method, a webpage acquisition device, electronic equipment and a computer readable storage medium, so as to solve the problem that the conventional mode of navigating a single webpage through a website often cannot meet the use requirement of a user.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for acquiring a web page, including:
receiving a webpage access request sent by front-end equipment, wherein the webpage access request comprises a website and a first user identifier;
determining different versions of webpages corresponding to the websites;
selecting a target webpage from the webpages of different versions according to the first user identification;
and sending the webpage data of the target webpage to the front-end equipment.
Thus, different users can access different webpages through the same website, and different use requirements of different users on webpage functions are met; furthermore, the new version and the old version compatible bundles can be put down when the web page is updated, so that the web page is updated more flexibly, the web page fine granularity control is better, and the web page version required by a user can be flexibly lifted.
Optionally, the selecting, according to the first user identifier, a target webpage from the webpages of different versions includes:
determining a target version number corresponding to the first user identifier according to a preset mapping relation between the user identifier and the webpage version number;
and selecting a target webpage corresponding to the target version number from the webpages of different versions.
Therefore, the target webpage is selected by means of the preset mapping relation between the user identification and the webpage version number, and the required webpage can be accurately provided for the user.
Optionally, the method further comprises:
updating the webpage version number corresponding to at least one user identifier to obtain updated content;
and correcting the mapping relation between the preset user identification and the webpage version number according to the updated content.
Therefore, the webpage version of the user can be dynamically adjusted, various requirements of the user are met, and after the webpage version of the user is updated, the corresponding collected websites do not need to be changed.
In a second aspect, an embodiment of the present application provides a method for acquiring a web page, including:
sending a webpage access request to a server, wherein the webpage access request comprises a website and a first user identifier;
and receiving webpage data of a target webpage sent by the server according to the webpage access request, wherein the target webpage is selected from webpages of different versions corresponding to the website by the server according to the first user identification.
Optionally, the target webpage corresponds to a target version number, and the target version number is a webpage version number corresponding to the first user identifier determined according to a mapping relation between a preset user identifier and a webpage version number.
Optionally, the first user identifier is an initial access user identifier, and after receiving the webpage data of the target webpage sent by the server according to the webpage access request, the method further includes:
transmitting a device identifier to the server;
receiving a second user identification sent by the server according to the equipment identification;
judging whether the second user identifier is consistent with the locally stored user identifier or not;
and if the second user identification is consistent with the locally stored user identification, determining that the webpage data is correct.
Optionally, after the determining whether the second user identifier is consistent with the user identifier stored in the front-end device, the method further includes:
if the second user identification is inconsistent with the locally stored user identification, writing the second user identification into the local storage, and initiating a webpage access process to the server based on the second user identification.
In a third aspect, an embodiment of the present application further provides a web page obtaining apparatus, including:
the first receiving module is used for receiving a webpage access request sent by front-end equipment, wherein the webpage access request comprises a website and a first user identifier;
the first determining module is used for determining webpages of different versions corresponding to the websites;
the selecting module is used for selecting a target webpage from the webpages of different versions according to the first user identification;
and the first sending module is used for sending the webpage data of the target webpage to the front-end equipment.
Optionally, the selecting module includes:
the determining unit is used for determining a target version number corresponding to the first user identifier according to a preset mapping relation between the user identifier and the webpage version number;
and the selecting unit is used for selecting the target webpage corresponding to the target version number from the webpages of different versions.
Optionally, the apparatus further includes:
the updating module is used for updating the webpage version number corresponding to at least one user identifier to obtain updated content;
and the correction module is used for correcting the mapping relation between the preset user identification and the webpage version number according to the updated content.
In a fourth aspect, an embodiment of the present application further provides a web page obtaining apparatus, including:
the second sending module is used for sending a webpage access request to the server, wherein the webpage access request comprises a website and a first user identifier;
the second receiving module is used for receiving the webpage data of the target webpage sent by the server according to the webpage access request, wherein the target webpage is selected from the webpages of different versions corresponding to the website by the server according to the first user identification.
Optionally, the target webpage corresponds to a target version number, and the target version number is a webpage version number corresponding to the first user identifier determined according to a mapping relation between a preset user identifier and a webpage version number.
Optionally, the first user identifier is an initial access user identifier, and the apparatus further includes:
the third sending module is used for sending the equipment identification to the server after receiving the webpage data;
the third receiving module is used for receiving a second user identifier sent by the server according to the equipment identifier;
the judging module is used for judging whether the second user identifier is consistent with the locally stored user identifier or not;
and the second determining module is used for determining that the webpage data is correct when the second user identification is consistent with the locally stored user identification.
Optionally, the apparatus further includes:
and the processing module is used for writing the second user identification into the local storage when the second user identification is inconsistent with the locally stored user identification, and initiating a webpage access process to the server based on the second user identification.
In a fifth aspect, embodiments of the present application further provide an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the web page retrieval method as described above.
In a sixth aspect, embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the web page acquisition method as described above.
One embodiment of the above application has the following advantages or benefits: the web site can be used for navigating to different web pages according to different user identifications, so that different use requirements of different users on the web page functions are met. Because the technical means of receiving the webpage access request sent by the front-end equipment, wherein the webpage access request comprises the website and the first user identification, determining the webpages of different versions corresponding to the website, selecting the target webpage from the webpages of different versions according to the first user identification, and sending the webpage data of the target webpage to the front-end equipment is adopted, the technical problem that the use requirement of a user cannot be met in the existing mode of navigating a single webpage through the website is solved, and the technical effect of meeting the different use requirements of different users on webpage functions is achieved.
Other effects of the above alternative will be described below in connection with specific embodiments.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
FIG. 1 is one of the flowcharts of the web page acquisition method of the embodiment of the present application;
FIG. 2 is a second flowchart of a web page obtaining method according to an embodiment of the present application;
FIG. 3 is a flow chart of a web page obtaining process according to an embodiment of the present application;
FIG. 4 is one of the block diagrams of the web page obtaining apparatus of the embodiment of the present application;
FIG. 5 is one of the block diagrams of the web page obtaining apparatus of the embodiment of the present application;
fig. 6 is a block diagram of an electronic device for implementing a web page acquisition method according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
To facilitate an understanding of the embodiments of the present application, the following is first described.
The web Address (Uniform Resource Locator, URL) is understood to be a web Address, which refers to the Address (Address) of a standard resource on the internet, like a house number on a network. The web site typically contains a Domain name (Domain), which is the name of a computer or group of computers on the internet that is made up of a string of characters separated by dots, that identifies the electronic orientation of the computer during data transmission. Domain names can be said to be a designation of IP addresses.
A web page (web page) is a file suitable for the world wide web, web browser, etc., and can be stored in a certain part or group of computers at a certain corner of the world. The web page is identified and accessed via a web address (URL), which is an entry into the navigation web page.
In order to solve the problem that the existing method for navigating a single webpage through a website can not meet the user's use requirement, the embodiment of the application provides a webpage acquisition method, which uses a website, and can navigate to different webpages according to different user identifications, so that different user requirements of different users on webpage functions can be met.
A scenario where embodiments of the present application are applicable may include Virtual Reality (VR) teaching, as well as any product that requires different pages to be presented according to different users.
Referring to fig. 1, an embodiment of the present application provides a web page obtaining method applied to a server, as shown in fig. 1, the method includes the following steps:
step 101: and receiving a webpage access request sent by the front-end equipment.
In this embodiment, the web page access request includes at least a web address and a first user identifier. The website is an entry for navigating a corresponding webpage and can be stored in the front-end equipment in advance. The first user identification may be understood as a unique identification of the user currently initiating the web page request process, such as user identity information, user name, etc. In addition, for the new user initiated web page access process, the first user identification may be selected as a uniform initial access user identification so that a web page may be provided for the new user. The initial access user identification is, for example, a default preset value or a preset symbol (such as last) or the like.
It should be noted that the above server may be selected from a web server, a background server, or a service unit that integrates a web server and a background server. The front-end equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer and the like.
Step 102: and determining the webpages of different versions corresponding to the websites.
In this embodiment, for different versions of web pages corresponding to a website, the version number may be used as a folder identifier and be respectively published in different folders. In this way, web pages of different versions can be conveniently navigated to based on the web address; further, when the new version webpage is released, the old version webpage is not affected, and meanwhile, the user who is using the old version webpage is not affected.
Step 103: and selecting a target webpage from the webpages of different versions according to the first user identification.
In this embodiment, in order to provide a user with a desired web page function conveniently, when a multi-version web page exists, a mapping relationship between a user identifier and a web page version number (or a web page version type, a web page version identifier, a web page version index, etc.) may be preset and managed by the server, and a web page of a corresponding version is provided for the user based on the mapping relationship.
Optionally, the process of selecting the target web page in step 103 may include: firstly, determining a target version number corresponding to a first user identifier according to a mapping relation between a preset user identifier and a webpage version number; and then, selecting a target webpage corresponding to the target version number from the webpages of different versions. Therefore, the target webpage is selected by means of the preset mapping relation between the user identification and the webpage version number, and the required webpage can be accurately provided for the user.
Step 104: and sending the webpage data of the target webpage to front-end equipment.
Specifically, after receiving the webpage data, the front-end device may load and generate a target webpage according to the webpage data, so as to be viewed and previewed by a user.
The webpage acquisition method can receive a webpage access request sent by front-end equipment, wherein the webpage access request comprises a website and a first user identification, determines webpages of different versions corresponding to the website, selects a target webpage from the webpages of different versions according to the first user identification, and sends webpage data of the target webpage to the front-end equipment. Therefore, compared with the existing scheme, the method and the system can realize the navigation to different webpages according to different user identifications by using one website, thereby meeting different use requirements of different users on webpage functions.
Further, by means of the method and the device, the new version and the old version compatible bundles can be put down when the webpage is updated, so that the webpage is updated more flexibly, the fine granularity control of the webpage is better, and the webpage version required by a user can be flexibly lifted.
In the embodiment of the application, in order to meet various demands of users, the webpage version numbers corresponding to the user identifications can be dynamically adjusted based on the demands of the users and/or the updated service characteristics and the like so as to provide the users with required webpage versions.
Optionally, the server in the embodiment of the present application may further: updating the webpage version number corresponding to at least one user identifier to obtain updated content; and correcting the mapping relation between the preset user identification and the webpage version number according to the updated content. Therefore, the webpage version of the user can be dynamically adjusted, various requirements of the user are met, and after the webpage version of the user is updated, the corresponding collected websites do not need to be changed.
In one implementation, taking the server in the embodiment of the present application as an example of a service unit integrating the background server and the web server, the background server may be responsible for managing the web version numbers corresponding to different user identifiers, for example, updating the web version number corresponding to a certain user identifier, and the web server may be responsible for managing the mapping relationship between the user identifier and the web version number, for example, based on the updated content of the background server, to correct the mapping relationship between the current user identifier and the web version number.
Referring to fig. 2, an embodiment of the present application provides a method for acquiring a web page, which is applied to a front-end device, as shown in fig. 2, and includes the following steps:
step 201: and sending a webpage access request to the server.
In this embodiment, the web page access request includes at least a web address and a first user identifier. The website is an entry for navigating a corresponding webpage and can be stored in the front-end equipment in advance. The first user identification may be understood as a unique identification of the user currently initiating the web page request process, such as user identity information, user name, etc. In addition, for the new user initiated web page access process, the first user identification may be selected as a uniform initial access user identification so that a web page may be provided for the new user. The initial access user identification is, for example, a default preset value or a preset symbol (such as last) or the like.
The web page access request may be sent to the server through various interaction modes between the user and the front-end equipment. For example, these interactions may include, but are not limited to: clicking on a web page link, clicking on a virtual or physical button of a linked web page, entering a web site in a browser, shaking a terminal, gesture recognition, face recognition, voice recognition, or other human-machine interaction means to be developed in the future, and the like.
In one embodiment, a Customer identification module (Customer Loader) may be included in the head-end equipment, and the published web page will preferentially load this module to identify the Customer identification. In particular, for web pages embedded in an application (e.g., android application, IOS application, personal Computer (PC) application, etc.), the user identification module may be implemented by the application. The subscriber identity module is independent of the web page.
Step 202: and receiving the webpage data of the target webpage sent by the server according to the webpage access request.
In this embodiment, the target web page is selected from web pages of different versions corresponding to the web address by the server according to the first user identifier. Optionally, the target webpage may correspond to a target version number, where the target version number is a webpage version number corresponding to the first user identifier determined according to a mapping relationship between a preset user identifier and a webpage version number.
According to the webpage acquisition method, the webpage access request is sent to the server, the webpage data of the target webpage sent by the server according to the webpage access request is received, the target webpage is selected from the webpages of different versions according to the user identification, one website can be used, different webpages can be navigated according to different user identifications, and therefore different use requirements of different users on webpage functions are met.
In this embodiment, in order to provide a web page for a new user, when the new user initiates a web page access process, a first user identifier included in a corresponding web page access request may be a uniform initial access user identifier, such as a default preset value or a preset symbol. Further, in order to ensure that the required web page is provided for the new user, after receiving the web page data, the front-end device may further verify the user identifier of the local Storage (local Storage) by means of the user identifier obtained from the background server, so as to determine that the obtained web page version is correct.
Specifically, when the first user identifier included in the web page access request is the initial access user identifier, after the step 202, the method further includes:
transmitting the equipment identification to a server; wherein the device identification may be selected as a globally unique identifier (Globally Unique Identifier, GUID) or the like.
Receiving a second user identification sent by the server according to the equipment identification;
judging whether the second user identifier is consistent with the locally stored user identifier or not;
and if the second user identification is consistent with the locally stored user identification, determining that the received webpage data is correct. In this way, the user can continue browsing the web page content.
If the second user identifier is inconsistent with the locally stored user identifier, it can be determined that the received webpage data is likely to be incorrect, and a webpage jump needs to be performed, at this time, the second user identifier can be written into the local storage, and a webpage access process is initiated to the server based on the second user identifier, that is, the second user identifier is included in the webpage access request to obtain the webpage of the corresponding version. In this way, it is ensured that the new user is provided with the required web page.
It should be noted that, since the user id generally does not change, authentication may not be required when performing one authentication and restarting the web page access process after one jump.
The web page acquisition process in the embodiment of the present application is described below with reference to fig. 3.
In a specific embodiment of the present application, as shown in fig. 3, the functional main body may include: front end equipment, web servers (Nginx Server) and background servers (DataBase). The front-end equipment comprises a user identification module. For a new user, the web page acquisition process involved may include: 1) The front-end equipment sends a webpage access request vrreduce, xxxxx, com/solution/edu/platform/c/last to a webpage server, wherein the webpage access request includes a website and an initial access user identifier last; 2) The webpage server determines a target version number 1.2 corresponding to a last according to a mapping relation between a preset user identifier and a webpage version number, and selects a target webpage corresponding to the target version number 1.2; 3) The webpage server transmits webpage data of the target webpage to front-end equipment; 4) A user identification module in front-end equipment acquires a locally stored GUID; 5) The front-end equipment sends the GUID to a background server and obtains a user identifier (user ID) corresponding to the GUID in a database in the background server through a background interface; 6) The user identification module acquires a locally stored user identification, compares the locally stored user identification with the user identification acquired from the background server, determines that the acquired webpage version is correct if the locally stored user identification is consistent with the user identification acquired from the background server, and executes the step 7 if the locally stored webpage version is inconsistent with the user identification acquired from the background server; 7) The front-end equipment initiates a webpage access process based on the new user identification; 8) The front-end equipment sends a webpage access request vrreduce, xxxxx, com/solution/edu/platform/c/custom2 to a webpage server, wherein the webpage access request includes a website and a user identifier custom2; 9) The webpage server determines a target version number 1.1 corresponding to the custom2 according to a preset mapping relation between the user identification and the webpage version number, and selects a target webpage corresponding to the target version number 1.1; 10 The web server delivers the web data of the target web page to the front-end equipment. For the old user, the related webpage acquisition process comprises the following steps: 8), 9) and 10) as described above. That is, the web page acquisition process for a new user may need to be skipped once, while the web page acquisition process for an old user does not need to be skipped.
Referring to fig. 4, an embodiment of the present application provides a web page obtaining apparatus, which is applied to a server, as shown in fig. 4, the web page obtaining apparatus 40 includes:
the first receiving module 41 is configured to receive a web page access request sent by a front-end device, where the web page access request includes a web address and a first user identifier;
a first determining module 42, configured to determine different versions of web pages corresponding to the web address;
a selecting module 43, configured to select a target web page from the web pages of different versions according to the first user identifier;
and a first sending module 44, configured to send the web page data of the target web page to the front-end device.
Optionally, the selecting module 43 includes:
the determining unit is used for determining a target version number corresponding to the first user identifier according to a preset mapping relation between the user identifier and the webpage version number;
and the selecting unit is used for selecting the target webpage corresponding to the target version number from the webpages of different versions.
Optionally, the apparatus may further include:
the updating module is used for updating the webpage version number corresponding to at least one user identifier to obtain updated content;
and the correction module is used for correcting the mapping relation between the preset user identification and the webpage version number according to the updated content.
The web page obtaining device 40 of the present embodiment can implement each process implemented in the embodiment shown in fig. 1 and achieve the same beneficial effects, and in order to avoid repetition, the description is omitted here.
Referring to fig. 5, the embodiment of the present application further provides a web page obtaining apparatus, which is applied to a front-end device, as shown in fig. 5, the web page obtaining apparatus 50 includes:
a second sending module 51, configured to send a web access request to a server, where the web access request includes a web address and a first user identifier;
the second receiving module 52 is configured to receive web page data of a target web page sent by the server according to the web page access request, where the target web page is selected from web pages of different versions corresponding to the web address by the server according to the first user identifier.
Optionally, the target webpage corresponds to a target version number, and the target version number is a webpage version number corresponding to the first user identifier determined according to a mapping relation between a preset user identifier and a webpage version number.
Optionally, the first user identifier is an initial access user identifier, and the apparatus further includes:
the third sending module is used for sending the equipment identification to the server after receiving the webpage data;
the third receiving module is used for receiving a second user identifier sent by the server according to the equipment identifier;
the judging module is used for judging whether the second user identifier is consistent with the locally stored user identifier or not;
and the second determining module is used for determining that the webpage data is correct when the second user identification is consistent with the locally stored user identification.
Optionally, the apparatus further includes:
and the processing module is used for writing the second user identification into the local storage when the second user identification is inconsistent with the locally stored user identification, and initiating a webpage access process to the server based on the second user identification.
The web page obtaining apparatus 50 of the present embodiment can implement each process implemented in the embodiment shown in fig. 2 and achieve the same beneficial effects, and in order to avoid repetition, the description is omitted here.
According to embodiments of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 6, a block diagram of an electronic device for implementing the web page obtaining method according to the embodiment of the present application is shown. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 6, the electronic device includes: one or more processors 601, memory 602, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 601 is illustrated in fig. 6.
Memory 602 is a non-transitory computer-readable storage medium provided herein. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the web page retrieval method provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to execute the web page acquisition method provided by the present application.
The memory 602 is used as a non-transitory computer readable storage medium, and may be used to store a non-transitory software program, a non-transitory computer executable program, and modules, such as program instructions/modules corresponding to the web page obtaining method in the embodiments of the present application (e.g., the first receiving module 41, the first determining module 42, the selecting module 46, and the first transmitting module 44 shown in fig. 4, or the second transmitting module 51 and the second receiving module 52 shown in fig. 5). The processor 601 executes various functional applications of the server and data processing, i.e., implements the web page acquisition method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 602.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created by use of the electronic device, and the like. In addition, the memory 602 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 602 may optionally include memory located remotely from processor 601, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the webpage obtaining method may further include: an input device 606 and an output device 604. The processor 601, memory 602, input devices 606, and output devices 604 may be connected by a bus or otherwise, for example in fig. 6.
The input device 606 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device of the web page retrieval method, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointer stick, one or more mouse buttons, a trackball, a joystick, and the like. The output means 604 may include a display device, auxiliary lighting means (e.g., LEDs), tactile feedback means (e.g., vibration motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the website can be used, and different webpages can be navigated according to different user identifications, so that different use requirements of different users on webpage functions are met.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (12)

1. A web page retrieval method comprising:
receiving a webpage access request sent by front-end equipment, wherein the webpage access request comprises a website and a first user identifier;
determining different versions of webpages corresponding to the websites;
selecting a target webpage from the webpages of different versions according to the first user identification;
transmitting the webpage data of the target webpage to the front-end equipment;
the selecting, according to the first user identifier, a target webpage from the webpages of different versions includes:
determining a target version number corresponding to the first user identifier according to a preset mapping relation between the user identifier and the webpage version number;
and selecting a target webpage corresponding to the target version number from the webpages of different versions.
2. The method of claim 1, further comprising:
updating the webpage version number corresponding to at least one user identifier to obtain updated content;
and correcting the mapping relation between the preset user identification and the webpage version number according to the updated content.
3. A web page retrieval method comprising:
sending a webpage access request to a server, wherein the webpage access request comprises a website and a first user identifier;
receiving webpage data of a target webpage sent by the server according to the webpage access request, wherein the target webpage is selected from webpages of different versions corresponding to the website by the server according to the first user identification;
the target webpage corresponds to a target version number, and the target version number is a webpage version number corresponding to the first user identification determined according to a preset mapping relation between the user identification and the webpage version number.
4. The method of claim 3, wherein the first user identifier is an initial access user identifier, and after receiving the web page data of the target web page sent by the server according to the web page access request, the method further comprises:
transmitting a device identifier to the server;
receiving a second user identification sent by the server according to the equipment identification;
judging whether the second user identifier is consistent with the locally stored user identifier or not;
and if the second user identification is consistent with the locally stored user identification, determining that the webpage data is correct.
5. The method of claim 4, wherein after the determining whether the second user identification is consistent with the user identification stored in the front-end device, the method further comprises:
if the second user identification is inconsistent with the locally stored user identification, writing the second user identification into the local storage, and initiating a webpage access process to the server based on the second user identification.
6. A web page retrieval apparatus comprising:
the first receiving module is used for receiving a webpage access request sent by front-end equipment, wherein the webpage access request comprises a website and a first user identifier;
the first determining module is used for determining webpages of different versions corresponding to the websites;
the selecting module is used for selecting a target webpage from the webpages of different versions according to the first user identification;
the first sending module is used for sending the webpage data of the target webpage to the front-end equipment;
the selecting module comprises:
the determining unit is used for determining a target version number corresponding to the first user identifier according to a preset mapping relation between the user identifier and the webpage version number;
and the selecting unit is used for selecting the target webpage corresponding to the target version number from the webpages of different versions.
7. The apparatus of claim 6, further comprising:
the updating module is used for updating the webpage version number corresponding to at least one user identifier to obtain updated content;
and the correction module is used for correcting the mapping relation between the preset user identification and the webpage version number according to the updated content.
8. A web page retrieval apparatus comprising:
the second sending module is used for sending a webpage access request to the server, wherein the webpage access request comprises a website and a first user identifier;
the second receiving module is used for receiving webpage data of a target webpage sent by the server according to the webpage access request, wherein the target webpage is selected from webpages of different versions corresponding to the website by the server according to the first user identification;
the target webpage corresponds to a target version number, and the target version number is a webpage version number corresponding to the first user identification determined according to a preset mapping relation between the user identification and the webpage version number.
9. The apparatus of claim 8, wherein the first user identification is an initial access user identification, the apparatus further comprising:
the third sending module is used for sending the equipment identification to the server after receiving the webpage data;
the third receiving module is used for receiving a second user identifier sent by the server according to the equipment identifier;
the judging module is used for judging whether the second user identifier is consistent with the locally stored user identifier or not;
and the second determining module is used for determining that the webpage data is correct when the second user identification is consistent with the locally stored user identification.
10. The apparatus of claim 8, further comprising:
and the processing module is used for writing the second user identification into the local storage when the second user identification is inconsistent with the locally stored user identification, and initiating a webpage access process to the server based on the second user identification.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-2 or the method of any one of claims 3-5.
12. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-2 or the method of any one of claims 3-5.
CN201911323773.2A 2019-12-20 2019-12-20 Webpage acquisition method and device, electronic equipment and computer readable storage medium Active CN113010811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911323773.2A CN113010811B (en) 2019-12-20 2019-12-20 Webpage acquisition method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911323773.2A CN113010811B (en) 2019-12-20 2019-12-20 Webpage acquisition method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113010811A CN113010811A (en) 2021-06-22
CN113010811B true CN113010811B (en) 2024-03-26

Family

ID=76381926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911323773.2A Active CN113010811B (en) 2019-12-20 2019-12-20 Webpage acquisition method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113010811B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676549A (en) * 2021-09-02 2021-11-19 京东科技信息技术有限公司 Application request distribution method, application gateway, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015161658A1 (en) * 2014-04-25 2015-10-29 广州市动景计算机科技有限公司 Webpage resource loading method and device
CN109359259A (en) * 2018-09-27 2019-02-19 广州酷狗计算机科技有限公司 Load the method and device of webpage

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015161658A1 (en) * 2014-04-25 2015-10-29 广州市动景计算机科技有限公司 Webpage resource loading method and device
CN109359259A (en) * 2018-09-27 2019-02-19 广州酷狗计算机科技有限公司 Load the method and device of webpage

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Garbage collection for multi-version index on flash memory;Kam-Yiu Lam;IEEE;20140421;全文 *
IPv6在线代理的设计与实现;廖庆伟;田志宏;;智能计算机与应用;20130801(第04期);全文 *

Also Published As

Publication number Publication date
CN113010811A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
EP3876116B1 (en) Method and apparatus for running mini program, electronic device, and storage medium
US9929990B2 (en) Inserting content into an application from an online synchronized content management system
US9372885B2 (en) System and methods thereof for dynamically updating the contents of a folder on a device
KR102550540B1 (en) Landing page processing method, device, equipment and medium
CN110727434B (en) Rendering method, rendering device, electronic equipment and storage medium
CN112015468B (en) Interface document processing method and device, electronic equipment and storage medium
CN111752960B (en) Data processing method and device
CN105893073A (en) Update method and system used for application program, and business server and pushing server used for updating application program
CN105493074A (en) Method to generate dynamic customized context-sensitive help
JP2022028667A (en) Method for updating user image recognition model, device, electronic apparatus, computer-readable recording medium, and computer program
CN113010811B (en) Webpage acquisition method and device, electronic equipment and computer readable storage medium
CN112069137B (en) Method, device, electronic equipment and computer readable storage medium for generating information
WO2023169193A1 (en) Method and device for generating smart contract
CN111177558B (en) Channel service construction method and device
CN111931524B (en) Method, apparatus, device and storage medium for outputting information
CN111639116B (en) Data access connection session protection method and device
CN111026438B (en) Method, device, equipment and medium for extracting small program package and page key information
CN111966432B (en) Verification code processing method and device, electronic equipment and storage medium
CN111506787B (en) Method, device, electronic equipment and computer readable storage medium for web page update
CN111611476B (en) Thematic page display method and device
CN112446728B (en) Advertisement recall method, device, equipment and storage medium
CN111506786B (en) Method, device, electronic equipment and computer readable storage medium for web page update
CN110516174A (en) The method, apparatus and storage medium of text are obtained based on Simple Syndication
CN112052347B (en) Image storage method and device and electronic equipment
CN110531952B (en) Voice skill processing method, device and equipment

Legal Events

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