View Single Post
Old 12-13-2007, 09:14 AM   #91
UPMan
Junior Member
UPMan began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2007
Device: Sony PSR-505
I've searched the forums and wiki and cannot find the answer to this. In the nytimes script, the username and password are used. I want to hard code these values into my script, but can't figure out how to do this. I've tried several methods (making assumptions from my Visual C++, VBasic, etc background...I've not snaked around with Python before) but none are working.

I thought adding:
self.username = 'myname'
self.password = 'mypassword'

just before the "if" clause would set those values, but the script still returns results as though the name/password were not provided. I'm sure I'm missing something simple...
UPMan is offline   Reply With Quote