BaiduSpider / BaiduSpider

BaiduSpider,一个爬取百度搜索结果的爬虫,目前支持百度网页搜索,百度图片搜索,百度知道搜索,百度视频搜索,百度资讯搜索,百度文库搜索,百度经验搜索和百度百科搜索。

Home Page:https://baiduspider.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]移动版的不能用吗?

PandaTwo opened this issue · comments

描述该问题
使用案例中的导入
from baiduspider import BaiduMobileSpider

结果:

cannot import name 'BaiduMobileSpider' from 'baiduspider'

系统

  • 操作系统: 例如:MacOS
  • Python版本: 例如:3.9

Uhm, I understood your situation after translating your issue to English. I tried to simulate your scenario and found out that the code init.py does not include BaiduMobileSpider anywhere although there is a section demonstrated for mobile here.

Uhm, I understood your situation after translating your issue to English. I tried to simulate your scenario and found out that the code init.py does not include BaiduMobileSpider anywhere although there is a section demonstrated for mobile here.

thx.

from baiduspider import BaiduMobileSpider
Change to
from baiduspider.mobile import BaiduMobileSpider