Python crawler, who has learned two lessons, is also an introduction. After knocking on the case code for two days, I suddenly found that although these codes have different functions and different ways of writing, they are ultimately rules-based, and the overall framework is consistent. So I sorted out a simple crawler framewor ...
Posted on Tue, 29 Jan 2019 19:27:14 -0500 by rsilvs
re Modularsubprocess Modular
Three questions in life
What re module
Mainly some methods of operation related to regular expressions
What is regular expression
It is the formula of a series of special meaning characters.
Why use regular expressions?
Most of the data we get in our daily life are strings, but us ...
Posted on Tue, 29 Jan 2019 14:21:15 -0500 by nephish
In daily work, I define the tool class of Dialog for use. The Dialog pops up from the middle of the screen below. The effect is as follows:
The following is mainly about:
Custom Dialog Tool Class
Custom Layout File
Custom Dialog Display Style
Display/close Dialog (using custom dialog)
1. Custom Dialog Tool Class
Posted on Tue, 29 Jan 2019 07:51:14 -0500 by mancroft
Because the project uses the AES_DECRYPT method of mysql, and wants to use golang to implement this method, but after studying for half a day, I did not understand what happened. Finally, I found that golang currently supports CBC by default, but MySQL currently uses ECB mode, so it needs users to block encryption, and summarizes the var ...
Posted on Tue, 29 Jan 2019 06:57:15 -0500 by lukemedway
Yesterday, the 2nd edition of the mall project was made. The UI gave a design drawing. The merchandise pictures could be slid left and right. At first, it thought that a Recycler view could be slid in one direction. After making the UI, it said that the effect was not right. Referring to the effect of three squirrel mall homepa ...
Posted on Tue, 29 Jan 2019 01:18:16 -0500 by gavin1996
Weekly Contest 107 First question Long press key:
Your friend is using the keyboard to enter his name. Occasionally, when typing the character c, the key may be pressed long, and the character may be typed one or more times.You will check the character typed entered on the keyboard. If it corresponds to the name of your friend (some o ...
Posted on Mon, 28 Jan 2019 14:54:14 -0500 by brain
Old boy python stack day8
Coding: utf-8 gbk...
Operation mode: read-only, write-only, add-on, read-write, write-read... Open the file in what encoding way, and operate in what encoding way
f = open('d:\Head teacher of model housewife nurse.txt',mode='r',encoding='UTF-8')
content = f.read()
Posted on Mon, 28 Jan 2019 13:57:14 -0500 by tmswenson
android system provides a powerful api for developers to use, but the dialog of the system has not been very beautiful, so in many cases we need to customize dialog, today we use two different ways to achieve the same effect of customized dialog.
First of all, give you two different ways to achieve the same dialog effect:
Posted on Mon, 28 Jan 2019 05:12:13 -0500 by abionifade
1. Python Profile:
Python is a dynamic, explanatory, strongly typed language.
Dynamics - Data types need not be declared;
Interpretative - Real-time "translation";
Strong Type Definition - Replacing Types Needs Mandatory Conversion
2. Variable and character encoding:
ascii code: 1 byte, 8 bits
unicode code code: 2 bytes, 16 ...
Posted on Sun, 27 Jan 2019 20:45:14 -0500 by Transwarp-Tim
The goal of this time is to crawl all reviews of the songs specified on NetEasyCloud Music and generate word clouds.
One: Implementing JS Encryption
Finding this ajax interface is not difficult. The problem is that the data passed is encrypted by js, so you need to look at the JS code.
By debugging, we can find that the data ...
Posted on Sat, 26 Jan 2019 11:42:14 -0500 by mightymax