python-googleanalytics icon indicating copy to clipboard operation
python-googleanalytics copied to clipboard

Out of Date URLs

Open tija opened this issue 12 years ago • 2 comments

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

tija avatar Jun 28 '12 14:06 tija

Added pull request

tija avatar Jun 28 '12 15:06 tija

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.

skyepn avatar Jul 18 '12 08:07 skyepn