2019年12月12日

爬虫:模拟登陆

摘要: 注意:模拟登陆时,必须保证settings.py里的 COOKIES_ENABLED (Cookies中间件) 处于开启状态 COOKIES_ENABLED = True 或 # COOKIES_ENABLED = False 策略一:直接POST数据(比如需要登陆的账户信息) 只要是需要提供pos 阅读全文

posted @ 2019-12-12 20:14 LoaderMan 阅读(259) 评论(0) 推荐(0)

scrapy爬虫案例:问政平台

摘要: 问政平台 http://wz.sun0769.com/index.php/question/questionType?type=4 爬取投诉帖子的编号、帖子的url、帖子的标题,和帖子里的内容。 items.py import scrapy class DongguanItem(scrapy.Ite 阅读全文

posted @ 2019-12-12 20:11 LoaderMan 阅读(303) 评论(0) 推荐(0)

导航