메뉴 건너뛰기

infra

[GData] python 으로 spreadsheet 에 추가

suritam92013.10.15 07:46조회 수 1431댓글 0

  • 1
    • 글자 크기

PHP로는 도저히 PUSH 가 안 되어서 결국 python을 쓸 수 밖에 없었다.


https://developers.google.com/gdata/articles/python_client_lib


설치 방법은 python을 시작으로 gdata 를 내려 받아 ./setup.py install 로 하면 된다.


setup.py 는 실행권한을 줘야한다. (chmod u+x setup.py)


들어갈 예제 코드는 


http://www.mattcutts.com/blog/write-google-spreadsheet-from-python/


위와 같다.


반드시 cell 첫번째 컬럼에는

date, time, weight 이 있어야 한다.


(you must insert header name in first rows!)


안그러면, gdata.service.RequestError: {'status': 400, 'body': 'We're sorry, a server error occurred. Please wait a bit and try reloading your spreadsheet.', 'reason': 'Bad Request'}


위와 같은 에러를 만나 1~2시간을 날리게 된다.


스크린샷 2013-10-14 오후 10.41.57.png

suritam9 (비회원)
  • 1
    • 글자 크기
[mysql] 인코딩 변경 (by suritam9) [아이폰] 사파리에서 meta 태그를 이용해 주소창, 버튼 가리기 + slider (by suritam9)

댓글 달기

박영식
2012.03.24 조회 2047
suritam9
2012.07.06 조회 3065
suritam9
2012.07.06 조회 2210
suritam9
2012.10.04 조회 2254
suritam9
2013.05.05 조회 3781
suritam9
2013.09.05 조회 3239
첨부 (1)
스크린샷 2013-10-14 오후 10.41.57.png
25.7KB / Download 58
위로