--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6cd01ffe-a138-4ea9-b95b-599aa4fe3441%40googlegroups.com.
Could you try
the following : change the User-Agent to
'Mozilla/5.0'. It could be that the user agent of 'python/urllib/2.5' is
the issue. This worked for some users.
Not sure what that means
Phil
req = urllib2.Request(u)
req.add_header('User-Agent', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36')
response = urllib2.urlopen(req)
return response.read()The UK Met Office has now raised an issue with there datapoint services but did suggest to tryCould you try the following : change the User-Agent to
'Mozilla/5.0'. It could be that the user agent of 'python/urllib/2.5' is the issue. This worked for some users.
try:
response = urllib2.urlopen(u)
return response.read()
try:
req = urllib2.Request(u)
req.add_header('User-Agent', 'Mozilla/5.0')
response = urllib2.urlopen(req)
return response.read()--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6ef7dbb2-b6cf-45b6-9eb8-dc07cef5930c%40googlegroups.com.