enkore / i3pystatus

A complete replacement for i3status
https://i3pystatus.readthedocs.io/
MIT License
445 stars 189 forks source link

Weather.com: spoof user agent to allow web request #745

Closed terminalmage closed 5 years ago

terminalmage commented 5 years ago

Weather.com's API is returning 403 Forbidden for requests using urllib's default user agent. This commit uses Firefox's user agent to get around this limitation.