Sto usando mechanize (che usa clientform) per alcuni web crawling in python e poiché non supporta JS, voglio impostare un valore di un input inesistente in un modulo (l'input è generato da JS). Come posso fare questo?Come impostare un campo inesistente in Python ClientForm?
L'errore è simile a quello che si ottiene se si tenta di eseguire
from mechanize import Browser
br = Browser()
page = br.open('http://google.com')
br.select_form(nr = 0)
br['unexistent'] = 'hello'
Grazie, funziona come un fascino – Fluffy