Skip to content

借用selenium偷懒式模拟登陆当当网,爬取用户商品收藏信息

Notifications You must be signed in to change notification settings

Hsck/DD_favorite_goods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简介

借用selenium + Chrome,在程序休眠时间手动登陆当当网,构建session并保存cookies信息后关闭页面
分析Ajax,session.get()请求URL,解码JSON格式的数据并解析,最后把数据写入CSV文件

注意

写入的CSV文件格式有点不对,请运行Delete_extra_lines.py来删除多余空行

爬取效果图

About

借用selenium偷懒式模拟登陆当当网,爬取用户商品收藏信息

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages