GithubHelp home page GithubHelp logo

wdevin / weibo_spider Goto Github PK

View Code? Open in Web Editor NEW
63.0 63.0 13.0 716 KB

☀️ 基于Python3的微博爬虫项目,含有按关键字和时间进行微博信息爬取、微博用户资料爬取、微博评论爬取等功能。

License: Apache License 2.0

Python 100.00%

weibo_spider's People

Contributors

wdevin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

weibo_spider's Issues

连接mysql数据库不成功

您好!在运行search_start.py时,一直连接mysql不成功,出现报错:pymysql.err.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)").并且在更换解密方式后仍然未解决,想问问有什么解决方案吗?

报错“此次搜索条件无相关搜索结果,退出”

您好,想问一下MySQL要怎么处理呢?需要先创建一个名“weibo”的database,然后在里面添加名为“keyword_weibo”的表并增加相关"wb_*"字段吗?

某个小时没搜到结果会继续搜索下一个小时吧?为什么每次大概爬取20个小时就会自动结束任务呢?同时每一行“以上数据提交至数据库成功!”前面都有一行“list index out of range”

最后的报错是:
Traceback (most recent call last):
File "search_start.py", line 114, in
fetch_pages(keyword, hour_all[i][0], hour_all[i][1])
File "search_start.py", line 73, in fetch_pages
if (str(soup.select_one('.card-wrap').select_one('p').text).startswith('抱歉')): # 此次搜索条件的判断,如果没有相关搜索结果!退出...
AttributeError: 'NoneType' object has no attribute 'select_one'
这是什么原因呢?
QQ截图20190430212508
QQ截图20190430212431

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.