jjlee / mechanize

Stateful programmatic web browsing in Python, after Andy Lester's Perl module WWW::Mechanize .
http://wwwsearch.sourceforge.net/mechanize/
618 stars 121 forks source link

Parser error when using Browser.follow_link(url_regex=) #48

Open Nandaka opened 13 years ago

Nandaka commented 13 years ago

The parser throwing an error (ParseError: expected name token at "<!';\npixiv.context.u") when using follow_link(url_regex='URL_PATTERN').

The "<!" is inside javascript string variable, not for denoting html comment, the full script in here:

....

...

Doesn't throw exception if using RobustFactory()