Use Beautiful Soup4 to pull weather
Recently, i found i can not get weather forecast from http://wxdata.weather.com/wxdata as below:
This service is deprecated as of 01/15/2020 |
ok, i’m using pywapi-0.3.8 to show weather forecast on screen under raspberry pi.
A good method instead is using Beautiful Soup which is very useful tool to pull the data although possible speed performance. i think rpi can handle it.
Yes, i just wrote the similar python lib to compatible with pywapi for part of weather.com. haha, it looks nice… the icon index is same as before, great…
Although, python is not new to me, i can use it. maybe refactor in further.
Watch the below picture,same same as before…
refer doc
- https://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/
- https://www.crummy.com/software/BeautifulSoup/bs4/doc/
PS: From now, we are experiencing wuhan2020!
版权声明:本站所有文章均采用 CC BY-NC-SA 4.0 CN 许可协议。转载请注明原文链接!