python3 test.py <object WebResult> #104
Unanswered
hanzo-genji
asked this question in
Q&A
Replies: 2 comments 5 replies
-
您好,可以使用 .plain 来获取dict对象。
On Jan 10, 2022, at 12:17 AM, 陈金金 ***@***.******@***.***>> wrote:
按照文档步骤:
导入BaiduSpider
from baiduspider import BaiduSpider
from pprint import pprint
实例化BaiduSpider
spider = BaiduSpider()
搜索网页
pprint(spider.search_web(query='Python'))
将这些代码写入test.py文件,然后用自己的python3(python版本3.9)后编译器出现结果
这个正常吗?
[image]<https://user-images.githubusercontent.com/47935550/148690859-a071de41-27c8-4964-8255-b211db35840c.png>
—
Reply to this email directly, view it on GitHub<#104>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANQCYEIJAYQNXRYFZR6O6WDUVGYJZANCNFSM5LSARF6A>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
5 replies
-
把最后一行代码,改成: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
按照文档步骤:
导入BaiduSpider
from baiduspider import BaiduSpider
from pprint import pprint
实例化BaiduSpider
spider = BaiduSpider()
搜索网页
pprint(spider.search_web(query='Python'))
将这些代码写入test.py文件,然后用自己的python3(python版本3.9)后编译器出现结果
![image](https://user-images.githubusercontent.com/47935550/148690859-a071de41-27c8-4964-8255-b211db35840c.png)
这个正常吗?
Beta Was this translation helpful? Give feedback.
All reactions