当前位置:网站首页>All tutor information on one page
All tutor information on one page
2022-06-27 07:50:00 【Supernatural prayer】
Find a teacher , They don't want to be half full-time , alas , Do I have to sift the direction of my tutor again ……
I won't pour any emotion into you if you are ruthless ,python Walk up

The calculator adds the number of people on the right , in total 309, I focus on achieving my goals , You don't need all the code , So I first crawled through all the links with names

See a label , But what you need xpath, I simply use the most convenient regular box to select
# -*- coding: utf-8 -*-
import os
import os.path
import requests
import re
import csv
URL="https://aipt.ucas.ac.cn/index.php/zh-cn/jsdw/graduateteacher"
res = requests.get(URL)
REX = "http://.*?\""
print(res)
ls = re.findall(REX, res.text)
#" target="_blank"
with open('res.csv', mode='a', newline='', encoding='utf-8-sig') as f:
csv_writer = csv.writer(f, delimiter=',')
csv_writer.writerow([ls])ok , Just after the execution 309 individual , The following seems to be repeated again , Delete

Facing the newly stored res.csv And then repeat the old technique , Put it away text The content is stored in another corresponding res1.scv in , I'll use wps Find the keywords you are interested in and find the teacher .
( Be careful , hold \n Replace , It's a pit , Otherwise text Returns an empty , For two hours )
# -*- coding: utf-8 -*-
import os
import os.path
import requests
import re
import csv
lines=[]
with open('E:\\1projects\\PY\\PY\\res.csv','r') as f:
lines=f.readlines()
for line in lines:
str = line
str = str.replace("\n","") # Replace \n
print(str)
res = requests.get(str)
print(res)
#print(res.text)
with open('res1.csv', mode='a', newline='', encoding='utf-8-sig') as f:
csv_writer = csv.writer(f, delimiter=',')
csv_writer.writerow([line,res.text])
print("done")direct wps Filter and filter , Then click on his homepage to see

边栏推荐
- 剑指 Offer 07. 重建二叉树
- C how to call line and rows when updating the database
- Installation and functions of uview
- 1-4 进制表示与转换
- 【11. 二维差分】
- js中判断成绩是否合格,范围在0-100,否则重新输入
- 2、项目使用的QT组件
- How can the flower e-commerce 2.0 era go after the breakthrough from 0 to 1?
- 基础知识 | js基础
- Speech synthesis: tacotron explains [end-to-end speech synthesis model] [compared with traditional speech synthesis, it does not have complex phonetics and acoustic feature modules, but only uses < te
猜你喜欢

File and multipartfile overview

"Short video" Linxia fire rescue detachment carries out fire safety training
![[compilation principles] review outline of compilation principles of Shandong University](/img/a6/b522a728ff21085411e7452f95872a.png)
[compilation principles] review outline of compilation principles of Shandong University

js成绩奖惩例题

js输出形状

js用while循环计算假如投资多年的利率为5%,试求从1000块增长到5000块,需要花费多少年

2022 love analysis · panoramic report of it operation and maintenance manufacturers

游戏资产复用:更快找到所需游戏资产的新方法
![【批处理DOS-CMD命令-汇总和小结】-批处理命令中的参数%0、%1、%2、%[0-9]、%0-9和批处理命令参数位置切换命令shift,dos命令中操作符%用法](/img/05/19299c47d54d4ede95322b5a923093.png)
【批处理DOS-CMD命令-汇总和小结】-批处理命令中的参数%0、%1、%2、%[0-9]、%0-9和批处理命令参数位置切换命令shift,dos命令中操作符%用法

JS print 99 multiplication table
随机推荐
Websocket database listening
How can the flower e-commerce 2.0 era go after the breakthrough from 0 to 1?
野風藥業IPO被終止:曾擬募資5.4億 實控人俞蘠曾進行P2P投資
Index +sql exercise optimization
语音信号特征提取流程:输入语音信号-分帧、预加重、加窗、FFT->STFT谱(包括幅度、相位)-对复数取平方值->幅度谱-Mel滤波->梅尔谱-取对数->对数梅尔谱-DCT->FBank->MFCC
Yarn create vite reports an error 'd:\program' which is neither an internal or external command nor a runnable program or batch file
Is futures reverse documentary reliable?
Construction of defense system for attack and defense exercises part II common strategies for responding to attacks
js输出1-100之间所有的质数并求总个数
【批处理DOS-CMD命令-汇总和小结】-输出/显示命令——echo
(note) Anaconda navigator flashback solution
Programming life - what do you think of the 35 year old bottleneck of programmers?
准备好迁移上云了?请收下这份迁移步骤清单
JS find the number of all daffodils
JS example print the number and sum of multiples of all 7 between 1-100
js求所有水仙花数
05 观察者(Observer)模式
JS, and output from small to large
L'enquête en aveugle a montré que les femmes étaient meilleures que les hommes.
Windows下mysql-8下载、安装、配置教程