나는 내 주식 포트폴리오를 스크립트로 읽으려고합니다. 다음은 NAB Online Trading에서 작동하지만 Bell Direct에서는 작동하지 않습니다.내 주식 포트폴리오를 wget하려고합니다
- 파일로 도메인 쿠키를 저장 파이어 폭스 내 온라인 브로커의 Export Domain Cookies 파이어 폭스 부가 기능을
- 설치 로그 (예
cookies.txt
) wget --no-check-certificate --load-cookies=cookies.txt -O folio.htm https://...
(포트폴리오 URL)
- 아이디어는 브라우저의 로그인 세션을 재사용하는 것입니다. Bell Direct로 시도하면 wget
이 로그인 페이지로 리디렉션됩니다. curl
과 같은 결과가 나옵니다. 내가 뭘 놓치고 있니? 쿠키 외에 브라우저에 저장된 상태가 있습니까? 로그인 페이지가 사용자 이름/암호의 양식이기 때문에 Bell은 "기본 인증"을 사용하지 않습니다. 브라우저의 기본 로그인 대화 상자가 나타나지 않습니다. 여기
은 (Cygwin을 사용하여 Windows XP에서) 일어나는 것입니다 :
$ wget --server-response --no-check-certificate --load-cookies=cookies-bell.txt -O folio-bell.htm https://www.belldirect.com.au/trade/portfoliomanager/
--2009-12-14 10:52:08-- https://www.belldirect.com.au/trade/portfoliomanager/
Resolving www.belldirect.com.au... 202.164.26.80
Connecting to www.belldirect.com.au|202.164.26.80|:443... connected.
WARNING: cannot verify www.belldirect.com.au's certificate, issued by '/C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Certification Services Division/CN=Thawte Server CA/[email protected]':
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response...
,
Connection: keep-alive
Date: Sun, 13 Dec 2009 23:52:16 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Location: /account/login.html?redirect=https://www.belldirect.com.au/trade/portfoliomanager/index.html
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 229
Location: /account/login.html?redirect=https://www.belldirect.com.au/trade/portfoliomanager/index.html [following]
0,123,959,152,
시험/허위 로그인을 제공 할 수있는 기회가 있으십니까? –