I need to collect information from a site using spiders within ScraPy in Python, however the site is a post method and I am learning the language while developing the project. I found a template for post but I'm not able to run it correctly. The code I have is this:
scrapy.FormRequest(
url='http://www.camex.gov.br/resolucoes-camex/resolucoes',
formdata={
'filter[search]': '',
'filter[res]': '',
'filter[ano]': '',
'limit': paginas,
'limitstart': quantidadeDeRegistros,
'task': '',
'boxchecked': 0,
'filter_order': '',
'filter_order_Dir': '',
'46598c34d1ab5af3b00e8d84a4281fbc': 1,
'list[fullordering]': 'null ASC'
},
callback=self.parsePagina
)
Is it correct or is there a better way to do it?