Does anyone knows what\'s wrong in this code ? When I run it I get same HTML page back.
# -*- coding: utf-8 -*-
from http import cookiejar
import urllib.reques
Login into a web applicaction by script may be trivial or awfully complex, depending on how the login page is organized. In my experience, the only foolproof way is :
IMHO using urllib2
or requests
make little differences. The only tool that is much better at that would be mechanize
, but unfortunately it seems not to be ported to Python 3