Tag:Webpage
-
Time:2021-1-21
Finally we’re going to start writing crawler code Let’s first learn about the urllib library, which is a built-in HTTP request Library in Python. In other words, we don’t need additional installation to use it. It contains four modules: The first module is request, which is the most basic HTTP request module. We can use […]
-
Time:2021-1-14
1. Using the third party class library htmlagilitypack Official website:https://html-agility-pack.net/?z=codeplex、 //Get HTML information from file var doc = new HtmlDocument(); doc.Load(filePath); //From string to get HTML information from a string var doc = new HtmlDocument(); doc.LoadHtml(html); //Get HTML information from web address var url = “http://html-agility-pack.net/”; var web = new HtmlWeb(); var doc = web.Load(url); […]
-
Time:2021-1-13
preface Now there are many devices, including PC, iPad, mobile phone, smart watch and smart TV. If there is no responsive layout, then the computer web page displayed on the mobile phone or iPad, is very poor experience, inconvenient operation, visual fatigue, so we develop web pages to do a good job of responsive layout. […]
-
Time:2021-1-11
backgroundRecently, there is an item in hand that needs to check whether the domain name can be opened in wechat. If it is blocked by wechat, the next operation needs to be carried out, so the status of the domain name needs to be judged. However, the official wechat does not provide relevant query methods. […]
-
Time:2021-1-11
CSS sprites is called CSS sprite by many people in China. It is a kind of web image application processing method. It allows you to include all the sporadic images involved in a page into a large image, so that when you visit the page, the loaded images will not be displayed one by one […]
-
Time:2021-1-9
The text and pictures of this article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time Getting to know scrapy development environment Create project Create crawler Project structure chart Create item […]
-
Time:2021-1-7
1. View element pseudo class CSS Style For example, I want to see element triggershoverThe CSS style of the. First select the element, and then operate as shown below: 2. Add and delete element class temporarily 3. document.body.contentEditable=”true” Input on consoledocument.body.contentEditable=”true”, you can edit the page directly. 4. View the placeholder style Now you can […]
-
Time:2021-1-5
I don’t know what to use to describe it, just call it pseudo asynchronous. When writing asynchronous methods, async and await should be written all the way to the end, otherwise it will be pseudo asynchronous and will not improve the throughput of the request thread pool. When the query thread is finished, it will […]
-
Time:2021-1-3
The official version of windows 10 brings us not only new functions, but also some new problems. Of course, since the problem appears, we have to solve it. For example, after upgrading to win10 system, all the web pages can’t be opened, and the network is normal. What should we do? Let’s take a look […]
-
Time:2021-1-2
1、 Validation form Encapsulates a function to verify the phone number /** * @param {String}eleId * @param {Object}reg */ function checkInput(eleId,reg) { var ele = document.getElementById(eleId); ele.onblur = function (ev) { if(! reg.test ( this.value )){// mismatch this.style.borderColor =”#ff0000″ // red }Else {// match this.style.borderColor =”# CCCCCC” // white } } } //Verify mobile phone […]
-
Time:2021-1-1
Foreword: in the daily development of front-end, it is inevitable that there will be some screenshots or business requirements of poster generation in TOC business, which are limited by the incompatibility of html2canvas or the limitation of canvas drawing style. At present, we have a new solution, the combination of node and puppeter, puppeteer First […]
-
Time:2020-12-23
When using the simulator to debug a web page, the “data Custom” is too new to run on this inspected page appears in the audit panel, which makes the whole page unable to be debugged, and there is no information on the Internet. The problem I have here is the problem after using the migration […]