CN104714958A - Webpage transfer method and device - Google Patents
Webpage transfer method and device Download PDFInfo
- Publication number
- CN104714958A CN104714958A CN201310684648.0A CN201310684648A CN104714958A CN 104714958 A CN104714958 A CN 104714958A CN 201310684648 A CN201310684648 A CN 201310684648A CN 104714958 A CN104714958 A CN 104714958A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- www
- wap
- page
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a webpage transfer method and device. For a single WWW webpage without a WAP webpage site meeting the requirement for access of a mobile terminal, when the mobile terminal receives an internet surfing request of a mobile terminal account, a mobile terminal browser client side generates an address request message and sends the address request message to a WAP server, the address request message carries a WWW webpage address to which the mobile terminal account has access and display information of the mobile terminal, the WWW server can convert the WWW webpage into a WAP webpage matched with the display information of the mobile terminal, and the WAP webpage is displayed in combination of the display information of the mobile terminal. By the adoption of the method and device, an interface is friendly, a large amount of wireless internet surfing flow of the mobile terminal does not need to be consumed, the internet surfing experience of the mobile terminal account is improved, and the intelligence of the mobile terminal is improved.
Description
Technical field
The present invention relates to Computer Image Processing field, particularly relate to a kind of web page conversion method and device.
Background technology
Along with the development of mobile Internet, can at the browser access webpage of mobile terminal.Major part website is that mobile terminal provides WAP(Wireless Application Protocol, WAP (wireless application protocol)) webpage, and establish corresponding WAP website.Mobile terminal can directly access WAP page content, but for only there being WWW(World Wide Web, WWW) webpage, do not set up the website of the WAP page meeting mobile terminal accessing, if this website rebuilds the WAP page meeting mobile terminal accessing again, complex steps, and need manpower be spent, financial resources, the resources such as time, if the account of mobile terminal is directly accessed by browser of mobile terminal, due to former WWW Webpage, to account for internal memory large, need at substantial mobile terminal wireless Internet access flow, need pending buffer, and the display of user interface is unfriendly, the online reducing the account of mobile terminal is experienced.
Summary of the invention
The embodiment of the present invention provides a kind of web page conversion method and device.For solving the direct accessing WWW webpage of mobile terminal account in prior art, need at substantial mobile terminal wireless Internet access flow, need pending buffer, the display of user interface is unfriendly, and low technical matters is experienced in the online of the account of mobile terminal.
First aspect present invention provides a kind of display packing of Web page picture, can comprise:
The address request that mobile terminal receive sends, described address request is the request message carrying the WWW web page address of mobile terminal account access and the display information of described mobile terminal that browser of mobile terminal client generates when receiving the online request of mobile terminal account;
WWW web data corresponding to described WWW web page address is downloaded according to the WWW web page address of described mobile terminal account access;
The WWW web data got described in parsing, and described WWW web data is converted to the WAP page data with the display information matches of described mobile terminal;
Generate WAP page corresponding to described WAP page data and WAP page address.
Second aspect present invention provides a kind of display device of Web page picture, can comprise:
Address requests receiver module, for the address request that mobile terminal receive sends, described address request is the request message carrying the WWW web page address of mobile terminal account access and the display information of described mobile terminal that browser of mobile terminal client generates when receiving the online request of mobile terminal account;
Web data download module, for downloading WWW web data corresponding to described WWW web page address according to the WWW web page address of described mobile terminal account access;
Web data processing module, for the WWW web data got described in resolving, and is converted to the WAP page data with the display information matches of described mobile terminal by described WWW web data;
Generation module, for generating WAP page corresponding to described WAP page data and WAP page address.
Third aspect present invention provides a kind of WAP server, comprises above-mentioned device.
Implement the embodiment of the present invention, there is following beneficial effect:
For only having WWW webpage and not setting up the WWW webpage in the website of the WAP page meeting mobile terminal accessing, when mobile terminal receives the online request of mobile terminal account, browser of mobile terminal client-side calculated address request message, and send to WAP server, address request carries the WWW web page address of mobile terminal account access and the display information of mobile terminal, WAP server gets corresponding WWW web data by the WWW web page address that mobile terminal sends, this WWW web data is converted into the WAP page data with the display information matches of mobile terminal, generate WAP page corresponding to WAP page data and WAP page address, WAP page shows in conjunction with the display information of mobile terminal, friendly interface, and without the need at substantial mobile terminal wireless Internet access flow, the online improving the account of mobile terminal is experienced, improve the intelligent of mobile terminal.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of a kind of web page conversion method that Fig. 1 provides for the embodiment of the present invention;
The process flow diagram of the another kind of web page conversion method that Fig. 2 provides for the embodiment of the present invention;
The schematic diagram of the WWW webpage that Fig. 3 a provides for the embodiment of the present invention;
The schematic diagram of a kind of WAP page that Fig. 3 b provides for the embodiment of the present invention;
The schematic diagram of the another kind of WAP page that Fig. 3 c provides for the embodiment of the present invention;
The schematic diagram of another WAP page that Fig. 3 d provides for the embodiment of the present invention;
The structural representation of a kind of webpage conversion equipment that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the web data processing module that Fig. 5 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, mobile terminal is including, but not limited to mobile terminal devices such as smart mobile phones, mobile terminal is by browser of mobile terminal accessed web page, browser of mobile terminal is such as applicable to WML(Wireless Markup Language, WAP Markup Language) web page browsing or applicable HTML(HyperText Markup Language, HTML (Hypertext Markup Language)) the mobile phone QQ browser etc. of web page browsing.WWW webpage in the embodiment of the present invention refers to the webpage being applied to terminal that WWW web sites provides, and this WWW web sites only provides WWW webpage, does not set up the WAP page meeting mobile terminal accessing.
The invention discloses a kind of web page conversion method and device, comprise: the address request that WAP server mobile terminal receive sends, described address request is the request message carrying the WWW web page address of mobile terminal account access and the display information of described mobile terminal that browser of mobile terminal client generates when receiving the online request of mobile terminal account; WWW web data corresponding to described WWW web page address is downloaded according to the WWW web page address of described mobile terminal account access; The WWW web data got described in parsing, and described WWW web data is converted to the WAP page data with the display information matches of described mobile terminal; Generate WAP page corresponding to described WAP page data and WAP page address.
As the optional embodiment of one, in the embodiment of the present invention, when receiving the online request of mobile terminal account, and when online request being detected for mobile terminal account access WWW web page address, trigger address request message can be realized in browser of mobile terminal client application side, and send this address request to WAP server.Further alternative, realize triggering and the generation of address request by build-in function module in browser of mobile terminal or the form with browser plug-in, specifically not by the restriction of the embodiment of the present invention.
Adopt the embodiment of the present invention, for only having WWW webpage and not setting up the WWW webpage in the website of the WAP page meeting mobile terminal accessing, when mobile terminal receives the online request of mobile terminal account, browser of mobile terminal client-side calculated address request message, and send to WAP server, address request carries the WWW web page address of mobile terminal account access and the display information of mobile terminal, the WWW web page address that WAP server can send by mobile terminal gets corresponding WWW web data, this WWW webpage is converted into the WAP page with the display information matches of mobile terminal, WAP page shows in conjunction with the display information of mobile terminal, friendly interface, and without the need at substantial mobile terminal wireless Internet access flow, the online improving the account of mobile terminal is experienced, improve the intelligent of mobile terminal.
Below in conjunction with accompanying drawing 1 ~ Fig. 2, the web page conversion method that the embodiment of the present invention provides is described in detail.
Refer to Fig. 1, be the process flow diagram of a kind of web page conversion method that the embodiment of the present invention provides, the embodiment of the present invention can be implemented in WAP server, and as shown in the figure, the method can comprise the following steps: S101 ~ S104.
S101, the address request that mobile terminal receive sends, address request is the request message carrying the WWW web page address of mobile terminal account access and the display information of mobile terminal that browser of mobile terminal client generates when receiving the online request of mobile terminal account.
S102, downloads WWW web data corresponding to WWW web page address according to the WWW web page address of mobile terminal account access.
S103, resolves the WWW web data got, and WWW web data is converted to the WAP page data with the display information matches of mobile terminal.
S104, generates WAP page corresponding to WAP page data and WAP page address.
As the optional embodiment of one, in step S101, when mobile terminal receives the online request of mobile terminal account, browser of mobile terminal client-side calculated address request message, and send to WAP server, the address request that WAP server mobile terminal receive sends, wherein, address request carries the WWW web page address of mobile terminal account access and the display information of mobile terminal.Concrete, the WWW webpage URL(Uniform Resource Locator of the WWW web page address such as mobile terminal account access of mobile terminal account access, URL(uniform resource locator)).The display information of mobile terminal is including, but not limited to the viewing area size of mobile terminal, the length of the display screen of the viewing area size such as mobile phone of mobile terminal and wide total pixel.
As the optional embodiment of one, in step S102, WAP server downloads WWW web data corresponding to WWW web page address according to the WWW web page address of mobile terminal account access.Concrete, WAP server sends data download request according to the WWW web page address of mobile terminal account access to www server, after www server receives this data download request, send WWW web data corresponding to WWW web page address to WAP server, WAP server receives this WWW web data.
As the optional embodiment of one, in step S103, WAP server resolves the WWW web data got, and WWW web data is converted to the WAP page data with the display information matches of mobile terminal.Concrete, WAP server is resolved the WWW web data got, WAP server can travel through the element of all nodes in described WWW web data, obtain WWW web page elements different from WAP page element in WWW web data, further, the key element in WWW web data can also be extracted.
As the optional embodiment of one, step S103 specifically can comprise:
In traversal WWW web data, the element of all nodes, obtains WWW web page elements different from WAP page element in WWW web data.
The WWW web page element different from WAP page element in the described WWW web data got is converted to WAP page element.
Concrete, in traversal WWW web data, the element of all nodes, carries out syntax check to it, obtains WWW web page elements different from WAP page element in WWW web data, the html language of WWW webpage is translated as the WML language of WAP page.
As the optional embodiment of one, step S103 specifically can comprise:
The element of all nodes in traversal WWW web data, extract the key element in WWW web data, key element comprises: the Web page picture information of the webpage Schema information of WWW webpage, the web page text information of WWW webpage or WWW webpage.
Be converted to by key element in WWW web data and the object element in the WAP page of the display information matches of mobile terminal, object element comprises: the Web page picture information of the webpage Schema information of WAP page, the web page text information of WAP page or WAP page.
Concrete, the element of all nodes in traversal WWW web data, extract the key element in WWW web data, key element is including, but not limited to the Web page picture information of the webpage Schema information of WWW webpage, the web page text information of WWW webpage or WWW webpage.The webpage Schema information of WWW webpage is such as: the webpage general frame, WWW web width etc. of WWW page layout format, WWW webpage, the web page text display width, paragraph etc. of the web page text information such as WWW webpage of WWW webpage, the display size etc. of the Web page picture information such as Web page picture of WWW webpage.
Further alternative, be converted to by key element in WWW web data and the object element in the WAP page of the display information matches of mobile terminal, object element comprises: the Web page picture information of the webpage Schema information of WAP page, the web page text information of WAP page or WAP page.
Key element in WWW web data is converted to and can comprises with the object element in the WAP page of the display information matches of mobile terminal:
The absolute information of the key element in WWW web data is converted to the relative information of the object element in WAP page data.
Wherein, the absolute information of the key element in WWW web data, can comprise: the absolute display length of the absolute layout of key element, the absolute size of key element or key element.The relative information of the object element in WAP page data, can comprise: the relative display length of the relative placement of object element, the relative size of object element or object element.
As shown in Figure 3 a, for the schematic diagram of the WWW webpage that the embodiment of the present invention provides, as shown in Figure 3 a, the picture that this WWW webpage comprises and word have: navigation word column, title 1, paragraph word 1, picture 1 ~ picture 6, word 1 ~ word 6 and footer word, this WWW webpage is the webpage being adapted at computer display, wherein, navigation word column is fixed on the left side, for the web page frame of left right model, absolute layout during WWW page layout, namely the position of regional block is changeless, the word column that such as navigates is fixed on the left side, picture 1 ~ picture 6 shows a hurdle etc., and each picture size is also absolute size, word size is also fixed size.In prior art, if this WWW webpage of mobile terminal accessing, the Webpage then opened as shown in Figure 3 a, and the display aspect ratio of mobile phone and the display aspect ratio of computer terminal different, causing cannot whole display web page content, and internal memory shared by WWW web page contents is large, need the flow expending mobile terminal wireless Internet access, also need to wait for webpage buffering.
As the optional embodiment of one, adopt the embodiment of the present invention, when mobile terminal receives the online request of mobile terminal account, browser of mobile terminal client-side calculated address request message, and send to WAP server, address request carries the address of this WWW webpage and the display information of mobile terminal, thus WAP server downloads WWW web data corresponding to this WWW web data address by this WWW web page address from www server, again this WWW web data is converted to the WAP page data with the display information matches of mobile terminal, generate the WAP page that WAP page data are corresponding.The display information of corresponding different mobile terminals, WAP server can generate different WAP pages, concrete, according to the display information of mobile terminal, the absolute information of the key element in WWW web data can be converted to the relative information of the object element in WAP page data, avoid the spilling of object element on horizontal display direction, avoid the appearance of HScrollBar.As shown in Fig. 3 b, Fig. 3 c, Fig. 3 d, it is the schematic diagram of the WAP page that the embodiment of the present invention provides.Navigation word in Fig. 3 a is fixed on the left side, is the web page frame of left and right, and picture 1 ~ picture 6 is a hurdle display.Navigation word on the left side in Fig. 3 b, the 6 point of two hurdle display of picture 1 ~ picture.The word that navigates in Fig. 3 c, at top, is single web page frame, the 6 point of two hurdle display of picture 1 ~ picture.The word that navigates in Fig. 3 d, at top, is single web page frame, and the 6 point of three hurdle display of picture 1 ~ picture, concrete, the word size in the WAP page in Fig. 3 b, Fig. 3 c, Fig. 3 d and picture size also can carry out convergent-divergent according to the display information of mobile terminal.
As the optional embodiment of one, in step S104, WAP server generates WAP page corresponding to WAP page data and WAP page address.Concrete, WAP server generates WAP page corresponding to WAP page data and WAP page address, the URL of WAP page address such as WAP page.
Further alternative, the embodiment of the present invention after step s 104, can also comprise step:
Send the address response message corresponding with address request to mobile terminal, address response message carries WAP page address, to make mobile terminal according to WAP page address acquisition WAP page data.
As the optional embodiment of one, WAP server sends address response message to mobile terminal, and address response message carries WAP page address.
Further alternative, after sending the address response message corresponding with address request to mobile terminal, can also step be comprised:
The request of access that mobile terminal receive sends, request of access carries WAP page address;
WAP page data corresponding to WAP page address are sent to mobile terminal.
The embodiment of the present invention provides a kind of web page conversion method, for only having WWW webpage and not setting up the WWW webpage in the website of the WAP page meeting mobile terminal accessing, when mobile terminal receives the online request of mobile terminal account, browser of mobile terminal client-side calculated address request message, and send to WAP server, address request carries the WWW web page address of mobile terminal account access and the display information of mobile terminal, WAP server gets corresponding WWW web data by the WWW web page address that mobile terminal sends, this WWW web data is converted into the WAP page data with the display information matches of mobile terminal, generate WAP page corresponding to WAP page data and WAP page address, WAP page shows in conjunction with the display information of mobile terminal, friendly interface, and without the need at substantial mobile terminal wireless Internet access flow, the online improving the account of mobile terminal is experienced, improve the intelligent of mobile terminal.
Referring to Fig. 2, is the process flow diagram of the another kind of web page conversion method that the embodiment of the present invention provides; The method can comprise the following steps: S201 ~ S207.
S201, mobile terminal sends address request to WAP server, and address request is the message of carrying the WWW web page address of mobile terminal account access and the display information of mobile terminal that browser of mobile terminal client generates when receiving the online request of mobile terminal account.
As the optional embodiment of one, when mobile terminal receives the online request of mobile terminal account, browser of mobile terminal client-side calculated address request message, and send address request to WAP server, wherein, address request carries the WWW web page address of mobile terminal account access and the display information of mobile terminal.Concrete, the WWW webpage URL of the WWW web page address such as mobile terminal account access of mobile terminal account access.The display information of mobile terminal is including, but not limited to the viewing area size of mobile terminal, the length of the display screen of the viewing area size such as mobile phone of mobile terminal and wide total pixel.
S202, WAP server downloads corresponding WWW web data according to WWW web page address from www server.
As the optional embodiment of one, WAP server sends data download request according to the WWW web page address of mobile terminal account access to www server, after www server receives this data download request, send WWW web data corresponding to WWW web page address to WAP server, WAP server receives this WWW web data.
S203, WAP server resolves WWWW web data, and WWW web data is converted to the WAP page data with the display information matches of mobile terminal.
As the optional embodiment of one, WAP server is resolved the WWW web data got, WAP server can travel through the element of all nodes in described WWW web data, obtain WWW web page elements different from WAP page element in WWW web data, the WWW web page element different from WAP page element in the described WWW web data got is converted to WAP page element.Further, the key element in WWW web data can also be extracted, the key element in WWW web data is converted to and the object element in the WAP page of the display information matches of mobile terminal.
S204, WAP server generates WAP page corresponding to WAP page data and WAP page address.
S205, WAP server sends the address response message corresponding with address request to mobile terminal, and address response message carries described WAP page address.
S206, mobile terminal sends request of access to WAP server, and request of access carries WAP page address.
S207, WAP page data corresponding for WAP page address are sent to mobile terminal by WAP server.
The embodiment of the present invention provides a kind of web page conversion method, when mobile terminal receives the online request of mobile terminal account, browser of mobile terminal client-side calculated address request message, and send to WAP server, address request carries the WWW web page address of mobile terminal account access and the display information of mobile terminal, WAP server gets corresponding WWW web data according to WWW web page address, this WWW web data is converted into the WAP page data with the display information matches of mobile terminal, generate WAP page corresponding to WAP page data and WAP page address, WAP page shows in conjunction with the display information of mobile terminal, friendly interface, and without the need at substantial mobile terminal wireless Internet access flow, the online improving the account of mobile terminal is experienced, improve the intelligent of mobile terminal.
Below in conjunction with accompanying drawing 4, the webpage conversion equipment that the embodiment of the present invention provides is described in detail.It should be noted that, the webpage conversion equipment shown in accompanying drawing 4, for performing the present invention's method embodiment illustrated in fig. 1, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 1 of the present invention.
Refer to Fig. 4, for the structural representation of a kind of webpage conversion equipment that the embodiment of the present invention provides, the embodiment of the present invention can be implemented in WAP server, and this device can comprise: Address requests receiver module 401, web data download module 402, web data processing module 403 and generation module 404.
Address requests receiver module 401, for the address request that mobile terminal receive sends, described address request is the message of carrying the WWW web page address of mobile terminal account access and the display information of described mobile terminal that browser of mobile terminal client generates when receiving the online request of mobile terminal account.
As the optional embodiment of one, when mobile terminal receives the online request of mobile terminal account, browser of mobile terminal client-side calculated address request message, and send address request to WAP server, the address request that Address requests receiver module 401 mobile terminal receive sends, wherein, address request carries the WWW web page address of mobile terminal account access and the display information of mobile terminal.Concrete, the WWW webpage URL of the WWW web page address such as mobile terminal account access of mobile terminal account access.The display information of mobile terminal is including, but not limited to the viewing area size of mobile terminal, the length of the display screen of the viewing area size such as mobile phone of mobile terminal and wide total pixel.
Web data download module 402, for downloading WWW web data corresponding to described WWW web page address according to the WWW web page address of described mobile terminal account access.
As the optional embodiment of one, web data download module 402 downloads WWW web data corresponding to WWW web page address according to the WWW web page address of mobile terminal account access.Concrete, WAP server sends data download request according to the WWW web page address of mobile terminal account access to www server, after www server receives this data download request, send WWW web data corresponding to WWW web page address to WAP server, WAP server receives this WWW web data.
Web data processing module 403, for the WWW web data got described in resolving, and is converted to the WAP page data with the display information matches of described mobile terminal by described WWW web data.
As the optional embodiment of one, web data processing module 403 is resolved the WWW web data got, WAP server can travel through the element of all nodes in described WWW web data, obtain WWW web page elements different from WAP page element in WWW web data, the WWW web page element different from WAP page element in the described WWW web data got is converted to WAP page element.Further, the key element in WWW web data can also be extracted, the key element in WWW web data is converted to and the object element in the WAP page of the display information matches of mobile terminal.
Generation module 404, for generating WAP page corresponding to described WAP page data and WAP page address.
As the optional embodiment of one, generation module 404 generates WAP page corresponding to WAP page data and WAP page address.Concrete, WAP server generates WAP page corresponding to WAP page data and WAP page address, the URL of WAP page address such as WAP page.
Further alternative, the webpage conversion equipment that the embodiment of the present invention provides can also comprise: address response module 405.
Address response module 405, for sending the address response message corresponding with described address request to described mobile terminal, described address response message carries described WAP page address, to make described mobile terminal WAP page data according to described WAP page address acquisition.
Further alternative, the webpage conversion equipment that the embodiment of the present invention provides can also comprise: request of access receiver module 406 and web data issue module 407.
Request of access receiver module 406, for receiving the request of access that described mobile terminal sends, described request of access carries described WAP page address.
Web data issues module 407, for sending described WAP page data corresponding to described WAP page address to described mobile terminal.
The embodiment of the present invention provides a kind of webpage conversion equipment, for only having WWW webpage and not setting up the WWW webpage in the website of the WAP page meeting mobile terminal accessing, when mobile terminal receives the online request of mobile terminal account, browser of mobile terminal client-side calculated address request message, and send to WAP server, address request carries the WWW web page address of mobile terminal account access and the display information of mobile terminal, Address requests receiver module can mobile terminal receive send WWW web page address, web data download module gets corresponding WWW web data by WWW web page address, this WWW web data can be converted into the WAP page data with the display information matches of mobile terminal by web data processing module, generation module generates WAP page corresponding to WAP page data and WAP page address, WAP page shows in conjunction with the display information of mobile terminal, friendly interface, and without the need at substantial mobile terminal wireless Internet access flow, the online improving the account of mobile terminal is experienced, improve the intelligent of mobile terminal.
Below in conjunction with accompanying drawing 5, respectively the 26S Proteasome Structure and Function of the web data processing module shown in Fig. 4 is described in detail.
Referring to Fig. 5, is the structural representation of the web data processing module that the embodiment of the present invention provides; This web data processing module 403 can comprise: acquiring unit 4031, first converting unit 4032, extraction unit 4033 and the second converting unit 4034.
Acquiring unit 4031, for traveling through the element of all nodes in described WWW web data, obtains WWW web page elements different from WAP page element in described WWW web data.
First converting unit 4032, for being converted to WAP page element by the WWW web page element different from WAP page element in the described described WWW web data got.
Extraction unit 4033, for traveling through the element of all nodes in described WWW web data, extract the key element in described WWW web data, described key element comprises: the Web page picture information of the webpage Schema information of described WWW webpage, the web page text information of described WWW webpage or described WWW webpage.
Second converting unit 4034, for being converted to and the object element in the WAP page of the display information matches of described mobile terminal by the key element in described WWW web data, described object element comprises: the Web page picture information of the webpage Schema information of described WAP page, the web page text information of described WAP page or described WAP page.
As the optional embodiment of one, acquiring unit 4031 travels through the element of all nodes in WWW web data, syntax check is carried out to it, obtain WWW web page elements different from WAP page element in WWW web data, the html language of WWW webpage is translated as the WML language of WAP page by the first converting unit 4032.
As the optional embodiment of one, extraction unit 4033 travels through the element of all nodes in WWW web data, extract the key element in WWW web data, key element is including, but not limited to the Web page picture information of the webpage Schema information of WWW webpage, the web page text information of WWW webpage or WWW webpage.The webpage Schema information of WWW webpage is such as: the webpage general frame, WWW web width etc. of WWW page layout format, WWW webpage, the web page text display width, paragraph etc. of the web page text information such as WWW webpage of WWW webpage, the display size etc. of the Web page picture information such as Web page picture of WWW webpage.
As the optional embodiment of one, the second converting unit 4034 can be specifically for: the relative information absolute information of the key element in WWW web data being converted to the object element in WAP page data.Wherein, the absolute information of the key element in WWW web data, comprising: the absolute display length of the absolute layout of key element, the absolute size of key element or key element; The relative information of the object element in WAP page data, comprising: the relative display length of the relative placement of object element, the relative size of object element or object element.
As shown in Figure 3 a, for the schematic diagram of the WWW webpage that the embodiment of the present invention provides, as shown in Figure 3 a, the picture that this WWW webpage comprises and word have: navigation word column, title 1, paragraph word 1, picture 1 ~ picture 6, word 1 ~ word 6 and footer word, this WWW webpage is the webpage being adapted at computer display, wherein, navigation word column is fixed on the left side, for the web page frame of left right model, absolute layout during WWW page layout, namely the position of regional block is changeless, the word column that such as navigates is fixed on the left side, picture 1 ~ picture 6 shows a hurdle etc., and each picture size is also absolute size, word size is also fixed size.In prior art, if this WWW webpage of mobile terminal accessing, the Webpage then opened as shown in Figure 3 a, and the display aspect ratio of mobile phone and the display aspect ratio of computer terminal different, causing cannot whole display web page content, and internal memory shared by WWW web page contents is large, need the flow expending mobile terminal wireless Internet access, also need to wait for webpage buffering.
As the optional embodiment of one, adopt the embodiment of the present invention, mobile terminal is for this WWW webpage of access, then mobile terminal can send address request to WAP server, address request carries the address of this WWW webpage and the display information of mobile terminal, thus WAP server downloads WWW web data corresponding to this WWW web data address by this WWW web page address from www server, again this WWW web data is converted to the WAP page data with the display information matches of mobile terminal, generates the WAP page that WAP page data are corresponding.The display information of corresponding different mobile terminals, WAP server can generate different WAP pages, concrete, according to the display information of mobile terminal, the absolute information of the key element in WWW web data can be converted to the relative information of the object element in WAP page data, avoid the spilling of object element on horizontal display direction, avoid the appearance of HScrollBar.As shown in Fig. 3 b, Fig. 3 c, Fig. 3 d, it is the schematic diagram of the WAP page that the embodiment of the present invention provides.Navigation word in Fig. 3 a is fixed on the left side, is the web page frame of left and right, and picture 1 ~ picture 6 is a hurdle display.Navigation word on the left side in Fig. 3 b, the 6 point of two hurdle display of picture 1 ~ picture.The word that navigates in Fig. 3 c, at top, is single web page frame, the 6 point of two hurdle display of picture 1 ~ picture.The word that navigates in Fig. 3 d, at top, is single web page frame, and the 6 point of three hurdle display of picture 1 ~ picture, concrete, the word size in the WAP page in Fig. 3 b, Fig. 3 c, Fig. 3 d and picture size also can carry out convergent-divergent according to the display information of mobile terminal.
It should be noted that, the 26S Proteasome Structure and Function of the web data processing module shown in accompanying drawing 5 is by the present invention's method specific implementation embodiment illustrated in fig. 1, and this specific implementation process can the associated description of embodiment shown in Figure 1, is not repeated herein.
The embodiment of the invention also discloses a kind of WAP server, comprise device as shown in fig. 4-5; The 26S Proteasome Structure and Function of this device see the associated description of Fig. 4-embodiment illustrated in fig. 5, can be not repeated herein.It should be noted that, the WAP server of the present embodiment can be applicable in said method.
The embodiment of the invention also discloses a kind of Web page transition system, comprise mobile terminal, WAP server and www server.Wherein, WAP server device as shown in fig. 4-5; The 26S Proteasome Structure and Function of this device see the associated description of Fig. 4-embodiment illustrated in fig. 5, can be not repeated herein.It should be noted that, the WAP server of the present embodiment can be applicable in said method.Further alternative, mobile terminal is used for sending address request to WAP server, and wherein, address request is the request message that browser of mobile terminal client generates when receiving the online request of mobile terminal account.Further alternative, mobile terminal is also for when receiving the WAP page address that WAP server sends, and send request of access to WAP server, request of access carries WAP page address.Further alternative, mobile terminal is also for receiving the WAP page data that WAP server returns according to request of access.Www server is used for when receiving the data download request that WAP server sends, and sends WWW web data corresponding to WWW web page address to WAP server.
By the description of above-described embodiment, the embodiment of the present invention provides a kind of display packing and device of Web page picture, for only having WWW webpage and not setting up the WWW webpage in the website of the WAP page meeting mobile terminal accessing, when mobile terminal receives the online request of mobile terminal account, browser of mobile terminal client-side calculated address request message, and send to WAP server, address request carries the WWW web page address of mobile terminal account access and the display information of mobile terminal, the WWW web page address sent by mobile terminal gets corresponding WWW web data, this WWW web data is converted into the WAP page data with the display information matches of mobile terminal, generate WAP page corresponding to WAP page data and WAP page address, WAP page shows in conjunction with the display information of mobile terminal, friendly interface, and without the need at substantial mobile terminal wireless Internet access flow, the online improving the account of mobile terminal is experienced, improve the intelligent of mobile terminal.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.
Claims (15)
1. a web page conversion method, is characterized in that, described method comprises:
The address request that mobile terminal receive sends, described address request is the request message carrying the world wide web web page address of mobile terminal account access and the display information of described mobile terminal that browser of mobile terminal client generates when receiving the online request of mobile terminal account;
WWW web data corresponding to described WWW web page address is downloaded according to the WWW web page address of described mobile terminal account access;
The WWW web data got described in parsing, and described WWW web data is converted to the WAP (wireless application protocol) WAP page data with the display information matches of described mobile terminal;
Generate WAP page corresponding to described WAP page data and WAP page address.
2. the method for claim 1, is characterized in that, the WWW web data got described in described parsing, and is converted to by described WWW web data and comprises with the WAP (wireless application protocol) WAP page data of the display information matches of described mobile terminal:
Travel through the element of all nodes in described WWW web data, obtain WWW web page elements different from WAP page element in described WWW web data;
The WWW web page element different from WAP page element in the described described WWW web data got is converted to WAP page element.
3. the method for claim 1, is characterized in that, the WWW web data got described in described parsing comprises:
Travel through the element of all nodes in described WWW web data, extract the key element in described WWW web data, described key element comprises: the Web page picture information of the webpage Schema information of described WWW webpage, the web page text information of described WWW webpage or described WWW webpage.
4. method as claimed in claim 3, it is characterized in that, described being converted to by described WWW web data comprises with the WAP page data of the display information matches of described mobile terminal:
Be converted to and the object element in the WAP page of the display information matches of described mobile terminal by key element in described WWW web data, described object element comprises: the Web page picture information of the webpage Schema information of described WAP page, the web page text information of described WAP page or described WAP page.
5. method as claimed in claim 4, is characterized in that, is describedly converted to and the object element in the WAP page of the display information matches of described mobile terminal by key element in described WWW web data, comprising:
The absolute information of the key element in described WWW web data is converted to the relative information of the object element in described WAP page data;
The absolute information of the key element in described WWW web data, comprising: the absolute display length of the absolute layout of described key element, the absolute size of described key element or described key element;
The relative information of the object element in described WAP page data, comprising: the relative display length of the relative placement of described object element, the relative size of described object element or described object element.
6. the method for claim 1, is characterized in that, after the WAP page that described generation described WAP page data are corresponding and WAP page address, comprising:
Send the address response message corresponding with described address request to described mobile terminal, described address response message carries described WAP page address, to make described mobile terminal WAP page data according to described WAP page address acquisition.
7. method as claimed in claim 6, is characterized in that, after the described address response message corresponding with described address request to described mobile terminal transmission, comprising:
Receive the request of access that described mobile terminal sends, described request of access carries described WAP page address;
Described WAP page data corresponding to described WAP page address are sent to described mobile terminal.
8. a webpage conversion equipment, is characterized in that, described device comprises:
Address requests receiver module, for the address request that mobile terminal receive sends, described address request is the request message carrying the WWW web page address of mobile terminal account access and the display information of described mobile terminal that browser of mobile terminal client generates when receiving the online request of mobile terminal account;
Web data download module, for downloading WWW web data corresponding to described WWW web page address according to the WWW web page address of described mobile terminal account access;
Web data processing module, for the WWW web data got described in resolving, and is converted to the WAP page data with the display information matches of described mobile terminal by described WWW web data;
Generation module, for generating WAP page corresponding to described WAP page data and WAP page address.
9. device as claimed in claim 8, it is characterized in that, described web data processing module comprises:
Acquiring unit, for traveling through the element of all nodes in described WWW web data, obtains WWW web page elements different from WAP page element in described WWW web data;
First converting unit, for being converted to WAP page element by the WWW web page element different from WAP page element in the described described WWW web data got.
10. device as claimed in claim 8, it is characterized in that, described web data processing module comprises:
Extraction unit, for traveling through the element of all nodes in described WWW web data, extract the key element in described WWW web data, described key element comprises: the Web page picture information of the webpage Schema information of described WWW webpage, the web page text information of described WWW webpage or described WWW webpage.
11. devices as claimed in claim 10, it is characterized in that, described web data processing module comprises:
Second converting unit, for being converted to and the object element in the WAP page of the display information matches of described mobile terminal by the key element in described WWW web data, described object element comprises: the Web page picture information of the webpage Schema information of described WAP page, the web page text information of described WAP page or described WAP page.
12. devices as claimed in claim 11, is characterized in that, described second converting unit specifically for:
The absolute information of the key element in described WWW web data is converted to the relative information of the object element in described WAP page data;
The absolute information of the key element in described WWW web data, comprising: the absolute display length of the absolute layout of described key element, the absolute size of described key element or described key element;
The relative information of the object element in described WAP page data, comprising: the relative display length of the relative placement of described object element, the relative size of described object element or described object element.
13. devices as claimed in claim 8, it is characterized in that, described device also comprises:
Address response module, for sending the address response message corresponding with described address request to described mobile terminal, described address response message carries described WAP page address, to make described mobile terminal WAP page data according to described WAP page address acquisition.
14. devices as claimed in claim 13, it is characterized in that, described device also comprises:
Request of access receiver module, for receiving the request of access that described mobile terminal sends, described request of access carries described WAP page address;
Web data issues module, for sending described WAP page data corresponding to described WAP page address to described mobile terminal.
15. 1 kinds of WAP server, is characterized in that, comprise as arbitrary in claim 8 ~ 14 as described in device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310684648.0A CN104714958A (en) | 2013-12-12 | 2013-12-12 | Webpage transfer method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310684648.0A CN104714958A (en) | 2013-12-12 | 2013-12-12 | Webpage transfer method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104714958A true CN104714958A (en) | 2015-06-17 |
Family
ID=53414302
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310684648.0A Pending CN104714958A (en) | 2013-12-12 | 2013-12-12 | Webpage transfer method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104714958A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107577825A (en) * | 2017-10-23 | 2018-01-12 | 林楚莲 | A kind of method and device in mobile terminal loading webpage |
CN108965223A (en) * | 2017-12-12 | 2018-12-07 | 北京视联动力国际信息技术有限公司 | It is a kind of based on view networking web page processing method, proxy server and view networked terminals |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101067819A (en) * | 2007-06-07 | 2007-11-07 | 北京大学 | Web page resource issuing method and issuing system |
CN101178717A (en) * | 2007-12-05 | 2008-05-14 | 优视动景(北京)技术服务有限公司 | Method for adaptation processing web page and web page adaptation device |
CN101197849A (en) * | 2007-12-21 | 2008-06-11 | 腾讯科技(深圳)有限公司 | Method and device for commuting internet page into wireless application protocol page |
CN103166981A (en) * | 2011-12-08 | 2013-06-19 | 腾讯科技(深圳)有限公司 | Wireless webpage transcoding method and device |
-
2013
- 2013-12-12 CN CN201310684648.0A patent/CN104714958A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101067819A (en) * | 2007-06-07 | 2007-11-07 | 北京大学 | Web page resource issuing method and issuing system |
CN101178717A (en) * | 2007-12-05 | 2008-05-14 | 优视动景(北京)技术服务有限公司 | Method for adaptation processing web page and web page adaptation device |
CN101197849A (en) * | 2007-12-21 | 2008-06-11 | 腾讯科技(深圳)有限公司 | Method and device for commuting internet page into wireless application protocol page |
CN103166981A (en) * | 2011-12-08 | 2013-06-19 | 腾讯科技(深圳)有限公司 | Wireless webpage transcoding method and device |
Non-Patent Citations (3)
Title |
---|
刘文静: "《WEB到WAP的转换过程中页面去噪问题的研究》", 《计算机应用与软件》 * |
朱琳: "《基于移动代理服务器的适配模板***研究与实现》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
赵立娟 等: "《基于语义关联和结构分析的WEB到WAP转换器的研究》", 《计算机工程与科学》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107577825A (en) * | 2017-10-23 | 2018-01-12 | 林楚莲 | A kind of method and device in mobile terminal loading webpage |
CN108965223A (en) * | 2017-12-12 | 2018-12-07 | 北京视联动力国际信息技术有限公司 | It is a kind of based on view networking web page processing method, proxy server and view networked terminals |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102779167B (en) | The method and system of display web page in the terminal | |
CN101853293B (en) | Adaptive paging method and device | |
US20150189036A1 (en) | Offline caching method and apparatus | |
CN104978358B (en) | The method and intercepting page segment of desktop presentation web page fragments are to desktop presentation system | |
CN103593354A (en) | Method, device, server and system for filtering network page advertisements | |
CN105095280A (en) | Caching method and apparatus for browser | |
WO2018001124A1 (en) | Webpage file sending method, webpage rendering method and apparatus, and webpage rendering system | |
WO2012122934A1 (en) | Method for rearranging web page | |
CN106331149A (en) | Webpage code adapting method applicable to client environment | |
CN103268319A (en) | Cloud browser based on webpages | |
CN106339414A (en) | Webpage rendering method and device | |
CN103873918A (en) | Picture processing method, device and terminal | |
CN102750281A (en) | Script processing method and system of browser | |
CN103246678A (en) | Method and device for previewing web page contents | |
CN104063407A (en) | Browser architecture based on cloud computing and analysis method | |
CN104423991A (en) | Webpage loading and webpage data providing method and device of mobile terminal | |
CN104063401A (en) | Webpage style address merging method and device | |
WO2014176906A1 (en) | Online video playing method and apparatus and computer readable medium | |
CN102314499A (en) | Method and equipment for processing webpage content | |
CN101963992A (en) | Method and browser for increasing webpage display speed | |
CN103516787A (en) | Method, terminal and system for synchronous display | |
CN102760157B (en) | A kind of for generating the method that release news, device and the equipment corresponding with mobile terminal | |
CN103136259A (en) | Method and device for processing webpage contents based on content block identification | |
CN102955852A (en) | Method, device and equipment for webpage resource processing | |
CN114297544A (en) | Remote browsing method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150617 |