Learn from day004 --- transfer from Python distributed crawler to create search engine Scrapy
Section 327, web crawler introduction 2 - urllib library crawler
Write a simple crawler using the urlib Library of python system
urlopen() gets the html source of a URL
read() reads the html source content
decode("utf-8") converts bytes to strings
#!/usr/bin/env python
# -*- coding:utf-8 -*-
i ...
Posted by _DarkLink_ on Mon, 17 Feb 2020 00:38:08 -0800
Flutter has fun in 3d
1, Principle:
Above: as follows
The reason why three-dimensional (3d) is different from two-dimensional space is that it has vector, position and volume. In Flutter, we can find that Vector3, a three-dimensional vector class, is provided: it has position, direction, Euler angle information, and some vector functions. I h ...
Posted by spags on Sat, 15 Feb 2020 07:25:30 -0800
vue page parameter $route edit Preview
List page
1. Page section
<el-table :data="testpage.slice((currentPage-1)*pagesize,currentPage*pagesize)" border style="width: 100%" >
<el-table-column prop="id" :inputValue="msg" label="ID" width="180"></el-table-column>
<el-table-column prop="title" label="Title"></el-table-column>
...
Posted by ucbones on Sat, 15 Feb 2020 06:50:44 -0800
React Navigation 5.0 Series 1: Use of StackNavigator
Presumably the reader's friends are Official announcement: Major updates to ReactNative Navigation Library This article learns that React Navigation, the official route navigation library recommended by React Native, has been updated to the 5th edition. It also learns about specific improvements and changes. Interested friends can read this art ...
Posted by OMorchoe on Fri, 14 Feb 2020 22:13:01 -0800
Two encoding formats for Post requests: application/x-www-form-urlencoded and multipart/form-data
In common business development, POST requests are often used in these places: when front-end forms are submitted, when interface code is invoked, and when the Postman test interface is used.Let's take a look:
1. When a front-end form is submitted
application/x-www-form-urlencoded
Form code:
<form action="http:// ...
Posted by buzzed_man on Thu, 13 Feb 2020 20:00:26 -0800
Click a button, if the phone has an app installed, open the app directly, otherwise jump to the application market to download the app
Recently, we are making such a function. When the front-end webpage clicks the button, if the user's mobile phone has the app installed, the app will be opened directly; otherwise, it will jump to the application market to download. The code is as follows:
<!DOCTYPE html>
<html>
<head>
<meta charset="ut ...
Posted by friendlylad on Thu, 13 Feb 2020 13:31:32 -0800
Android RecyclerView quick start
RecyclerView mainMenu = findViewById(R.id.fragmentMain);
mainMenu.setLayoutManager(new GridLayoutManager(getActivity(),4));
mainMenu.setAdapter(new MainAdapter(getActivity(),items));
There are a lot of online tutorials about RecyclerView, which are very detailed, but it seems that it is difficult for beginners to star ...
Posted by twatkins on Thu, 13 Feb 2020 10:27:03 -0800
app evokes the perfect solution and prevents browser's default pop-up behavior
https://stackoverflow.com/questions/10237031/how-to-open-a-native-ios-app-from-a-web-app
var frame = document.createElement('iframe'); frame.src = 'myapp://?params=...'; frame.style.display = 'none'; document.body.appendChild(frame); setTimeout(function() { document.body.removeChild(frame); }, 4); The above pl ...
Posted by aktell on Wed, 12 Feb 2020 08:49:09 -0800
How to convert the Preparing and Parameters in Mybatis log into executable SQL gracefully
Original link
During the epidemic, did you feel sick when you were staying at home~~
The company has opened VPN, mobile computers can connect, mobile phones can work with APP test package, so walking has been at home for 11 days since entering Beijing on February 1, 2020. These two days at home telecomm ...
Posted by zplits on Tue, 11 Feb 2020 23:57:07 -0800
[note 4-commodity module] independently completed the development of enterprise Java e-commerce website (server side) from 0
Classification management module
Data table structure design
Classification table
CREATE TABLE,mmall_ category' (
'id' int(11) NOT NULL AUTO_ INCREMENT COMMENT ' category Id',
'parent_ id' int(11) DEFAULT NULL COMMENT 'Parent category id When id=0 Time description is the root node,Class I' ,
'name' varchar(50) DEFAULT NULL COMMENT ' Category n ...
Posted by monk.e.boy on Mon, 10 Feb 2020 23:55:06 -0800