私はsplinterを使用して電子メールとパスワードを受け取り、次にFirefoxでFacebookを開いてログインします。これは以下のコードで確認できます。
これはすべて正常に機能しますが、ログインしたWebページを保存する方法を探しています.splinterを見てこれを行うことはできません. これを行う方法はありますか?
from splinter import Browser
# takes the email address for the facebook account needed
user_email = raw_input("enter users email address ")
# takes the oassword for the user account needed
user_pass = raw_input("enter users password ")
# loads the firefox broswer
browser= Browser('firefox')
#selects facebook as the website to load in the browser
browser.visit('http://www.facebook.com')
# fills the email field in the facebook login section
browser.fill('email', user_email)
browser.fill('pass', user_pass)
#selects the login button on the facebook page to log in with details given
button = browser.find_by_id('u_0_d')
button.click()