How to climb the title of CSDN comprehensive hot list of the whole station and count the keyword frequency | crawler cases
catalogue
preface
environment
Crawler code
Keyword extraction code
Main program code
summary
preface
Recently, I was on a business trip and found that there was Xiaoqiang in my hotel. So when I was bored on a business trip, I wrote some crawler code to play. Asking is the occasion. This article mainly crawls the 100 titles of CSDN's ...
Posted by Maharg105 on Thu, 04 Nov 2021 17:39:54 -0700
Basic reptile weather forecast
Search "xxx weather" in any browser, such as Chongqing weather,
We select the first website to crawl, and the url is' ' weathernew.pae.baidu.com/weathernew/pc?query = Chongqing Weather & srcid = 4982 & City_ Name = Chongqing & Province_ Name = Chongqing'
Next, crawl the web page i ...
Posted by faifas on Thu, 04 Nov 2021 13:58:01 -0700
Basic usage of day3 selenium
selenium basic usage
Running environment: from selenium.webdriver import Chrome
1. Create browser object
b = Chrome('files/chromedriver')
2. Open the page
b.get('https://www.qidian.com/rank/yuepiao/month10/')
3. Get web data
print(b.page_source)
4. Close the web page
b.close()
selenium common configurations
Running environment: f ...
Posted by tbaink2000 on Thu, 04 Nov 2021 13:02:49 -0700
Modular programming - functions
Modular programming - functions
What is modular programming?
Modular programming refers to the encapsulation of programs (function encapsulation, object encapsulation, file encapsulation, etc.)
What is a function?
Function - > function
A function is a block of code with a specific function
Function?
Function is to encapsulate the code ...
Posted by david212 on Thu, 04 Nov 2021 11:25:03 -0700
Customize the step title of Airtest report? Practical speed learning
1. Preface
Today, let's talk about a very practical topic! Many students mentioned that can I modify the step name displayed in the Airtest report instead of displaying all the touch es as clicks and all the controls as poco clicks:
Today, we will use the -- plugins parameter to pass in the plug-in to meet the students' needs.
2. Introduction ...
Posted by harshilshah on Thu, 04 Nov 2021 10:02:55 -0700
Python pure manual construction of BP neural network -- handwritten numeral recognition
1 Introduction to the experiment
Experimental requirements: implement a handwritten numeral recognition program, as shown in the figure below. The neural network is required to include a hidden layer, and the number of neurons in the hidden layer is 15.
Overall idea: mainly refer to the introduction of neural network in Chapter 5 of waterme ...
Posted by HockeyDevil07 on Thu, 04 Nov 2021 08:46:58 -0700
Python practice: using XPath to get Douban movie ranking
We learned the simple use of XPath before. Refer to: https://www.cnblogs.com/minseo/p/15502584.html
Today, let's practice using XPath to analyze the Douban film ranking. This time, we practice obtaining the new film ranking information of the film ranking. The content obtained in the exercise is the url, film name and director name of the new f ...
Posted by OU_Student on Thu, 04 Nov 2021 03:18:41 -0700
Pygame actual combat: cow, thousands of lines of code to realize the "mecha breakthrough adventure game", which is great (save it and learn it slowly)
Introduction
Good morning, everyone—— Do you miss me?
Mu Muzi is coming. Today, I will put a big move on the line for you!
Just learned to record video, and then the dynamic display of the effect is finally perfectly recorded! Today, follow Xiaobian to update a wave of game series we are looking forward to ~ complete informatio ...
Posted by snafudawn on Thu, 04 Nov 2021 00:39:45 -0700
Learn together in-depth learning series - linear regression
Linear regression hand tearing [^ 1]
%matplotlib inline
import random
import torch
from d2l import torch as d2l
Construct dataset
y
=
X
w
+
b
...
Posted by TANK on Wed, 03 Nov 2021 21:12:13 -0700
opencv25: template matching
target
In this chapter, you will learn
Find objects in images using template matchingFunction: cv2.matchTemplate(), cv2.minMaxLoc()
theory
Template matching is a method used to search and find the location of template image in large image. To this end, OpenCV implements a function cv2.matchTemplate(). It just slides the template image onto ...
Posted by avalonindigo on Wed, 03 Nov 2021 17:16:11 -0700