Python novice crawler 3: crawling PPT template
Crawling website: first PPT( http://www.1ppt.com/ )This website really has a conscience
As always, start with the last successful source code:
import requests
import urllib
import os
from bs4 import BeautifulSoup
from fake_useragent import UserAgent
def getPPT(url):
f = requests.get(url,headers=headers) #Send out GET request
f.enc ...
Posted by accident on Sun, 15 Mar 2020 22:43:42 -0700
JavaScript warning (alert message dialog)
1 alert (string or variable);
When we visit the website, we sometimes pop up a small window with a piece of prompt message written on it. If you don't click "OK", you can't do anything to the web page. This small window is implemented by using alert. The above is the alert() syntax
1 <!DOCTYPE html>
2 <html>
3 ...
Posted by $kevan on Fri, 13 Mar 2020 07:19:01 -0700
0312 java interface test rest-assured
background
java programmers generally write that back-end services are JavaWeb-type projects, mainly including Http interface and dubbo interface, Http interface generally uses the resting style, so how to quickly test the resting interface on a third-party testing framework?
The rest-assured framework is a good tool.Like a soldier's triangula ...
Posted by bugsuperstar37 on Thu, 12 Mar 2020 10:05:16 -0700
Learn java - Day12 - InputStream details of IO stream
1 IO
BigDecimal/BigInteger
Summary:
BigDecimal: used to solve precise floating-point operations.
BigInteger: used to solve very large integer operations.
Create object:
BigDecimal.valueOf(2);
Common method: add(BigDecimal bd): add
Subtract (BigDecimal BD): subtract
multiply(BigDecimal bd): do ...
Posted by archangel_617b on Tue, 10 Mar 2020 00:50:08 -0700
Home Credit Default Risk default risk forecast, kaggle competition, beginner, LB 0.749
Home Credit Default Risk
conclusion
background knowledge
data set
Data analysis
Balance degree
Missing data
data type
Outliers
Fill in missing values
modeling
Logistic Regression
LightGBM
Feature importance
Appendix: meaning of each field
conclusion
The data is provided by Home Credit (Chine ...
Posted by rehfeld on Mon, 09 Mar 2020 22:23:40 -0700
An example of getting started with ZYNQ -- timer interruption and program solidification
I. Preface
In the APU system, the CPU performs the operation in the way of serial code execution, and the software mode is difficult to achieve accurate timing, so it is a better choice to call the internal timer hardware to complete timing. In this paper, timer interrupt control LED periodic flicker as an example to learn the use of private ti ...
Posted by shumway on Sun, 08 Mar 2020 04:30:32 -0700
Python data analysis library -- Numpy:ndarray object, index, array transpose
NumPy's ndarray: a multidimensional array object
ndarray object is an N-dimensional array object and a flexible and fast big data container
You can use the array of ndarray to perform some mathematical operations on the whole block of data
ndarray is a general multi-dimensional container of homogeneo ...
Posted by niall_buckley on Fri, 06 Mar 2020 03:40:09 -0800
Route authority management based on vue
Preface
(this project is based on Vue CLI and layout, but the layout of background system is basically the same.)
There is a requirement to modify the existing management background to present different menu bars (in fact, routes) according to different users, as shown in the following figure
thinki ...
Posted by Volte6 on Tue, 03 Mar 2020 00:37:38 -0800
The magic widget of Flutter tips
It's just to share a little skill of flutter. Of course, it's not only applicable to flutter, but also to other devices like Android. In order to quickly realize the requirements of xx design, we can take out the system's own widget s and change them into our own, with speed and style, but men can't s ...
Posted by johnpdmccall on Tue, 03 Mar 2020 00:18:03 -0800
Strings: regular expressions
5, split()
The split() method breaks the input string into an array of string objects, with the break boundary determined by the following regular expression:
String[] split(CharSequence input);
String[] split(CharSequence input, int limit);
This is a quick and convenient way to break the input te ...
Posted by theslinky on Mon, 02 Mar 2020 19:54:27 -0800