2
python 스크립트를 사용하여 로그인하고 Google Checkout 계정에서 html을 가져 오려고합니다. 로그인하는 것으로 보이지만 이상한 페이지를 반환합니다. 구문 분석하려는 주문 정보가 없습니다. Google Checkout에는 API가 있지만 지불금 합계 만 분석하는 방법은 없습니다. 이는 내가 염려하는 것입니다.Python 및 Google Checkout
import urllib, urllib2, cookielib
username = 'username'
password = 'password'
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
login_data = urllib.urlencode({'Email' : username, 'Passwd' : password})
opener.open('https://accounts.google.com/ServiceLogin?service=sierra&passive=1200&continue=https://checkout.google.com/sell/orders&followup=https://checkout.google.com/sell/orders<mpl=seller&scc=1&authuser=0', login_data)
resp = opener.open('https://checkout.google.com/sell/payouts')
f = file('test.html', 'w')
f.write(resp.read())
f.close()
print "Finished"
어떻게 내 계정의 적절한 HTML을 표시하려면이 코드를 얻을 수 있습니다 그래서 그것을 구문 분석 할 수 있습니다 : 여기
내 코드?
그래, 필자는 일부 * PAYOUT API * (필요 없음)에 대한 필요성을 제기 했으므로 아마도 [여기에 제안]하여 원인을 도울 수 있습니다 (http://support.google.com/checkout /sell/bin/static.py?hl=ko&page=suggestions.cs&ctx=cm) – EdSF