当前位置:网站首页>Some fields of the crawler that should be output in Chinese are output as none
Some fields of the crawler that should be output in Chinese are output as none
2022-07-04 16:11:00 【Liluoxiao】
reason : Used when extracting content tag.string(), View source code , It is found that the label content is :
<td data-v-428f2a6c>
comprehensive
<!----></td>
More <!---->
Reading : When tag Contains multiple child nodes ,tag You can't be sure .string Method should call the contents of which child node , .string The output of is None
solve : take tag.string() Switch to tag.text()
Optimize :tag.text().strip() Remove the leading and trailing spaces and line breaks
边栏推荐
- Qt---error: ‘QObject‘ is an ambiguous base of ‘MyView‘
- [North Asia data recovery] data recovery case of database data loss caused by HP DL380 server RAID disk failure
- Socks agent tools earthworm, ssoks
- PXE network
- LeetCode 58. 最后一个单词的长度
- 科普达人丨一文看懂阿里云的秘密武器“神龙架构”
- JS to realize the countdown function
- AI做题水平已超过CS博士?
- 【读书会第十三期】FFmpeg 查看媒体信息和处理音视频文件的常用方法
- Proxifier global agent software, which provides cross platform port forwarding and agent functions
猜你喜欢
Function test - knowledge points and common interview questions
Intranet penetrating FRP: hidden communication tunnel technology
[North Asia data recovery] data recovery case of database data loss caused by HP DL380 server RAID disk failure
Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
Will the memory of ParticleSystem be affected by maxparticles
AutoCAD - set color
Book of night sky 53 "stone soup" of Apache open source community
Game theory
Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
Working group and domain analysis of Intranet
随机推荐
【读书会第十三期】视频文件的编码格式
C implementation defines a set of intermediate SQL statements that can be executed across libraries
Understand the context in go language in an article
Scientific research cartoon | what else to do after connecting with the subjects?
函数式接口,方法引用,Lambda实现的List集合排序小工具
Unity script lifecycle day02
Unity script API - component component
Unity脚本API—GameObject游戏对象、Object 对象
Essential basic knowledge of digital image processing
Redis sentinel mode realizes one master, two slave and three Sentinels
Proxifier global agent software, which provides cross platform port forwarding and agent functions
Shell 编程基础
mysql 联合主键_Mysql 创建联合主键[通俗易懂]
Socks agent tools earthworm, ssoks
How to save the contents of div as an image- How to save the contents of a div as a image?
The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release
PR FAQ: how to set PR vertical screen sequence?
Stew in disorder
%S format character
Huawei cloud database DDS products are deeply enabled