あなたの質問では CasperJS に言及していますが、質問に python のタグを付けています。Python を言語として使用する場合は、Web スクレイピング用のさまざまなツールについて説明しているビデオを確認できます。
ログインを使用して Web ページを管理するには、上記の Web サイドのサンプル コードを mechanizeを使用できます
。
br = mechanize.Browser()
# Explicitly configure proxies (Browser will attempt to set good defaults).
# Note the userinfo ("joe:password@") and port number (":3128") are optional.
br.set_proxies({"http": "joe:password@myproxy.example.com:3128",
"ftp": "proxy.example.com",
})
# Add HTTP Basic/Digest auth username and password for HTTP proxy access.
# (equivalent to using "joe:password@..." form above)
br.add_proxy_password("joe", "password")
# Add HTTP Basic/Digest auth username and password for website access.
br.add_password("http://example.com/protected/", "joe", "password")
他の良いpythonの選択はスクレイピーです