![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬虫
victordiao
这个作者很懒,什么都没留下…
展开
-
python爬虫实战2-百度贴吧
转载自http://cuiqingcai.com/993.html 亲测好用 简直太强大了,目前可以做到爬任何一个帖子, 以后任何网站都可以爬了啊,爽# -*- coding:utf-8 -*-import urllibimport urllib2import re# 处理页面标签类class Tool: # 去除img标签,7位长空格 removeImg = re.转载 2016-08-05 11:00:25 · 405 阅读 · 0 评论 -
python爬虫-爬取股票贴吧帖子
因为课题需要爬取大量的股吧的股民讨论情况,以此继续探讨股民情绪对股票走势的影响 而我负责爬虫和分词工作,亲手写了一个爬虫代码,来爬取股吧-东方财富吧的股友会帖子信息 代码如下:#!/usr/bin/env python# -*-coding:utf-8 -*-import urllibimport urllib2import re#导入对excel文件进行操作的库import xlw原创 2016-08-10 21:20:31 · 6618 阅读 · 4 评论