Skip to content Skip to sidebar Skip to footer

What Does This Error Mean: ValueError: Unknown POST Form Encoding Type ' ' (and How To Solve It?)

I'm trying to crawl a website (http://www.dataescolabrasil.inep.gov.br/dataEscolaBrasil/home.seam) using mechanize but I am getting an error I cannot understand (and therefore cann

Solution 1:

I found that form at page from your example:

<form id="buscaForm" name="buscaForm" method="post" action="/dataEscolaBrasil/home.seam;jsessionid=EFB3D6270E69EAE71733137219C3026B" enctype="">

I think it's a problem, empty enctype attribute. You need to set value of this attribute to application/x-www-form-urlencoded or remove it for use default.


Post a Comment for "What Does This Error Mean: ValueError: Unknown POST Form Encoding Type ' ' (and How To Solve It?)"