我正在使用 gdata-2.0.17.tar.gz。
为什么以下代码在第二个“ssc.GetListFeed 中的行”上失败?
#!/usr/bin/python
import gdata.spreadsheet.service
key = '1AjklhasdfLJK09j2f3nFLKnff9hf28fhGFAklnf8223'
ssc = gdata.spreadsheet.service.SpreadsheetsService()
ssc.email = 'something'
ssc.password = 'something'
ssc.ProgrammaticLogin()
for row in ssc.GetListFeed(key=key).entry:
for key in row.custom:
print str(key) + ':' + str(row.custom[key].text)
print
for row in ssc.GetListFeed(key=key).entry:
for key in row.custom:
print str(key) + ':' + str(row.custom[key].text)
print
失败是
Traceback (most recent call last):
File "./test.py", line 16, in <module>
for row in ssc.GetListFeed(key=key).entry:
File "/home/someone/something/gdata/spreadsheet/service.py", line 252, in GetListFeed
converter=gdata.spreadsheet.SpreadsheetsListFeedFromString)
File "/home/someone/something/gdata/service.py", line 1108, in Get
'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 400, 'body': 'The spreadsheet at this URL could not be found. Make sure that you have the right URL and that the owner of the spreadsheet hasn't deleted it.', 'reason': 'Bad Request'}
SpreadsheetsService 对象是否需要在查询之间以某种方式重置?