mécaniser python
import mechanize
br = mechanize.Browser()
br.open("http://www.example.com/")
Foolish Ferret
import mechanize
br = mechanize.Browser()
br.open("http://www.example.com/")
from mechanize import Browser
browser = Browser()
response = browser.open('http://www.google.com')
print response.code
import mechanize
br = mechanize.Browser()
br.open("http://www.google.com/")
for f in br.forms():
print f
br.submit()
#!/usr/bin/python
import re
from mechanize import Browser
br = Browser()