Code Monkey home page Code Monkey logo

Comments (5)

gz-sky avatar gz-sky commented on June 28, 2024

怎么解决的呢

from baiduspider.

samzhangjy avatar samzhangjy commented on June 28, 2024

我无法复现该问题。请提供详细的HTML代码。

from baiduspider.

yongliu1992 avatar yongliu1992 commented on June 28, 2024

我从全新安装 python3 和3.7 都是这样
from baiduspider import BaiduSpider # 导入BaiduSpider
from pprint import pprint # 导入pretty-print

获取百度的搜索结果,搜索关键词是'爬虫'

pprint(BaiduSpider().search_web('爬虫'))
报错了

(untitled) ➜ untitled python3 main.py
Traceback (most recent call last):
File "main.py", line 5, in
pprint(BaiduSpider().search_web('爬虫'))
File "/Users/kok/PycharmProjects/untitled/lib/python3.7/site-packages/baiduspider/init.py", line 196, in search_web
self._handle_error(error)
File "/Users/kok/PycharmProjects/untitled/lib/python3.7/site-packages/baiduspider/_spider.py", line 71, in _handle_error
raise error
baiduspider.errors.UnknownError: 'NoneType' object has no attribute 'find'

from baiduspider.

Edgaraaa avatar Edgaraaa commented on June 28, 2024

表示同样问题,之后自己访问了一波百度。发现自己被ban了

from baiduspider.

samzhangjy avatar samzhangjy commented on June 28, 2024

目前在最新版本V0.0.7已经修复该问题。由于百度近期频繁更改界面细节,可能会导致爬虫不稳定。此外,本项目已经声明,不可使用本爬虫爬取大量信息。BaiduSpider也不会提供相对应的解决方案,特此说明,请谅解。

from baiduspider.

Related Issues (20)

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.