python-googleanalytics
python-googleanalytics copied to clipboard
Out of Date URLs
The URLs in DataSet.init() are out of date:
self.totalResults = int(xml_tree.find('{http://a9.com/-/spec/opensearchrss/1.0/}totalResults').text)
self.startIndex = int(xml_tree.find('{http://a9.com/-/spec/opensearchrss/1.0/}startIndex').text)
self.itemsPerPage = int(xml_tree.find('{http://a9.com/-/spec/opensearchrss/1.0/}itemsPerPage').text)
need to be changed to:
self.totalResults = int(xml_tree.find('{http://a9.com/-/spec/opensearch/1.1/}totalResults').text) # updated
self.startIndex = int(xml_tree.find('{http://a9.com/-/spec/opensearch/1.1/}startIndex').text) # updated
self.itemsPerPage = int(xml_tree.find('{http://a9.com/-/spec/opensearch/1.1/}itemsPerPage').text) # updated
per the note at the bottom of this page https://developers.google.com/gdata/docs/developers-guide
Added pull request
I'm getting this error:
File "build/bdist.macosx-10.7-intel/egg/googleanalytics/account.py", line 169, in get_data File "build/bdist.macosx-10.7-intel/egg/googleanalytics/data.py", line 18, in init AttributeError: 'NoneType' object has no attribute 'text'
I tried changing to lines as above, same error. Commented out those three lines complete and seems to be working again. Don't have time to debug it, just need it to work.