CN113010811A - 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
CN113010811A
CN113010811A CN201911323773.2A CN201911323773A CN113010811A CN 113010811 A CN113010811 A CN 113010811A CN 201911323773 A CN201911323773 A CN 201911323773A CN 113010811 A CN113010811 A CN 113010811A
Authority
CN
China
Prior art keywords
webpage
target
user identification
version number
user identifier
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.)
Granted
Application number
CN201911323773.2A
Other languages
Chinese (zh)
Other versions
CN113010811B (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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/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 obtaining method and 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 method and the device, 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 can be met.

Description

Webpage acquisition method and device, electronic equipment and computer readable storage medium
Technical Field
The application relates to the technical field of computers, in particular to the technical field of webpages.
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 website are the same. When different users navigate the web page through the same website, the obtained web page is the same. However, the requirements of different users for the web page functions are often different, so that the conventional method for navigating a single web page through a website cannot meet the user requirements.
Disclosure of Invention
The embodiment of the application provides a webpage obtaining method, a webpage obtaining device, electronic equipment and a computer readable storage medium, and aims to solve the problem that the existing mode of navigating a single webpage through a website cannot meet the use requirement of a user frequently.
In order to solve the technical problem, the present application is implemented 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.
Therefore, different users can access different webpages through the same website, and different use requirements of different users on webpage functions are met; furthermore, the bundle of compatibility of the new version and the old version 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.
Optionally, the selecting a target webpage from the webpages of different versions according to the first user identifier includes:
determining a target version number corresponding to the first user identifier according to a mapping relation between a preset user identifier and a 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 mapping relation between the preset user identification and the webpage version number, and the required webpage can be accurately provided for the user.
Optionally, the method further includes:
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 updating 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 correspondingly collected website does 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 different versions of webpages 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, which is determined according to a mapping relationship 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 web page data of the target web page sent by the server according to the web page access request, the method further includes:
sending a device identification to the server;
receiving a second user identification sent by the server according to the equipment identification;
judging whether the second user identification is consistent with a locally stored user identification;
and if the second user identification is consistent with the locally stored user identification, determining that the webpage data is correct.
Optionally, after determining whether the second user identifier is consistent with the user identifier stored in the front-end device, the method further includes:
and 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 system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a webpage access request sent by front-end equipment, and the webpage access request comprises a website and a first user identifier;
the first determining module is used for determining the web pages of different versions corresponding to the website;
the selection 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 mapping relation between a preset user identifier and a 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 comprises:
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 updating 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;
and 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 different versions of webpages corresponding to the website 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, which is determined according to a mapping relationship 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;
a third receiving module, configured to receive a second user identifier sent by the server according to the device identifier;
the judging module is used for judging whether the second user identification is consistent with the locally stored user identification;
and the second determining module is used for determining that the webpage data are correct when the second user identification is consistent with the locally stored user identification.
Optionally, the apparatus further comprises:
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, an embodiment of the present application further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
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, the present application further provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are configured to cause the computer to execute the web page obtaining method as described above.
One embodiment in the above application has the following advantages or benefits: the method and the device can realize that one website is used and different webpages are navigated according to different user identifications, thereby meeting different use requirements of different users on webpage functions. The technical means that the webpage access request sent by the front-end equipment is received, the webpage access request comprises the website and the first user identification, the webpages of different versions corresponding to the website are determined, the target webpage is selected from the webpages of different versions according to the first user identification, and the webpage data of the target webpage are sent to the front-end equipment is adopted, so that the technical problem that the use requirements of users cannot be met by the conventional mode of navigating the single webpage through the website is solved, and the technical effect of meeting the different use requirements of different users on the webpage functions is achieved.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a flowchart of a method for acquiring a web page according to an embodiment of the present disclosure;
FIG. 2 is a second flowchart of a web page obtaining method according to an embodiment of the present application;
FIG. 3 is a schematic flowchart of a web page acquisition process in an embodiment of the present application;
FIG. 4 is a block diagram of a web page acquiring apparatus according to an embodiment of the present application;
FIG. 5 is a block diagram of a web page acquiring apparatus according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device for implementing a web page obtaining method according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those 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 understanding of the embodiments of the present application, the following is first explained.
A web Address (URL) is understood to be a web Address, which refers to a standard Resource Address (Address) on the internet, like a house number on the internet. A web site typically contains a Domain name (Domain), which is the name of a computer or group of computers on the internet that is composed of a string of characters separated by dots, used to identify the electronic location of the computer during data transmission. A domain name can be said to be a proxy for an IP address.
A web page is a document that is suitable for use on the world wide web, web browsers, etc., and may be stored in a certain part of the world or in a group of computers. The web pages are identified and accessed via a web site (URL), which is the portal to navigate the web pages.
In order to solve the problem that the existing mode of navigating a single webpage through a website cannot meet the use requirements of users frequently, the embodiment of the application provides a webpage obtaining method, wherein one website is used, different webpages can be navigated according to different user identifications, and therefore different use requirements of different users on webpage functions can be met.
The applicable scenes of the embodiment of the application can include Virtual Reality (VR) teaching and any products which need to show different pages according to different users.
Referring to fig. 1, an embodiment of the present application provides a method for acquiring a web page, which is applied to a server, and 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 at least includes a web address and a first user identifier. The website is an entrance for navigating the corresponding webpage and can be pre-collected in the front-end equipment. The first user identification may be understood as a unique identification of a user currently initiating the web page request process, such as user identity information, a user name, and the like. Furthermore, for a new user initiated web page access procedure, the first user identification may be selected as a unified initial access user identification, so that the new user may be provided with a web page. The initial visitor identity is, for example, a default preset value or a preset symbol (e.g., latest), etc.
It should be noted that the server may be selected from a web server, a background server, or a service unit integrating the web server and the background server. The front-end device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, etc.
Step 102: and determining different versions of webpages corresponding to the websites.
In this embodiment, for different versions of web pages corresponding to a certain website, the version number may be used as a folder identifier and respectively published in different folders. Therefore, the navigation to the webpages of different versions based on the website can be facilitated; furthermore, when the new version webpage is released, the old version webpage cannot be influenced, and the user using the old version webpage cannot be influenced.
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 there are multiple versions of web pages, the server may preset and manage 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.), and provide a web page of a corresponding version for the user based on the mapping relationship.
Optionally, the process of selecting the target webpage 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 mapping relation between the preset 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 web page data, the front-end device may load and generate a target web page according to the web page data, so that the user can view and preview the target web page.
The webpage obtaining method of the embodiment of the application can receive a webpage access request sent by front-end equipment, wherein the webpage access request comprises a website and a first user identification, determine webpages of different versions corresponding to the website, select a target webpage from the webpages of different versions according to the first user identification, and send webpage data of the target webpage to the front-end equipment. Therefore, compared with the existing scheme, the method and the device can realize that one website is used and different webpages are navigated according to different user identifications, thereby meeting different use requirements of different users on webpage functions.
Furthermore, by means of the method and the device, the bundle of compatibility of the new version and the old version can be put down when the webpage is updated, so that the webpage is updated more flexibly, the fine granularity of the webpage is controlled better, and the webpage version required by a user can be flexibly lifted.
In the embodiment of the application, in order to meet various requirements of users, the webpage version number corresponding to the user identifier can be dynamically adjusted based on user requirements and/or updated service characteristics and the like, so that the required webpage version is provided for the users.
Optionally, the server in this embodiment of the 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 updating 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 correspondingly collected website does not need to be changed.
In an implementation manner, taking a server in this embodiment as a service unit integrating a background server and a web server as an example, the background server may be responsible for managing web version numbers corresponding to different user identifiers, such as updating a web version number corresponding to a certain user identifier, and the web server may be responsible for managing a mapping relationship between a user identifier and a web version number, such as correcting a mapping relationship between a current user identifier and a web version number based on updated content of the background server.
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, and as shown in fig. 2, the method includes the following steps:
step 201: and sending a webpage access request to the server.
In this embodiment, the web page access request at least includes a web address and a first user identifier. The website is an entrance for navigating the corresponding webpage and can be pre-collected in the front-end equipment. The first user identification may be understood as a unique identification of a user currently initiating the web page request process, such as user identity information, a user name, and the like. Furthermore, for a new user initiated web page access procedure, the first user identification may be selected as a unified initial access user identification, so that the new user may be provided with a web page. The initial visitor identity is, for example, a default preset value or a preset symbol (e.g., latest), etc.
The webpage access request can be sent to the server in various interaction modes of the user and the front-end equipment. For example, these interaction means may include, but are not limited to: clicking a web page link, clicking a virtual button or a physical button of a linked web page, inputting a website in a browser, shaking a terminal, gesture recognition, face recognition, voice recognition or other man-machine interaction modes developed in the future, and the like.
In one embodiment, a Customer identifier module (Customer Loader) may be included in the front-end device, and the published web page may be loaded with priority to identify the user identifier. In particular, for a web page 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 web-independent.
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 by the server from web pages of different versions corresponding to the website according to the first user identifier. Optionally, the target web page may correspond to a target version number, where the target version number is a web page version number corresponding to the first user identifier determined according to a mapping relationship between a preset user identifier and the web page version number.
According to the webpage obtaining 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 are received, the target webpage is selected from 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 the embodiment of the application, in order to provide a web page for a new user, when the new user initiates a web page access process, the first user identifier included in the 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 a new user is provided with a required webpage, after receiving webpage data, the front-end device may also verify a user identifier of a local Storage (local Storage) by using a user identifier obtained from the background server to determine that the version of the obtained webpage is correct.
Specifically, when the first user identifier included in the web page access request is the initial access user identifier, after step 202, the method further includes:
sending the equipment identification to a server; the device Identifier may be selected as a 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 identification is consistent with a locally stored user identification;
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 may continue browsing web page content.
And if the second user identifier is inconsistent with the locally stored user identifier, determining that the received webpage data is possibly incorrect, performing webpage skipping once, writing the second user identifier into the local storage, and initiating a webpage access process to the server based on the second user identifier, namely including the second user identifier in the webpage access request to acquire the webpage of the corresponding version. In this way, it is ensured that a desired web page is provided for a new user.
It should be noted that since the user id is not changed in general, authentication may not be needed when a page access process is initiated after a single authentication and a single jump.
The following describes a web page acquisition process in an embodiment of the present application with reference to fig. 3.
In the embodiment of the present application, as shown in fig. 3, the functional entities may include: front-end devices, web servers (Nginx Server) and background servers (DataBase). The front-end equipment comprises a user identification module. For new users, the involved web page acquisition process may include: 1) the front-end equipment sends a webpage access request of vredu, xxxxx, com/solution/edu/platform/c/late to a webpage server, wherein the webpage access request comprises a website and an initial access user identifier (latest); 2) the method comprises the steps that a web page server determines a target version number 1.2 corresponding to latest according to a mapping relation between a preset user identifier and a web page version number, and selects a target web page corresponding to the target version number 1.2; 3) the webpage server transmits webpage data of a target webpage to the 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 acquires a user identification (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 obtained webpage version is correct if the locally stored user identification is consistent with the user identification, and executes step 7) if the locally stored user identification is inconsistent with the user identification; 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 vredu.xxxxx.com/solution/edu/platform/c/custom2 to the webpage server, wherein the webpage access request comprises a website address and a user identification custom 2; 9) the method comprises the steps that a webpage server determines a target version number 1.1 corresponding to custom2 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.1; 10) and the webpage server transmits the webpage data of the target webpage 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, for a new user's web page acquisition process, a jump may be required once, whereas for an old user's web page acquisition process, a jump is not required.
Referring to fig. 4, an embodiment of the present application provides a web page obtaining apparatus applied to a server, and as shown in fig. 4, the web page obtaining apparatus 40 includes:
a first receiving module 41, configured to receive a web page access request sent by a front-end device, where the web page access request includes a website and a first user identifier;
a first determining module 42, configured to determine different versions of webpages corresponding to the websites;
a selecting module 43, configured to select a target webpage from the webpages of different versions according to the first user identifier;
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 mapping relation between a preset user identifier and a 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 updating content.
The web page obtaining apparatus 40 of this embodiment can implement each process implemented in the embodiment shown in fig. 1 and achieve the same beneficial effects, and for avoiding repetition, the details are not described here.
Referring to fig. 5, an embodiment of the present application further provides a web page obtaining apparatus, which is applied to a front-end device, and as shown in fig. 5, the web page obtaining apparatus 50 includes:
a second sending module 51, configured to send a web page access request to a server, where the web page access request includes a website and a first user identifier;
a second receiving module 52, 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 by the server from web pages of different versions corresponding to the website 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, which is determined according to a mapping relationship 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;
a third receiving module, configured to receive a second user identifier sent by the server according to the device identifier;
the judging module is used for judging whether the second user identification is consistent with the locally stored user identification;
and the second determining module is used for determining that the webpage data are correct when the second user identification is consistent with the locally stored user identification.
Optionally, the apparatus further comprises:
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 this embodiment can implement each process implemented in the embodiment shown in fig. 2 and achieve the same beneficial effects, and for avoiding repetition, the details are not described here.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 6 is a block diagram of an electronic device for implementing a web page obtaining method according to an embodiment of the present application. 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 phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 6, the electronic apparatus includes: one or more processors 601, memory 602, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. 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 for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 6, one processor 601 is taken as an example.
The memory 602 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor, so that the at least one processor executes the webpage obtaining method provided by the application. 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 for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the web page obtaining method in the embodiment of the present application (for example, the first receiving module 41, the first determining module 42, the selecting module 46, and the first sending module 44 shown in fig. 4, or the second sending 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 by running non-transitory software programs, instructions and modules stored in the memory 602, that is, implementing the web page acquisition method in the above method embodiment.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by use of the electronic device, and the like. Further, 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, the memory 602 optionally includes memory located remotely from the 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 web page obtaining method may further include: an input device 606 and an output device 604. The processor 601, the memory 602, the input device 606, and the output device 604 may be connected by a bus or other means, and fig. 6 illustrates an example of a connection by a bus.
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 apparatus of the web page acquisition method, such as an input device of a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 604 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. 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 can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. 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 a pointing device (e.g., a mouse or a 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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 clients and servers. A client and server are generally 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, 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 can be met.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. A method for acquiring a web page, 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;
and sending the webpage data of the target webpage to the front-end equipment.
2. The method of claim 1, wherein selecting the target web page from the different versions of web pages according to the first user identifier comprises:
determining a target version number corresponding to the first user identifier according to a mapping relation between a preset user identifier and a webpage version number;
and selecting a target webpage corresponding to the target version number from the webpages of different versions.
3. 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 updating content.
4. A method for acquiring a web page, comprising:
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 different versions of webpages corresponding to the website by the server according to the first user identification.
5. The method of claim 4, wherein 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 relationship between a preset user identifier and a webpage version number.
6. The method of claim 4, 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:
sending a device identification to the server;
receiving a second user identification sent by the server according to the equipment identification;
judging whether the second user identification is consistent with a locally stored user identification;
and if the second user identification is consistent with the locally stored user identification, determining that the webpage data is correct.
7. The method of claim 6, wherein after determining whether the second subscriber identity is consistent with a subscriber identity stored in a head-end device, the method further comprises:
and 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.
8. A web page acquisition apparatus, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a webpage access request sent by front-end equipment, and the webpage access request comprises a website and a first user identifier;
the first determining module is used for determining the web pages of different versions corresponding to the website;
the selection 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.
9. The apparatus of claim 8, wherein the selecting module comprises:
the determining unit is used for determining a target version number corresponding to the first user identifier according to a mapping relation between a preset user identifier and a 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.
10. The apparatus of claim 8, 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 updating content.
11. A web page acquisition 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;
and 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 different versions of webpages corresponding to the website by the server according to the first user identifier.
12. The apparatus of claim 11, wherein the target web page corresponds to a target version number, and the target version number is a web page version number corresponding to the first user identifier determined according to a mapping relationship between a preset user identifier and a web page version number.
13. The apparatus of claim 11, wherein the first user identifier is an initial access user identifier, the apparatus further comprising:
the third sending module is used for sending the equipment identification to the server after receiving the webpage data;
a third receiving module, configured to receive a second user identifier sent by the server according to the device identifier;
the judging module is used for judging whether the second user identification is consistent with the locally stored user identification;
and the second determining module is used for determining that the webpage data are correct when the second user identification is consistent with the locally stored user identification.
14. The apparatus of claim 13, 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.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
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-3, or the method of any one of claims 4-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-3 or the method of any one of claims 4-7.
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 true CN113010811A (en) 2021-06-22
CN113010811B 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)

Cited By (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
KAM-YIU LAM: "Garbage collection for multi-version index on flash memory", IEEE, 21 April 2014 (2014-04-21) *
廖庆伟;田志宏;: "IPv6在线代理的设计与实现", 智能计算机与应用, no. 04, 1 August 2013 (2013-08-01) *

Cited By (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

Also Published As

Publication number Publication date
CN113010811B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
US10491552B2 (en) Inserting content into an application from an online synchronized content management system
EP3876116B1 (en) Method and apparatus for running mini program, electronic device, and storage medium
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
TWI590157B (en) Compressed serialization of data for communication from a client-side application
CN111158799A (en) Page rendering method and device, electronic equipment and storage medium
KR102550540B1 (en) Landing page processing method, device, equipment and medium
US20160316020A1 (en) Web page information presentation method and system
CN111770161B (en) https sniffing jump method and device
CN110992112A (en) Method and device for processing advertisement information
CN112015468B (en) Interface document processing method and device, electronic equipment and storage medium
CN110727434A (en) Rendering method, rendering device, electronic equipment and storage medium
CN111752960B (en) Data processing method and device
CN111931524B (en) Method, apparatus, device and storage medium for outputting information
CN113326418A (en) Method and device for determining webpage information source and webpage quality
CN113010811B (en) Webpage acquisition method and device, electronic equipment and computer readable storage medium
CN112559194A (en) Application data processing method, device and equipment
US9342530B2 (en) Method for skipping empty folders when navigating a file system
CN112052347B (en) Image storage method and device and electronic equipment
CN111026438B (en) Method, device, equipment and medium for extracting small program package and page key information
CN111177558B (en) Channel service construction method and device
CN111611476B (en) Thematic page display method and device
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
CN112822302B (en) Data normalization method and device, electronic equipment and storage medium
CN111651229A (en) Font changing 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