【发布时间】:2016-01-30 15:10:32
【问题描述】:
我希望 python 从网站上读取特定的单词, 我在 urllib 和 bs4 中进行了搜索,但没有找到任何可以执行此操作的示例
我想要的示例:
在此页面上https://www.google.com.eg/search?q=weather%20in%20egypt&gws_rd=ssl
我想让 python 读取:
>>>id = wob_tm
>>>print 'weather is ' + id
weather is 16
有可能吗?
【问题讨论】:
-
Google 真的不希望你这样做;你为什么不使用一些开放的天气 API 呢?
-
这只是一个例子......
-
soup.select("#myid") -
成功了,非常感谢。
标签: python beautifulsoup urllib