Python crawler - simple complete novel crawl
Python crawler crawl complete novel
Python version: Python 3.0 x Running platform: Windows
preface
Web crawler (also known as web spider, web robot, more often called web chaser in FOAF community) is a program or script that automatically grabs World Wide Web information according to certain rules. Other infrequently used names include ...
Posted by msing on Sun, 23 Jan 2022 08:08:27 +0100
Python numpy detailed tutorial
Introduction to Numpy
NumPy(Numerical Python) is a basic library of scientific computing, which provides a large number of functions related to scientific computing, such as data statistics, random number generation and so on. The core type it provides is multi-dimensional array type (ndarray), which supports a large number of dimensi ...
Posted by jefffan24 on Sun, 23 Jan 2022 06:58:30 +0100
rabbitmq working mode and python demo
1. Basic concepts
AMQP protocol: Advanced message queuing protocol, a network protocol for asynchronous message transmission between processes. rabbitmq is developed based on AMQP protocol
General workflow: Publisher - > exchange - > queue - > consumer
Broker: agent, consisting of Exchange and Queue The process of connecting produce ...
Posted by tpstudent on Sun, 23 Jan 2022 03:56:17 +0100
Python exception handling
Basic concepts of Python exception handling
prit('hehe')
route
File "c:\Users\wyw15\Desktop\python code\testpython_5\test.py", line 3, in <module>
content
prit('hehe')
Name: undefined name“ prit"
NameError: name 'prit' is not defined
This looks like an exception, but it's actually an exception thrown by the program Throw exce ...
Posted by steven fullman on Sun, 23 Jan 2022 03:22:44 +0100
python algorithm template part I (quick sort, merge sort, integer bisection, real bisection)
Note: This article is after learning acwing Basic algorithm Course It is mainly used to record the template of python version algorithm.
1. Quick sort
Thought: Divide the list with a number (pivot) in the list. The number on the left is less than pivot and the number on the right is greater than pivot.
Steps: 1. Determine pivot. Left, right, ...
Posted by TheKiller on Sun, 23 Jan 2022 01:58:25 +0100
selenium set waiting notes
Set element wait: webdriver provides two types of element waiting: explicit waiting and implicit waiting
1, Explicit wait Explicit wait means that the webdriver continues to execute when a condition is satisfied. Otherwise, a timeout exception will be thrown when the maximum time is reached
from selenium import webdriver
from selenium.webdriv ...
Posted by mikebyrne on Sat, 22 Jan 2022 21:48:25 +0100
NOJ-Python programming assignment of Northwest University of technology 91-100
Northwest University of technology NOJ-Python programming problem set: Noj Python Programming: Season 1: season 1-easy (1-10) Noj Python Programming: Season 2: Season 2 snippet (11-20) Noj Python Programming: Season 3: season 3-loop (21-30) NOJ-Python programming: Season 4: enumeration algorithm (31-40) NOJ-Python programming: Season 5: modular ...
Posted by luke_barnes on Sat, 22 Jan 2022 21:44:30 +0100
Feature Engineering - Data Preprocessing
1 exploratory data analysis
Data were used: Pima Indian diabetes prediction dataset. Link: https://pan.baidu.com/s/17M7UfnqGYTkpLmCXUOyTkw Extraction code: y4fz
import pandas as pd
pima_column_names = ['times_pregnant', 'plasma_glucose_concentration',
'diastolic_blood_pressure', 'triceps_thickness',
' ...
Posted by Dilbert137 on Sat, 22 Jan 2022 21:23:37 +0100
Python 3 chapter 3: digital date and time
Chapter 3: digital date and time
It is very simple to perform mathematical operations of integers and floating-point numbers in Python. However, if you need to perform fractions, arrays, or date and time operations, you have to do more work. This chapter focuses on these topics.
3.1 rounding of figures
problem
You want to round a floati ...
Posted by doozerdc on Sat, 22 Jan 2022 19:44:43 +0100
python knowledge -- iterators and generators
Pre knowledge
Iteration: iteration is the activity of repeating the feedback process, and its purpose is usually to approach the desired goal or result. Each repetition of a process (function) is called an "iteration", and the result of each iteration (function return) will be used as the initial value of the next iteration (paramete ...
Posted by bhogg on Sat, 22 Jan 2022 19:23:00 +0100