You can operate the browser
pip install lxml
pip install mechanize
In advance
Here, try logging in to the qiita site.
browserplus.py
# -*- coding: utf-8 -*-
from browserplus import BrowserPlus
bp = BrowserPlus()
#Open site
bp.open('https://qiita.com/login')
#form tag specification
bp.select_form_by('action', '/login')
#User id and password settings
bp['identity'] = 'your id'
bp['password'] = 'your password'
#Send
bp.submit()
#html display
bp.show()
Recommended Posts