Submitting a form with mechanize (TypeError: ListControl, must set a sequence)

前端 未结 1 1843
说谎
说谎 2020-12-20 17:28

I\'m trying to submit a form with mechanize but have run into an error (TypeError: ListControl, must set a sequence) After googling for some time and trying a couple of diff

相关标签:
1条回答
  • 2020-12-20 17:54

    type field expects a list of integers from you, but you provide just one integer.
    Change this:

    br.form['type'] = '22'
    

    to this:

    br.form['type'] = ['22',]
    
    0 讨论(0)
提交回复
热议问题