Python机械化错误;应为位于'<;!--附加re';

Python机械化错误;应为位于'<;!--附加re';,python,forms,web-scraping,mechanize,bioinformatics,Python,Forms,Web Scraping,Mechanize,Bioinformatics,我正试图写一个脚本,将自动上传一些氨基酸序列到数据库,但我有麻烦的第一部分。以下是我到目前为止的情况: import mechanize br = mechanize.Browser() br.open("http://web.expasy.org/myristoylator/") for i in br.forms(): print i 但我一直收到以下错误消息: ParseError: expected name token at '<! -- Additionnal re'

我正试图写一个脚本,将自动上传一些氨基酸序列到数据库,但我有麻烦的第一部分。以下是我到目前为止的情况:

import mechanize
br = mechanize.Browser()
br.open("http://web.expasy.org/myristoylator/")
for i in br.forms():
    print i
但我一直收到以下错误消息:

ParseError: expected name token at '<! -- Additionnal re'

ParseError:name-token应该在“上,我在谷歌上花了一点时间才找到它。有关解决方案,请参见本页末尾的

如果您对此仍有问题,请给我留言或发表评论

干杯

br = mechanize.Browser(factory=mechanize.RobustFactory())
br.set_handle_robots(False)
br.open("http://www.expasy.org/proteomics")
response1 = br.follow_link(text_regex=r"Myristoylator", nr=1)
for i in br.forms():
    print i