- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hi Folks I have the following code in one of my classes along with checks when the code does not eval: [code]filterParam="self.recipientMSISDN==tmpBPSS.split('_')[3].split('#')[0] and self.recipientIMSI==tmpBPSS.split('_')[3].split('#')[1]" if eval(filterParam): print "Evalled" else: print "Not Evalled\nfilterParam\n'%s'\ntmpBPSS\n'%s'\nself.recipientMSISDN\n'%s'\nself.recipientIMSI\n'%s'" % (filterParam, tmpBPSS, self.recipientMSISDN, self.recipientIMSI)[/code] I am not getting anything to 'eval'. Here are the results: [code] Not … | |
Hi I was hoping I could get a bit of help here. I am trying to break a number of strings up into arrays on particular words. For example in the following strings I want them broken on the words GET and/or POST: [CODE] "POST at the start without the … | |
Re: [code] import twill, string, os b=twill.commands.get_browser() b.set_agent_string("Mozilla/5.0 (Windows; U; Windows NT 5.1;en-GB;rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14") b.clear_cookies() b.go("http://www.daniweb.com") b.showforms() f=b.get_form("2") f['vb_login_username']=loginName f['vb_login_password']=password b.clicked(f,f) b.submit() b.showforms() html=b.get_html() html [/code] I checked this and this worked | |
Re: can you provide traceback to your problem? I also don't understand what you mean by 'i want to save only alive account but current source code can't function correctly, all checking account saved.' Please elaborate on what the problem is | |
Re: Can you provide the complete traceback? It should give more info | |
| |
Hi I wonder if someone could point me in the right direction. I used the following code to access gmail but I got a urllib2.URLError: <urlopen error unknown url type: 'http> error when I ran it. I have included the Traceback import twill, string, os b=twill.commands.get_browser() b.set_agent_string("Mozilla/5.0 (Windows; U; Windows … |