WO2018000616A1 - 一种数据处理方法、装置及电子设备 - Google Patents
一种数据处理方法、装置及电子设备 Download PDFInfo
- Publication number
- WO2018000616A1 WO2018000616A1 PCT/CN2016/099964 CN2016099964W WO2018000616A1 WO 2018000616 A1 WO2018000616 A1 WO 2018000616A1 CN 2016099964 W CN2016099964 W CN 2016099964W WO 2018000616 A1 WO2018000616 A1 WO 2018000616A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- loaded
- advertisement
- webpage
- resources
- webpage data
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
Definitions
- the present application relates to the field of data processing technologies, and in particular, to a data processing method, apparatus, and electronic device.
- web pages can be browsed in a variety of smart devices. For example, mobile phones, tablets, and smart TVs can browse web pages. When browsing web pages, web pages usually have a lot of advertisements.
- most browsers or applications in the prior art can intercept (or block) advertisements in webpages, specifically: the identification of advertisements and the domain name of links in the prior art. Determine whether there is an advertisement in the webpage data. If it is determined that there is an advertisement in the webpage data, all the advertisements in the webpage are intercepted to reduce the influence of the advertisement on the user's reading.
- the prior art completely blocks the advertisements in the webpage, so that the webpages whose content is all advertisements have no content to display, and the webpage displays blank, which affects the display effect of the entire webpage.
- the present invention provides a data processing method, device, and electronic device, which solves the prior art method of completely blocking an advertisement in a webpage, and causes a webpage whose content is all advertisements to have no content for display, and the webpage displays blank, affecting the entire webpage. Show performance issues and improve the page display after blocking ads.
- the embodiment of the present application provides a data processing method, including: determining whether all resources included in data to be loaded are all advertisement resources; determining that all resources included in the data to be loaded are all For inventory, it’s prohibited to load a preset amount of inventory.
- the embodiment of the present invention provides a data processing apparatus, where the apparatus includes: a first processing unit, configured to determine whether all resources included in the webpage data to be loaded are all advertisement resources; and a second processing unit, configured to: When it is determined that all the resources included in the to-be-loaded webpage data are advertisement resources, it is prohibited to load a preset number of advertisement resources.
- the embodiment of the present application further provides a non-volatile computer storage medium storing computer-executable instructions for performing the data processing method of any of the above-mentioned embodiments of the present application.
- an embodiment of the present application further provides an electronic device, including: at least one processor; and a memory; wherein the memory stores a program executable by the at least one processor, where the instruction is Said at least one processor is operative to enable said at least one processor to perform any of the above described data processing methods of the present application.
- the embodiment of the present application further provides a program product, including program code, when the program product is running, the program code is used to execute any of the foregoing data processing methods of the present application.
- the data processing method, device, and electronic device provided by the embodiment of the present application determine whether all the resources included in the webpage data to be loaded are all advertisement resources, and when all the resources included in the data to be loaded are determined to be advertisement resources, Loading a preset amount of inventory is prohibited.
- FIG. 1 is a schematic flow chart of a data processing method according to Embodiment 1 of the present application.
- FIG. 2 is a schematic structural diagram of a data processing apparatus according to Embodiment 2 of the present application.
- FIG. 3 is a schematic diagram showing the hardware structure of an electronic device for executing a data processing method according to Embodiment 4 of the present application.
- the embodiment of the present application provides a data processing method, as shown in FIG. 1 , the method includes:
- Step 11 Determine whether all the resources included in the webpage data to be loaded are all advertisement resources
- the resource included in the webpage data to be loaded is an advertisement resource, and may be determined according to the identifier of the advertisement resource or the link domain name, or may be determined by other methods in the prior art, and details are not described herein again. If it is determined that each resource included in the webpage data to be loaded is an advertisement resource, it is determined that all the resources included in the webpage data to be loaded are all the advertisement resources; if it is determined that the webpage data to be loaded includes other resources that are not the advertisement resources, For example, the video resource determines that the resources included in the webpage data to be loaded are not all of the inventory resources.
- Step 13 When it is determined that all the resources included in the webpage data to be loaded are all the advertisement resources, the preset number of the advertisement resources are prohibited from being loaded.
- the method further includes: determining the number of the advertisement resources included in the webpage data to be loaded; and if the advertisement resources included in the webpage data to be loaded are included If the number of the advertisements is one, the inventory is loaded. If the number of the advertisement resources included in the webpage data to be loaded is multiple, the step of prohibiting the loading of the preset number of advertisement resources is performed.
- the advertisement resource is loaded, that is, in this case, the preset quantity value is 0; if it is determined that the webpage is to be loaded.
- the resources included in the data are all inventory resources, and the number of the advertisement resources included in the webpage data to be loaded is multiple. If all the advertisement resources are prohibited from being loaded, no content is displayed in the webpage presented by the webpage data. , the display is blank, therefore, it is forbidden to load a preset number of inventory resources, wherein the preset quantity can be determined according to the specific situation, and a specific value can also be set.
- all the resources included in the webpage data to be loaded are all the advertisement resources, and the number of the advertisement resources included in the webpage data to be loaded is multiple, and when the preset number of the advertisement resources are prohibited from being loaded, the statistics are to be loaded.
- the display parameter of each inventory included in the webpage data is prohibited from loading the advertisement resource when determining that the display parameter of any of the advertisement resources meets the preset condition, wherein the preset quantity of the advertisement resource includes at least one display parameter that satisfies the preset Conditional inventory, preferably, the preset number of inventory includes all the inventory resources whose display parameters meet the preset conditions.
- the display parameter includes any one of the following or a combination thereof: a location in the webpage presented by the webpage data to be loaded, and a display manner.
- a location in the webpage presented by the webpage data to be loaded a location in the webpage presented by the webpage data to be loaded
- display manner a display manner
- the location of the webpage to be loaded by the webpage data to be loaded includes: on both sides of the webpage presented by the webpage data to be loaded, in the middle of the webpage presented by the webpage data to be loaded, and in the webpage data to be loaded.
- the top of the webpage and the bottom of the webpage presented by the webpage data to be loaded; the display manner includes: the advertisement and the webpage are displayed in the same layer, and the advertisement is suspended on the webpage for display.
- the preset condition includes any one or a combination of the following: when the display parameter is included in the webpage where the webpage data to be loaded is presented, the location of the webpage presented by the webpage data to be loaded and The distance between the side edges of the webpage is less than the preset distance; and when the display parameter includes the display mode, the display mode is displayed on the webpage presented by the webpage data to be loaded.
- the loading of the advertisement resource is prohibited, wherein the preset condition may be set according to the display parameter.
- the display parameter is included in the webpage where the webpage data to be loaded is located, if it is determined that the display parameter of any of the advertisement resources satisfies the preset condition, the loading of the advertisement resource is prohibited, and When any of the advertisement resources is located in a webpage presented by the webpage data to be loaded, and the distance between the location of the webpage and the side edge of the webpage is less than a preset distance, the loading of the advertisement resource is prohibited;
- the display parameter includes a display mode, when it is determined that the display parameter of any of the advertisement resources satisfies the preset condition, the loading of the advertisement resource is prohibited, and may be performed when it is determined that any of the advertisement resources is suspended on the webpage presented by the webpage data to be loaded. , the loading of this inventory is prohibited.
- the display parameter of any of the advertisement resources when the display parameter of any of the advertisement resources is determined to meet the preset condition, the implementation process of loading the advertisement resource is prohibited.
- the display parameters include any one or a combination of the following: the location in the web page presented by the web page data to be loaded and the manner in which it is displayed.
- the display parameter includes a location in a webpage presented by the webpage data to be loaded; when it is determined that the display parameter of any of the advertisement resources satisfies a preset condition, loading the advertisement resource is prohibited, including: when any of the advertisement resources When the distance between the location where the webpage presented by the webpage data to be loaded is located and the side edge of the webpage is less than the preset distance, the loading of the advertisement resource is prohibited.
- the preset distance can be freely set, for example, the preset distance is 50 dpi.
- the middle position of the webpage displays blanks and affects the display effect of the webpage, and determines whether to load the advertisement according to the location in the webpage presented by the webpage data to be loaded.
- the resource it may be: when any of the advertisement resources in the webpage presented by the webpage data to be loaded and the distance between the side edge of the webpage and the side edge of the webpage is less than the preset distance, the loading of the advertisement resource is prohibited.
- the preset distance is 100 dpi
- the distance is 1200 dpi
- the position of the advertisement resource 2 included in the webpage data 1 to be loaded in the webpage presented by the webpage data 1 to be loaded is 500 dpi from the side edge of the webpage
- the position of the included advertisement resource 3 in the webpage presented by the webpage data 1 to be loaded is 10 dpi from the side edge of the webpage
- the advertisement resource 4 contained in the webpage data 1 to be loaded is the webpage to be loaded.
- the location of the webpage presented by the data 1 is 30 dpi from the side edge of the webpage; the advertisement resource 5 contained in the webpage data 1 to be loaded is located in the webpage presented by the webpage data 1 to be loaded. Position, the distance from the side edge of the web page is 200dpi; when loading webpage data 1, by The distance between the location of the advertisement resource 1 included in the webpage data 1 and the side edge of the webpage is 1200 dpi, which is greater than the preset distance of 100 dpi. Therefore, when the webpage data 1 is loaded, the advertisement resource 1 is loaded, and so on. When the webpage data 1 is loaded, the advertisement resource 2 and the advertisement resource 5 are loaded, and the advertisement resource 3 and the advertisement resource 4 are prohibited from being loaded.
- the advertisement may be determined to be The webpage presented by loading the webpage data is in a position on both sides, and if any advertisement is located at a distance between a position of the webpage presented by the webpage data to be loaded and a side edge of the webpage is greater than a preset distance, the same may be determined.
- the advertisement is in an intermediate position in the webpage presented by the webpage data to be loaded, and then determines whether to load the advertisement according to the position of any advertisement in the webpage presented by the webpage data to be loaded. Specifically, the advertisement is preferentially prohibited from being located on both sides of the webpage. Ads that do not prohibit loading ads located in the middle of the page.
- the advertisement resource 1 included in the webpage data 1 to be loaded is in an intermediate position in the webpage presented by the webpage data 1 to be loaded; the advertisement resource 2 included in the webpage data 1 to be loaded is to be loaded.
- the webpage data presented by the webpage data 1 is in the left edge area; the advertisement resource 3 included in the webpage data 1 to be loaded is in the left edge area in the webpage presented by the webpage data 1 to be loaded;
- the included advertisement resource 4 is in an intermediate position in the webpage presented by the webpage data 1 to be loaded;
- the advertisement resource 5 included in the webpage data 1 to be loaded is in the right edge region in the webpage presented by the webpage data 1 to be loaded;
- all the resources included in the webpage data to be loaded are all the advertisement resources, and the advertisement resources located at the two sides of the webpages to be loaded by the webpage data to be loaded are prohibited from being loaded, and the intermediate positions of the webpages presented by the webpage data to be loaded are reserved.
- the advertising resources enable all the content of the webpage data presented by the inventory of the inventory to be displayed, which improves the display effect of the page.
- Embodiment 2 The display parameter includes a display mode; when it is determined that the display parameter of any of the advertisement resources meets the preset condition, the loading of the advertisement resource is prohibited, including: when determining that any of the advertisement resources is suspended on the webpage presented by the webpage data to be loaded Loading this inventory is prohibited when displayed.
- the advertisement resources displayed on the webpage are divided into two display modes, one of which is displayed in the same layer as the webpage. After the advertisement of the display mode is prohibited, the position occupied by the advertisement resources is usually displayed as blank. May affect the display of the web page; the other is suspended in the web Displayed on the page, that is, displayed in a pop-up window in the webpage window, the display resource of the display manner can block the content displayed on the webpage, and after the loading is prohibited, the advertisement can be prevented from occluding the content displayed on the webpage, and the webpage is improved.
- Display effect therefore, when the display parameter includes the display mode, according to the display manner of each inventory, to determine whether to load the inventory, specifically: when determining that any of the inventory is suspended in the webpage to be loaded by the webpage data to be loaded It is forbidden to load this inventory when it is displayed.
- the display mode of the advertisement resource 1 included in the webpage data 1 is displayed on the webpage presented by the webpage data 1; the display mode of the advertisement resource 2 included in the webpage data 1 is the webpage data 1
- all the resources included in the webpage data to be loaded are all the advertisement resources, and the advertisement resources suspended on the webpages to be loaded by the webpage data to be loaded are prohibited from being loaded, and the same layer as the webpage presented by the webpage data to be loaded is reserved.
- the displayed inventory resources enable all the content of the webpage data presented by the inventory of the inventory to be displayed, which improves the display effect of the page.
- first embodiment and the second embodiment in the present application may be used alone or in combination with each other, so as not to affect the display effect of the webpage, and all the webpage data of the advertisement resource. The included inventory is blocked.
- all the resources included in the data of the webpage to be loaded are all the advertisement resources, and the number of the advertisement resources included in the webpage data to be loaded is multiple, and the preset quantity of the advertisement resources is prohibited from being loaded.
- a predetermined number of advertisements that are forbidden to be loaded are determined in all the advertisement resources included in the webpage data, they may also be randomly selected, or may be selected according to the identifier of the advertisement resource or the domain name link, for example, the prohibition of loading the domain name carries "ABC".
- the keyword inventory can also be selected according to the size of the inventory display image. For example, it is forbidden to load the inventory with the display image size larger than 100*100. Of course, other selection methods can also be used, which are not specifically limited herein.
- the resources included in the webpage data 1 to be loaded are all advertisement resources
- the advertisement resources included in the webpage data 1 to be loaded are: the information of the advertisement resource 1 is: domain name link: ABCD, display The image size is 10*10; the information of the inventory resource 2 is: domain name link: ASD, display image size 60*20; the information of the advertisement resource 3 is: domain name link: ABCF, display image size 50*30; advertising resource 4 information: domain name link: DFG, display image size 40*20; advertising resource 5 information: domain name link: YJGH, display image size 50*40; advertising resources 6
- the information is: domain name link: ABCH, display picture size 120*100;
- the information of the advertisement resource 7 is: domain name link: RYT, display picture size 50*100; when loading webpage data 1, for example: randomly select prohibiting loading of advertisement Resources 1, inventory 2, and inventory 3; or prohibit loading the advertisements with the words "ABC" in the domain name, ie, prohibit loading of inventory 1, inventory 3 and inventory 6; or prohibit
- a data processing method provided by the embodiment of the present application determines whether all the resources included in the webpage data to be loaded are all advertisement resources. When determining that all the resources included in the webpage data to be loaded are all the advertisement resources, the preset quantity is prohibited from being loaded. Inventory.
- the resources included in the webpage data to be loaded are not all the advertisement resources, even if all the advertisement resources are prohibited from being loaded, the content of the webpage to be loaded by the webpage data to be loaded is still available for display, and the display effect of the webpage is not affected. Therefore, when it is determined that all the resources included in the webpage data to be loaded are not all the advertisement resources, all the advertisement resources may be prohibited from being loaded to avoid the influence of the advertisement on the display content of the webpage.
- all the resources included in the webpage data to be loaded are all advertisement resources, and it is prohibited to load a preset number of advertisement resources, thereby prohibiting the loading of all the advertisement resources, thereby causing no content of the webpage to be displayed, and displaying blank.
- the resources included in the data to be loaded are not all inventory resources, and it is forbidden to load all the advertisement resources to avoid the influence of the advertisement on other display contents in the webpage, thereby improving the display effect of the page.
- the embodiment of the present application provides a data processing apparatus.
- the apparatus includes: a first processing unit 21, configured to determine whether all resources included in the webpage data to be loaded are all advertisement resources; and the second processing unit 23 For prohibiting loading a preset number of advertisement resources when determining that all the resources included in the webpage data to be loaded are inventory resources.
- a data processing apparatus determines whether all the resources included in the webpage data to be loaded are all advertisement resources. When determining that all the resources included in the webpage data to be loaded are all advertisement resources, the preset quantity is prohibited from being loaded. Inventory. In the embodiment of the present application, when it is determined that all the resources included in the data to be loaded are all advertisement resources, it is prohibited to load a preset number of advertisement resources, that is, some advertisements in the webpage whose content is all advertisements are intercepted to avoid Blocking all the advertisements in the webpage whose content is all advertisements causes no content of the webpage to be displayed, and the manner of intercepting all the advertisements in the webpage in the prior art, so that the webpages whose content is all advertisements have no content to be displayed, in the webpage
- the display is blank, which affects the display effect of the entire webpage. By blocking some advertisements in the webpage whose content is all advertisements, the advertisements of all the webpages whose content is all advertisements are effectively prevented from being intercepted, resulting in no content of the webpage. Display, which improves the display
- the second processing unit 23 is further configured to: when determining that the resources included in the webpage data to be loaded are not all the advertisement resources, prohibiting loading all the advertisements Resources.
- the second processing unit 23 is further configured to: determine the webpage data to be loaded. The number of the included inventory resources; if the number of the advertisement resources included in the webpage data to be loaded is one, the inventory is loaded, and if the number of the advertisement resources included in the webpage data to be loaded is multiple, the execution is prohibited.
- the step to load a preset amount of inventory if the number of the advertisement resources included in the webpage data to be loaded is one, the inventory is loaded, and if the number of the advertisement resources included in the webpage data to be loaded is multiple, the execution is prohibited. The step to load a preset amount of inventory.
- the second processing unit 23 is further configured to: collect display parameters of each advertisement resource included in the webpage data to be loaded; when determining any inventory resource When the display parameter meets the preset condition, the loading of the advertisement resource is prohibited.
- the preset quantity of the advertisement resource includes at least one advertisement resource whose display parameter meets the preset condition, and the display parameter includes any one of the following or a combination thereof: The location and display of the web page rendered by the web page data.
- the preset condition includes any one or a combination of the following: the display parameter is included when the location of the webpage presented by the webpage data to be loaded is located. The distance between the location where the webpage data is loaded and the side edge of the webpage is less than the preset distance; and when the display parameter includes the display mode, the display mode is displayed on the webpage presented by the webpage data to be loaded.
- the data processing apparatus may be integrated in a user terminal, for example, integrated in a mobile phone, a computer, and various smart devices, so that when all the resources included in determining the data of the to-be-loaded webpage are all advertising resources,
- the first processing unit 21 and the second processing unit 23 can all adopt a CPU processor or the like.
- a third embodiment of the present application provides a non-volatile computer storage medium.
- the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the data processing method in any of the foregoing method embodiments.
- the computer executable instructions are further configured to: when determining that the resources included in the webpage data to be loaded are not all the advertisement resources, Do not load all inventory.
- the computer executable instructions are further used to: determine The number of the advertisement resources included in the webpage data to be loaded; if the number of the advertisement resources included in the webpage data to be loaded is one, the advertisement resource is loaded, and if the number of the advertisement resources included in the webpage data to be loaded is more Then, the step of prohibiting the loading of a preset amount of inventory is performed.
- the computer executable instructions are further configured to: calculate a display parameter of each advertisement resource included in the webpage data to be loaded; When the display parameter of any of the advertisements meets the preset condition, the loading of the advertisement resource is prohibited.
- the preset quantity of the advertisement resource includes at least one advertisement resource whose display parameter meets the preset condition, and the display parameter includes any one of the following or a combination thereof. : The location and display mode of the web page presented by the web page data to be loaded.
- the preset condition includes any one or a combination of the following: the display parameter includes the number of the webpage to be loaded. According to the location of the presented webpage, the distance between the location in the webpage presented by the webpage data to be loaded and the side edge of the webpage is less than the preset distance; and when the display parameter includes the display mode, the display mode Displayed on a web page rendered by the web page data to be loaded.
- FIG. 3 is a schematic structural diagram of hardware of an electronic device for performing data processing according to Embodiment 4 of the present application. As shown in FIG. 3, the electronic device includes:
- One or more processors 310 and memory 320 are exemplified by one processor 310 in FIG.
- the electronic device that executes the data processing method may further include: an input device 330 and an output device 340.
- the processor 310, the memory 320, the input device 330, and the output device 340 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
- the memory 320 is used as a non-volatile computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer-executable program, and a module, such as a program instruction corresponding to the data processing method in the embodiment of the present application. / Module (for example, the first processing unit 21 and the second processing unit 23 shown in Fig. 2).
- the processor 310 executes various functional applications and data processing of the server by executing non-volatile software programs, instructions, and modules stored in the memory 320, that is, implementing the data processing method of the above method embodiment.
- the memory 320 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the data processing apparatus, and the like.
- memory 320 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
- memory 320 can optionally include memory remotely located relative to processor 310, which can be connected to the data processing device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- Input device 330 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the data processing device.
- the output device 340 can include a display device such as a display screen.
- One or more modules are stored in memory 320, and when executed by one or more processors 310, perform the data processing methods of any of the above-described method embodiments.
- the electronic device of the embodiment of the present application exists in various forms, including but not limited to:
- Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
- Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
- Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
- Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
- Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
- the server consists of a processor, a hard disk, a memory, a system bus, etc.
- the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
- the program is further configured to perform: when determining that the resources included in the webpage data to be loaded are not all the advertisement resources, prohibiting loading all the advertisement resources.
- the program is further configured to perform: determining that the webpage data to be loaded is included in the data. The number of the advertisement resources; if the number of the advertisement resources included in the webpage data to be loaded is one, the advertisement resource is loaded, and if the number of the advertisement resources included in the webpage data to be loaded is plural, the prohibition loading is performed. The steps to set up a number of inventory.
- the program is further configured to: perform: count display parameters of each advertisement resource included in the webpage data to be loaded; and determine display parameters of any of the advertisement resources.
- the preset condition is met, the loading of the advertisement resource is prohibited.
- the preset quantity of the advertisement resource includes at least one advertisement resource whose display parameter meets the preset condition, and the display parameter includes any one of the following or a combination thereof: in the webpage data to be loaded Presented in the webpage Where it is and how it is displayed.
- the preset condition includes any one or a combination of the following: the display parameter includes a location in a webpage presented by the webpage data to be loaded, The distance between the location where the webpage data is to be loaded and the side edge of the webpage is less than the preset distance; and when the display parameter includes the display mode, the display mode is suspended on the webpage presented by the webpage data to be loaded. .
- the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本申请提供一种数据处理方法、装置及电子设备,解决现有技术对网页中广告进行全部拦截的方式,导致内容全部为广告的网页无内容可供显示,网页中显示空白,影响整个网页的显示效果的问题,提高拦截广告后的页面显示效果。所述数据处理方法,包括:确定待加载网页数据中所包含的资源是否全部为广告资源;在确定所述待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源。
Description
本申请要求在2016年06月28日提交中国专利局、申请号为201610495888.X、发明名称为“一种数据处理方法及装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
本申请涉及数据处理技术领域,尤其涉及一种数据处理方法、装置及电子设备。
随着智能设备的发展,在各种各样的智能设备中均可以浏览网页,例如:在手机、平板电脑、智能电视中均可以浏览网页,在浏览网页时,网页中通常会附带很多的广告,为了减少广告对用户阅读的影响,现有技术中多数浏览器或者应用程序均可以对网页中的广告进行拦截(或者屏蔽),具体来说:现有技术中通过广告的标识以及链接域名等确定网页数据中是否存在广告,若确定网页数据中存在广告,则对网页中的所有广告进行拦截,以减少广告对用户阅读的影响。
发明人在实现本申请过程中,发现由于现有技术中在对网页中的广告进行拦截时,对网页中的所有广告均进行拦截,若某一网页中的内容全部为广告,则对该网页中的广告全部拦截之后,该网页中将无内容可供显示,网页中显示空白,影响整个网页的显示效果。
综上所述,现有技术对网页中广告进行全部拦截的方式,导致内容全部为广告的网页无内容可供显示,网页中显示空白,影响整个网页的显示效果。
发明内容
本申请提供一种数据处理方法、装置及电子设备,解决现有技术对网页中广告进行全部拦截的方式,导致内容全部为广告的网页无内容可供显示,网页中显示空白,影响整个网页的显示效果的问题,提高拦截广告后的页面显示效果。
第一方面,本申请实施例提供一种数据处理方法,该方法包括:确定待加载网页数据中所包含的资源是否全部为广告资源;在确定所述待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源。
第二方面,本发明实施例提供了一种数据处理装置,该装置包括:第一处理单元,用于确定待加载网页数据中所包含的资源是否全部为广告资源;第二处理单元,用于在确定所述待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源。
第三方面,本申请实施例还提供了一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行本申请上述任一项数据处理方法。
第四方面,本申请实施例还提供了一种电子设备,包括:至少一个处理器;以及存储器;其中,所述存储器存储有可被所述至少一个处理器执行的程序,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本申请上述任一项数据处理方法。
第五方面,本申请实施例还提供了一种程序产品,其包括程序代码,当所述程序产品运行时,所述程序代码用于执行本申请上述任一项数据处理方法。
本申请实施例提供的一种数据处理方法、装置及电子设备,确定待加载网页数据中所包含的资源是否全部为广告资源,在确定待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源。本申请实施例中,在确定待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源,也即对内容全部为广告的网页中的部分广告进行拦截,以避免对内容全部为广告的网页中的全部广告进行拦截导致网页无内容可显示,与现有技术中对网页中广告进行全部拦截的方式,导致内容全部为广告的网页无内容可供显示,网页中显示空白,影响整个网页的显示效果相比,通过对内容全部为广告的网页中的部分广告进行拦截,有效的避免了对内容全部为广告的网页中的全部广告进行拦截,导致网页无内容可显示,从而提高了拦截广告后的页面显示效果。
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是本申请实施例一提供的一种数据处理方法的示意流程图;
图2是本申请实施例二提供的一种数据处理装置的结构示意图;
图3是本申请实施例四提供的执行数据处理方法的电子设备的硬件结构示意图。
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。
实施例一
本申请实施例提供一种数据处理方法,如图1所示,该方法包括:
步骤11,确定待加载网页数据中所包含的资源是否全部为广告资源;
具体实施时,确定待加载网页数据中所包含的资源是否为广告资源,可以根据广告资源的标识或者链接域名进行确定,也可以采用现有技术中的其它方式进行确定,此处不再赘述。若确定待加载网页数据中所包含的每一资源均为广告资源,则确定待加载网页数据中所包含的资源全部为广告资源;若确定待加载网页数据中包含不为广告资源的其它资源,例如:视频资源,则确定待加载网页数据中所包含的资源不全部为广告资源。
步骤13,在确定待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源。
具体实施时,在确定待加载网页数据中所包含的资源全部为广告资源之后,该方法还包括:确定待加载网页数据中所包含广告资源的个数;若待加载网页数据中所包含广告资源的个数为一个,则加载该广告资源,若待加载网页数据中所包含广告资源的个数为多个,则执行禁止加载预设数量的广告资源的步骤。
在本申请实施例中,若确定待加载网页数据中所包含的资源全部为广告资源,且待加载网页数据中所包含广告资源的个数为一个,则若禁止加
载该广告资源,则网页数据所呈现的网页中将无内容可供显示,显示空白,因此,加载该广告资源,也即此种情况下,预设数量取值为0;若确定待加载网页数据中所包含的资源全部为广告资源,且待加载网页数据中所包含广告资源的个数为多个,则若禁止加载全部广告资源,则网页数据所呈现的网页中将无内容可供显示,显示空白,因此,禁止加载预设数量的广告资源,其中,预设数量可以根据具体情况确定,也可以设定具体的数值。
较为优选地,在确定待加载网页数据中所包含的资源全部为广告资源,且待加载网页数据中所包含广告资源的个数为多个,禁止加载预设数量的广告资源时,统计待加载网页数据中所包含每一广告资源的显示参数,当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,其中,预设数量的广告资源包括至少一个显示参数满足预设条件的广告资源,较为优选地,预设数量的广告资源包括所有显示参数满足预设条件的广告资源。
其中,显示参数包括以下任意一种或其组合:在待加载网页数据所呈现的网页中所处的位置以及显示方式。当然,在本申请的其它实施例中,还可以包括其它显示参数,此处并不用于具体限定。
在待加载网页数据所呈现的网页中所处的位置,包括:处于待加载网页数据所呈现的网页的两侧、处于待加载网页数据所呈现的网页的中间、处于待加载网页数据所呈现的网页的顶部以及处于待加载网页数据所呈现的网页的底部等;显示方式包括:广告与网页同层显示以及广告悬浮于网页之上显示。
具体来说,预设条件包括以下任一或其组合:在显示参数包括在待加载网页数据所呈现的网页中所处的位置时,在待加载网页数据所呈现的网页中所处的位置与网页的侧边缘之间的距离小于预设距离;以及显示参数包括显示方式时,显示方式为悬浮于待加载网页数据所呈现的网页上显示。
具体实施时,当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,其中,预设条件可以根据显示参数进行设定。作为较为具体的实施例,假设显示参数包括在待加载网页数据所呈现的网页中所处的位置,则当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,可以为当任一广告资源在待加载网页数据所呈现的网页中所处的位置与网页的侧边缘之间的距离小于预设距离时,禁止加载该广告资源;
假设显示参数包括显示方式,则当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,可以为当确定任一广告资源悬浮于待加载网页数据所呈现的网页上显示时,禁止加载该广告资源。当然,本领域技术人员应当理解的是,在本申请的其它实施例中,若显示参数不同于本实施例中的显示参数,则预设条件也可以是其它条件。
下面结合较为具体的实施例,对本申请实施例中当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源的实施过程进行详细的说明,本申请实施例提供的方法中,显示参数包括以下任意一种或其组合:在待加载网页数据所呈现的网页中所处的位置以及显示方式。
实施方式一、显示参数包括在待加载网页数据所呈现的网页中所处的位置;当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,包括:当任一广告资源在待加载网页数据所呈现的网页中所处的位置与网页的侧边缘之间的距离小于预设距离时,禁止加载该广告资源。其中,预设距离可以自由设定,例如:预设距离为50dpi。
具体实施时,显示参数包括在待加载网页数据所呈现的网页中所处的位置时,可以根据在待加载网页数据所呈现的网页中所处的位置,来确定是否加载该广告资源,具体来说,为了避免禁止加载位于网页中间位置的广告资源之后,网页的中间位置显示空白而影响网页的显示效果,在根据在待加载网页数据所呈现的网页中所处的位置,来确定是否加载广告资源时,可以为:当任一广告资源在待加载网页数据所呈现的网页中所处的位置与网页的侧边缘之间的距离小于预设距离时,禁止加载该广告资源。
作为较为具体的实施例,假设预设距离为100dpi,待加载网页数据1中所包含的广告资源1在待加载网页数据1所呈现的网页中所处的位置,与网页的侧边缘之间的距离为1200dpi;待加载网页数据1中所包含的广告资源2在待加载网页数据1所呈现的网页中所处的位置,与网页的侧边缘之间的距离为500dpi;待加载网页数据1中所包含的广告资源3在待加载网页数据1所呈现的网页中所处的位置,与网页的侧边缘之间的距离为10dpi;待加载网页数据1中所包含的广告资源4在待加载网页数据1所呈现的网页中所处的位置,与网页的侧边缘之间的距离为30dpi;待加载网页数据1中所包含的广告资源5在待加载网页数据1所呈现的网页中所处的位置,与网页的侧边缘之间的距离为200dpi;则在加载网页数据1时,由
于网页数据1中所包含的广告资源1在网页中所处的位置与网页的侧边缘之间的距离为1200dpi,大于预设距离100dpi,因此,加载网页数据1时加载广告资源1,依次类推,在加载网页数据1时,加载广告资源2以及广告资源5,禁止加载广告资源3和广告资源4。
当然,在本申请的其它实施例中,若任一广告在待加载网页数据所呈现的网页中所处的位置与网页的侧边缘之间的距离小于预设距离,也可以确定该广告在待加载网页数据所呈现的网页中处于两侧位置,而若任一广告在待加载网页数据所呈现的网页中所处的位置与网页的侧边缘之间的距离大于预设距离,也可以确定该广告在待加载网页数据所呈现的网页中处于中间位置,进而根据任一广告在待加载网页数据所呈现的网页中的位置,来确定是否加载广告,具体来说:优先禁止加载位于网页两侧的广告,不禁止加载位于网页中间位置的广告。
作为较为具体的实施例,假设待加载网页数据1中所包含的广告资源1在待加载网页数据1所呈现的网页中处于中间位置;待加载网页数据1中所包含的广告资源2在待加载网页数据1所呈现的网页中处于左侧边缘区域;待加载网页数据1中所包含的广告资源3在待加载网页数据1所呈现的网页中处于左侧边缘区域;待加载网页数据1中所包含的广告资源4在待加载网页数据1所呈现的网页中处于中间位置;待加载网页数据1中所包含的广告资源5在待加载网页数据1所呈现的网页中处于右侧边缘区域;则在加载网页数据1时,禁止加载网页数据1中的广告资源2、广告资源3以及广告资源5。
本申请实施例中,在待加载网页数据中所包含的资源全部为广告资源,禁止加载位于待加载网页数据所呈现网页两侧位置的广告资源,保留位于待加载网页数据所呈现网页中间位置的广告资源,使得全部为广告资源的网页数据所呈现的网页中仍有内容可供显示,提升了页面的显示效果。
实施方式二、显示参数包括显示方式;当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,包括:当确定任一广告资源悬浮于待加载网页数据所呈现的网页上显示时,禁止加载该广告资源。
具体实施时,网页中显示的广告资源分为两种显示方式,一种是与网页同层显示的,此种显示方式的广告资源,在禁止加载之后,通常广告资源占据的位置显示为空白,可能影响网页的显示效果;另一种是悬浮于网
页上显示的,也即在网页窗口中以弹出窗口显示的,此种显示方式的广告资源会遮挡网页中显示的内容,在禁止加载之后,能够避免广告对网页中显示内容的遮挡,提高网页的显示效果,因此,在显示参数包括显示方式时,根据每一广告资源的显示方式,来确定是否加载广告资源,具体来说:当确定任一广告资源悬浮于待加载网页数据所呈现的网页上显示时,禁止加载该广告资源。
作为较为具体的实施例,假设网页数据1中所包含广告资源1的显示方式为悬浮于网页数据1所呈现的网页上显示;网页数据1中所包含广告资源2的显示方式为与网页数据1所呈现的网页同层显示;网页数据1中所包含广告资源3的显示方式为与网页数据1所呈现的网页同层显示,则在加载网页数据1时,禁止加载广告资源1,而不禁止加载广告资源2和广告资源3。
本申请实施例中,在待加载网页数据中所包含的资源全部为广告资源,禁止加载悬浮于待加载网页数据所呈现网页之上显示的广告资源,保留与待加载网页数据所呈现网页同层显示的广告资源,使得全部为广告资源的网页数据所呈现的网页中仍有内容可供显示,提升了页面的显示效果。
需要说明的是,在具体实施时,本申请中的实施方式一以及实施方式二可以单独使用,也可以相互结合使用,以在不影响网页显示效果的同时,对全部为广告资源的网页数据中所包含的广告资源进行拦截。
在本申请的其它实施例中,在确定待加载网页数据中所包含的资源全部为广告资源,且待加载网页数据中所包含广告资源的个数为多个,禁止加载预设数量的广告资源,在网页数据所包含的所有广告资源中确定禁止加载的预设数量的广告资源时,也可以随机选择,或者按照广告资源的标识或者域名链接选择,例如:禁止加载域名中携带有“ABC”字样的广告资源,还可以根据广告资源展示图片的尺寸大小进行选择,例如:禁止加载展示图片尺寸大于100*100的广告资源,当然还可以采用其它选择方法,此处并不用于具体限定。
作为较为具体的实施例,假设待加载网页数据1中所包含的资源全部为广告资源,待加载网页数据1中所包含的广告资源分别为:广告资源1的信息为:域名链接:ABCD、展示图片尺寸10*10;广告资源2的信息为:域名链接:ASD、展示图片尺寸60*20;广告资源3的信息为:域名链接:
ABCF、展示图片尺寸50*30;广告资源4的信息为:域名链接:DFG、展示图片尺寸40*20;广告资源5的信息为:域名链接:YJGH、展示图片尺寸50*40;广告资源6的信息为:域名链接:ABCH、展示图片尺寸120*100;广告资源7的信息为:域名链接:RYT、展示图片尺寸50*100;则在加载网页数据1时,例如:随机选择禁止加载广告资源1、广告资源2以及广告资源3;或者禁止加载广告资源域名中携带有“ABC”字样的广告,即禁止加载广告资源1、广告资源3以及广告资源6;或者禁止加载广告展示图片尺寸大于100*100的广告,也即禁止加载广告资源6。
本申请实施例提供的一种数据处理方法,确定待加载网页数据中所包含的资源是否全部为广告资源,在确定待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源。本申请实施例中,在确定待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源,也即对内容全部为广告的网页中的部分广告进行拦截,以避免对内容全部为广告的网页中的全部广告进行拦截导致网页无内容可显示,与现有技术中对网页中广告进行全部拦截的方式,导致内容全部为广告的网页无内容可供显示,网页中显示空白,影响整个网页的显示效果相比,通过对内容全部为广告的网页中的部分广告进行拦截,有效的避免了对内容全部为广告的网页中的全部广告进行拦截,导致网页无内容可显示,从而提高了拦截广告后的页面显示效果。
本申请实施例中,在确定待加载网页数据中所包含的资源不全部为广告资源时,禁止加载全部广告资源。
具体实施时,若待加载网页数据中所包含的资源不全部为广告资源,则即使禁止加载全部广告资源,待加载网页数据所呈现的网页中仍有内容可供显示,不影响网页的显示效果,因此,在确定待加载网页数据中所包含的资源不全部为广告资源时,可以禁止加载全部广告资源,以避免广告对网页显示内容的影响。
本申请实施例提供的方法中,在待加载网页数据中所包含的资源全部为广告资源,禁止加载预设数量的广告资源,避免禁止加载全部广告资源,导致网页无内容可供显示,显示空白;而在待加载网页数据中所包含的资源不全部为广告资源,禁止加载全部广告资源,以避免广告对网页中其它显示内容的影响,从而提高页面的显示效果。
实施例二
本申请实施例提供一种数据处理装置,如图2所示,该装置包括:第一处理单元21,用于确定待加载网页数据中所包含的资源是否全部为广告资源;第二处理单元23,用于在确定待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源。
本申请实施例提供的一种数据处理装置,确定待加载网页数据中所包含的资源是否全部为广告资源,在确定待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源。本申请实施例中,在确定待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源,也即对内容全部为广告的网页中的部分广告进行拦截,以避免对内容全部为广告的网页中的全部广告进行拦截导致网页无内容可显示,与现有技术中对网页中广告进行全部拦截的方式,导致内容全部为广告的网页无内容可供显示,网页中显示空白,影响整个网页的显示效果相比,通过对内容全部为广告的网页中的部分广告进行拦截,有效的避免了对内容全部为广告的网页中的全部广告进行拦截,导致网页无内容可显示,从而提高了拦截广告后的页面显示效果。
在一种可能的实施方式中,本申请实施例提供的装置中,第二处理单元23,还用于:在确定待加载网页数据中所包含的资源不全部为广告资源时,禁止加载全部广告资源。
在一种可能的实施方式中,本申请实施例提供的装置中,第二处理单元23在确定待加载网页数据中所包含的资源全部为广告资源之后,还用于:确定待加载网页数据中所包含广告资源的个数;若待加载网页数据中所包含广告资源的个数为一个,则加载该广告资源,若待加载网页数据中所包含广告资源的个数为多个,则执行禁止加载预设数量的广告资源的步骤。
在一种可能的实施方式中,本申请实施例提供的装置中,第二处理单元23,还用于:统计待加载网页数据中所包含每一广告资源的显示参数;当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,其中,预设数量的广告资源包括至少一个显示参数满足预设条件的广告资源,显示参数包括以下任意一种或其组合:在待加载网页数据所呈现的网页中所处的位置以及显示方式。
在一种可能的实施方式中,本申请实施例提供的装置中,预设条件包括以下任一或其组合:显示参数包括在待加载网页数据所呈现的网页中所处的位置时,在待加载网页数据所呈现的网页中所处的位置与网页的侧边缘之间的距离小于预设距离;以及显示参数包括显示方式时,显示方式为悬浮于待加载网页数据所呈现的网页上显示。
本申请实施例提供的数据处理装置,可以集成在用户终端中,例如:集成在手机、电脑以及各种智能设备中,以在在确定待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源,提高网页的显示效果,其中,第一处理单元21和第二处理单元23均可以采用CPU处理器等。
实施例三
本申请实施例三提供了一种非易失性计算机存储介质,计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的数据处理方法。
在一种可能的实施方式中,本申请实施例提供的非易失性计算机存储介质中,计算机可执行指令还用于:在确定待加载网页数据中所包含的资源不全部为广告资源时,禁止加载全部广告资源。
在一种可能的实施方式中,本申请实施例提供的非易失性计算机存储介质中,在确定待加载网页数据中所包含的资源全部为广告资源之后,计算机可执行指令还用于:确定待加载网页数据中所包含广告资源的个数;若待加载网页数据中所包含广告资源的个数为一个,则加载该广告资源,若待加载网页数据中所包含广告资源的个数为多个,则执行禁止加载预设数量的广告资源的步骤。
在一种可能的实施方式中,本申请实施例提供的非易失性计算机存储介质中,计算机可执行指令还用于:统计待加载网页数据中所包含每一广告资源的显示参数;当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,其中,预设数量的广告资源包括至少一个显示参数满足预设条件的广告资源,显示参数包括以下任意一种或其组合:在待加载网页数据所呈现的网页中所处的位置以及显示方式。
在一种可能的实施方式中,本申请实施例提供的非易失性计算机存储介质中,预设条件包括以下任一或其组合:显示参数包括在待加载网页数
据所呈现的网页中所处的位置时,在待加载网页数据所呈现的网页中所处的位置与网页的侧边缘之间的距离小于预设距离;以及显示参数包括显示方式时,显示方式为悬浮于待加载网页数据所呈现的网页上显示。
实施例四
图3是本申请实施例四提供的执行数据处理方法的电子设备的硬件结构示意图,如图3所示,该电子设备包括:
一个或多个处理器310以及存储器320,图3中以一个处理器310为例。
执行数据处理方法的电子设备还可以包括:输入装置330和输出装置340。
处理器310、存储器320、输入装置330和输出装置340可以通过总线或者其他方式连接,图3中以通过总线连接为例。
存储器320作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的数据处理方法对应的程序指令/模块(例如,附图2所示的第一处理单元21和第二处理单元23)。处理器310通过运行存储在存储器320中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例数据处理方法。
存储器320可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据数据处理装置的使用所创建的数据等。此外,存储器320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器320可选包括相对于处理器310远程设置的存储器,这些远程存储器可以通过网络连接至数据处理装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置330可接收输入的数字或字符信息,以及产生与数据处理装置的用户设置以及功能控制有关的键信号输入。输出装置340可包括显示屏等显示设备。
一个或者多个模块存储在存储器320中,当被一个或者多个处理器310执行时,执行上述任意方法实施例中的数据处理方法。
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。
本申请实施例的电子设备以多种形式存在,包括但不限于:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。
(5)其他具有数据交互功能的电子装置。
在一种可能的实施方式中,本申请实施例提供的电子设备中,程序还设置为执行:在确定待加载网页数据中所包含的资源不全部为广告资源时,禁止加载全部广告资源。
在一种可能的实施方式中,本申请实施例提供的电子设备中,在确定待加载网页数据中所包含的资源全部为广告资源之后,程序还设置为执行:确定待加载网页数据中所包含广告资源的个数;若待加载网页数据中所包含广告资源的个数为一个,则加载该广告资源,若待加载网页数据中所包含广告资源的个数为多个,则执行禁止加载预设数量的广告资源的步骤。
在一种可能的实施方式中,本申请实施例提供的电子设备中,程序还设置为执行:统计待加载网页数据中所包含每一广告资源的显示参数;当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,其中,预设数量的广告资源包括至少一个显示参数满足预设条件的广告资源,显示参数包括以下任意一种或其组合:在待加载网页数据所呈现的网页中
所处的位置以及显示方式。
在一种可能的实施方式中,本申请实施例提供的电子设备中,预设条件包括以下任一或其组合:显示参数包括在待加载网页数据所呈现的网页中所处的位置时,在待加载网页数据所呈现的网页中所处的位置与网页的侧边缘之间的距离小于预设距离;以及显示参数包括显示方式时,显示方式为悬浮于待加载网页数据所呈现的网页上显示。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
Claims (21)
- 一种数据处理方法,应用于终端设备,其特征在于,包括:确定待加载网页数据中所包含的资源是否全部为广告资源;在确定所述待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源。
- 根据权利要求1所述的方法,其特征在于,该方法还包括:在确定所述待加载网页数据中所包含的资源不全部为广告资源时,禁止加载全部广告资源。
- 根据权利要求1所述的方法,其特征在于,在确定所述待加载网页数据中所包含的资源全部为广告资源之后,该方法还包括:确定所述待加载网页数据中所包含广告资源的个数;若所述待加载网页数据中所包含广告资源的个数为一个,则加载该广告资源,若所述待加载网页数据中所包含广告资源的个数为多个,则执行禁止加载预设数量的广告资源的步骤。
- 根据权利要求1-3中任一项所述的方法,其特征在于,该方法还包括:统计所述待加载网页数据中所包含每一广告资源的显示参数;当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,其中,所述预设数量的广告资源包括至少一个显示参数满足预设条件的广告资源,所述显示参数包括以下任意一种或其组合:在所述待加载网页数据所呈现的网页中所处的位置以及显示方式。
- 根据权利要求4所述的方法,其特征在于,所述预设条件包括以下任一或其组合:所述显示参数包括在所述待加载网页数据所呈现的网页中所处的位置时,在所述待加载网页数据所呈现的网页中所处的位置与所述网页的侧边缘之间的距离小于预设距离;以及所述显示参数包括显示方式时,显示方式为悬浮于所述待加载网页数据所呈现的网页上显示。
- 一种数据处理装置,其特征在于,包括:第一处理单元,用于确定待加载网页数据中所包含的资源是否全部为广告资源;第二处理单元,用于在确定所述待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源。
- 根据权利要求6所述的装置,其特征在于,所述第二处理单元,还用于:在确定所述待加载网页数据中所包含的资源不全部为广告资源时,禁止加载全部广告资源。
- 根据权利要求6所述的装置,其特征在于,所述第二处理单元在确定所述待加载网页数据中所包含的资源全部为广告资源之后,还用于:确定所述待加载网页数据中所包含广告资源的个数;若所述待加载网页数据中所包含广告资源的个数为一个,则加载该广告资源,若所述待加载网页数据中所包含广告资源的个数为多个,则执行禁止加载预设数量的广告资源的步骤。
- 根据权利要求6-8中任一项所述的装置,其特征在于,所述第二处理单元,还用于:统计所述待加载网页数据中所包含每一广告资源的显示参数;当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,其中,所述预设数量的广告资源包括至少一个显示参数满足预设条件的广告资源,所述显示参数包括以下任意一种或其组合:在所述待加载网页数据所呈现的网页中所处的位置以及显示方式。
- 根据权利要求9所述的装置,其特征在于,所述预设条件包括以下任一或其组合:所述显示参数包括在所述待加载网页数据所呈现的网页中所处的位置时,在所述待加载网页数据所呈现的网页中所处的位置与所述网页的侧边缘之间的距离小于预设距离;以及所述显示参数包括显示方式时,显示方式为悬浮于所述待加载网页数据所呈现的网页上显示。
- 一种非易失性计算机存储介质,其特征在于,存储有计算机可执行指令,所述计算机可执行指令设置为:确定待加载网页数据中所包含的资源是否全部为广告资源;在确定所述待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源。
- 根据权利要求11所述的非易失性计算机存储介质,其特征在于,所述计算机可执行指令还用于:在确定所述待加载网页数据中所包含的资源不全部为广告资源时,禁止加载全部广告资源。
- 根据权利要求11所述的非易失性计算机存储介质,其特征在于,在确定所述待加载网页数据中所包含的资源全部为广告资源之后,所述计算机可执行指令还用于:确定所述待加载网页数据中所包含广告资源的个数;若所述待加载网页数据中所包含广告资源的个数为一个,则加载该广告资源,若所述待加载网页数据中所包含广告资源的个数为多个,则执行禁止加载预设数量的广告资源的步骤。
- 根据权利要求11-13中任一项所述的非易失性计算机存储介质,其特征在于,所述计算机可执行指令还用于:统计所述待加载网页数据中所包含每一广告资源的显示参数;当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,其中,所述预设数量的广告资源包括至少一个显示参数满足预设条件的广告资源,所述显示参数包括以下任意一种或其组合:在所述待加载网页数据所呈现的网页中所处的位置以及显示方式。
- 根据权利要求14所述的非易失性计算机存储介质,其特征在于,所述预设条件包括以下任一或其组合:所述显示参数包括在所述待加载网页数据所呈现的网页中所处的位置时,在所述待加载网页数据所呈现的网页中所处的位置与所述网页的侧边缘之间的距离小于预设距离;以及所述显示参数包括显示方式时,显示方式为悬浮于所述待加载网页数据所呈现的网页上显示。
- 一种电子设备,其特征在于,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:确定待加载网页数据中所包含的资源是否全部为广告资源;在确定所述待加载网页数据中所包含的资源全部为广告资源时,禁止加载预设数量的广告资源。
- 根据权利要求16所述的电子设备,其特征在于,所述程序还设置为执行:在确定所述待加载网页数据中所包含的资源不全部为广告资源时,禁止加载全部广告资源。
- 根据权利要求16所述的电子设备,其特征在于,在确定所述待加载网页数据中所包含的资源全部为广告资源之后,所述程序还设置为执行:确定所述待加载网页数据中所包含广告资源的个数;若所述待加载网页数据中所包含广告资源的个数为一个,则加载该广告资源,若所述待加载网页数据中所包含广告资源的个数为多个,则执行禁止加载预设数量的广告资源的步骤。
- 根据权利要求16-18中任一项所述的电子设备,其特征在于,所述程序还设置为执行:统计所述待加载网页数据中所包含每一广告资源的显示参数;当确定任一广告资源的显示参数满足预设条件时,禁止加载该广告资源,其中,所述预设数量的广告资源包括至少一个显示参数满足预设条件的广告资源,所述显示参数包括以下任意一种或其组合:在所述待加载网页数据所呈现的网页中所处的位置以及显示方式。
- 根据权利要求19所述的电子设备,其特征在于,所述预设条件包括以下任一或其组合:所述显示参数包括在所述待加载网页数据所呈现的网页中所处的位置时,在所述待加载网页数据所呈现的网页中所处的位置与所述网页的侧边缘之间的距离小于预设距离;以及所述显示参数包括显示方式时,显示方式为悬浮于所述待加载网页数据所呈现的网页上显示。
- 一种程序产品,其特征在于,包括程序代码,当所述程序产品运行时,所述程序代码用于执行权利要求1-5中任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610495888.XA CN106126678A (zh) | 2016-06-28 | 2016-06-28 | 一种数据处理方法及装置 |
| CN201610495888.X | 2016-06-28 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018000616A1 true WO2018000616A1 (zh) | 2018-01-04 |
Family
ID=57284587
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/099964 Ceased WO2018000616A1 (zh) | 2016-06-28 | 2016-09-23 | 一种数据处理方法、装置及电子设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106126678A (zh) |
| WO (1) | WO2018000616A1 (zh) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100217649A1 (en) * | 2009-02-23 | 2010-08-26 | Creditcards.Com | Method, system, and computer program product for filtering of financial advertising |
| CN105138639A (zh) * | 2015-08-24 | 2015-12-09 | 成都秋雷科技有限责任公司 | 网页广告筛选方法 |
| CN105183793A (zh) * | 2015-08-24 | 2015-12-23 | 成都秋雷科技有限责任公司 | 网页弹窗快速拦截方法 |
| CN105589866A (zh) * | 2014-10-22 | 2016-05-18 | 联想(北京)有限公司 | 一种信息显示方法及装置 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104123120B (zh) * | 2013-04-23 | 2016-03-16 | 腾讯科技(深圳)有限公司 | 一种浏览器页面数据过滤方法、装置和系统 |
| CN104809119A (zh) * | 2014-01-24 | 2015-07-29 | 贝壳网际(北京)安全技术有限公司 | 一种网页广告过滤方法及装置 |
| CN104021172B (zh) * | 2014-05-30 | 2017-07-28 | 北京搜狗科技发展有限公司 | 广告过滤方法及广告过滤装置 |
| CN104008211A (zh) * | 2014-06-23 | 2014-08-27 | 可牛网络技术(北京)有限公司 | 一种广告拦截方法及装置 |
| CN105701166B (zh) * | 2015-12-30 | 2019-07-23 | Oppo广东移动通信有限公司 | 一种广告拦截方法及拦截系统 |
-
2016
- 2016-06-28 CN CN201610495888.XA patent/CN106126678A/zh active Pending
- 2016-09-23 WO PCT/CN2016/099964 patent/WO2018000616A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100217649A1 (en) * | 2009-02-23 | 2010-08-26 | Creditcards.Com | Method, system, and computer program product for filtering of financial advertising |
| CN105589866A (zh) * | 2014-10-22 | 2016-05-18 | 联想(北京)有限公司 | 一种信息显示方法及装置 |
| CN105138639A (zh) * | 2015-08-24 | 2015-12-09 | 成都秋雷科技有限责任公司 | 网页广告筛选方法 |
| CN105183793A (zh) * | 2015-08-24 | 2015-12-23 | 成都秋雷科技有限责任公司 | 网页弹窗快速拦截方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106126678A (zh) | 2016-11-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6214547B2 (ja) | ウェブページのレンダリング時間の測定 | |
| US9930095B2 (en) | System for managing extension modifications to web pages | |
| US20180139180A1 (en) | Real-time monitoring of web page code | |
| US20180084067A1 (en) | Content pre-render and pre-fetch techniques | |
| US20210160553A1 (en) | Method and system of displaying a video | |
| US20140092143A1 (en) | Content bound graphic | |
| US20090299862A1 (en) | Online ad serving | |
| US9888280B2 (en) | Method and system for providing contextual information during video buffering | |
| JP2020504865A (ja) | アプリケーションデータ処理方法、装置、及び記憶媒体 | |
| US9692787B1 (en) | System for controlling browser extensions | |
| US9591366B2 (en) | Multimedia providing system and multimedia providing method | |
| CN108449316A (zh) | 一种反爬虫方法、服务器和客户端 | |
| US20130132211A1 (en) | Providing seamless online video advertisements | |
| CN108319683A (zh) | 网页显示方法、装置及终端 | |
| US11037190B2 (en) | Web page performance improvement system | |
| US20140297836A1 (en) | Tracking usage metrics for a mobile application | |
| CN106528148A (zh) | 界面跳转方法、界面跳转系统、及终端设备 | |
| US8860735B2 (en) | Aligning script animations with display refresh | |
| US8844052B1 (en) | Double sand-boxing for flash library | |
| US20130067320A1 (en) | Batch Document Formatting and Layout on Display Refresh | |
| CN110866208B (zh) | 一种页面的响应式布局方法、装置及设备 | |
| CN109948088B (zh) | 一种广告拦截方法及系统 | |
| US20180121049A1 (en) | Terminal device and method for displaying image by same, and web server and method for providing web page by same | |
| WO2018000616A1 (zh) | 一种数据处理方法、装置及电子设备 | |
| US20170293624A1 (en) | Method and system for providing target information using application list |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16907012 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16907012 Country of ref document: EP Kind code of ref document: A1 |