当前位置:网站首页>Crawler grabs the data of Douban group
Crawler grabs the data of Douban group
2022-06-25 03:54:00 【Blockchain research】
The Douban group doesn't have any anti climbing , And you don't need to log in . Do not crawl too often , Switch agent ip.
The page structure of Douban is also very good , No need to ajax.
Tool preparation : Cloud gathering reptile
data structure :
We need to grab post replies 、 Review data
The data structure is as follows :

Flow chart design :

Let's analyze the whole process :
1、 Extract list links :
Like this address :https://www.douban.com/group/240355/discussion?start=0


Analysis shows that , choice 【css Selectors 】, Directly fill in :
td.titletest result :

2、 Extract the post title 、 Content 、 Release time, etc.
These data are captured directly from the details page , Pictured , Direct use css selector Just get it

3、 Grab comments :
First, we use a 【 Field loop area 】 To get the entire comment loop

The test is shown in the figure :

This may not be intuitive enough , We click on trace Analyze it :

We then extract the content and time of comments from these loop units .
Pictured , One more 【 Data Extraction 】 Just extract it directly .

Comment flipping
Comments turn the page , How do we turn the page to get comments ?

We are 【 Details page 】 This component directly pulls a 【 The next page 】, Just get the link to the next page .
Data preview :


Don't write a single line of code , It doesn't need any profound knowledge , It's easy to get the data .
边栏推荐
- ICML 2022 | 字节跳动 AI Lab 提出多模态模型:X-VLM,学习视觉和语言的多粒度对齐...
- 如何使用IDE自动签名调试鸿蒙应用
- 程序员真人秀又来了!呼兰当主持挑灯狂补知识,SSS大佬本科竟是药学,清华朱军张敏等加入导师团...
- 居家办公之后才明白的时间管理 | 社区征文
- AI自己写代码让智能体进化!OpenAI的大模型有“人类思想”那味了
- 騰訊開源項目「應龍」成Apache頂級項目:前身長期服務微信支付,能hold住百萬億級數據流處理...
- Solution to the problem that Linux crontab timed operation Oracle does not execute (crontab environment variable problem)
- Do you really need automated testing?
- Redis related-03
- About PLSQL error initialization failure
猜你喜欢

Lao Ye's blessing

完美洗牌问题

How to play well in the PMP Exam?

Sun Wu plays Warcraft? There is a picture and a truth

Easynvr fails to use onvif to detect the device. What is the reason why "no data" is displayed?

IE寿终正寝,网友们搞起了真·墓碑……

Dr. Sun Jian was commemorated at the CVPR conference. The best student thesis was awarded to Tongji Ali. Lifeifei won the huangxutao Memorial Award

Mstp+vrrp+ospf implements a three-tier architecture

How far is the memory computing integrated chip from popularization? Listen to what practitioners say | collision school x post friction intelligence

Peking University has a new president! Gongqihuang, academician of the Chinese Academy of Sciences, took over and was admitted to the Physics Department of Peking University at the age of 15
随机推荐
The release function completed 02 "IVX low code sign in system production"
香蕉为什么能做随机数生成器?因为,它是水果界的“辐射之王”
9 necessary soft skills for program ape career development
[rust submission] review impl trail and dyn trail in rust
马斯克:推特要学习微信,让10亿人「活在上面」成为超级APP
后台页制作01《ivx低代码签到系统制作》
一文搞懂php中的(DI)依赖注入
Zuckerberg's latest VR prototype is coming. It is necessary to confuse virtual reality with reality
Musk: Twitter should learn from wechat and make 1billion people "live on it" into a super app
Is it safe to open an online stock account?
Mstp+vrrp+ospf implements a three-tier architecture
MySQL根据表前缀批量修改、删除表
严重的PHP缺陷可导致QNAP NAS 设备遭RCE攻击
CVPR大会现场纪念孙剑博士,最佳学生论文授予同济阿里,李飞飞获黄煦涛纪念奖...
存算一体芯片离普及还有多远?听听从业者怎么说 | 对撞派 x 后摩智能
Comprehensive operation of financial risk management X of Dongcai
Perfect shuffle problem
居家办公之后才明白的时间管理 | 社区征文
现在,耳朵也要进入元宇宙了
Solution to the problem that Linux crontab timed operation Oracle does not execute (crontab environment variable problem)