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...
|