python - Using twill's builtin mechanize distribution throws AttributeError on _debug? -


I use twill (0.9) and I have builtin mechanize Distribution (at Python 2.6.6). I read all the documents and I am not clear whether they also support or recommend it, if they are, they certainly do not propagate it. It seems that you can do this:

  Import _ Mechanize_magnain as a dd br = mechanized. Broser (br.open ('http://www.yahoo.com')   

However mechanized bottom robotparser._debug But the stupid attribute throws down the error. Should not I try to use it? Or is it simply by the muddy exception handling machine? (Twill itself works fine: twill.commands.go ('http://www.yahoo.com') )

  traceback (most recent Call end): File "& lt; pyshell # 19" gt; Line 1, & lt; Module & gt; Br.open ('http://www.yahoo.com') File "C: \ God \ Python26 \ lib \ site-packages \ twill-0.9-py2.6.egg \ twill \ other_packages \ _mechanize_dist \ _mechanize.py ", Line 212, open itself in open returns _mech_open (url, data) file "C: \ god \ Python26 \ lib \ site-packages \ twill-0.9-py2.6.egg \ twill \ other_packages \ _mechanize_dist \ _mechanize.py", line 238, _mech_open = UserAgentBase in response .open (self, request, data) file "C: \ God \ Python26 \ lib \ site-packages \ twill-0.9-py2.6.egg \ twill \ other_packages \ _mechanize_dist \ _opener.py", line 175, open req = "C: \ god \ Python26 \ lib \ site-packages \ twill-0.9-py2.6.egg \ twill \ other_packages \ _mechanize_dist \ _http.py", line 440, http_request self.rfp in the = meth (req) file. In the read () file "C: \ god \ Python26 \ lib \ site-packages \ twill-0.9-py2.6.egg \ twill \ other_packages \ _mechanize_dist \ _http.py" in RobotParser._debug ("Pars Lines") Error 387, attribute: Error: There is no attribute '_debug' in the 'module' object   

(The last question is: I do not know any warnings both twill and mechanization C Ommands side-by-side?) About using

currently sent mechanization Distribution of Twill is an ancient activity that has recently been about its upgrade.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -