View Single Post
Old 06-10-2011, 01:28 PM   #11
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by schuster View Post
all i want to know at this stage is:
is it the right way?
or even to complicated in thinking?
If you are doing what I think you are doing, it looks like one "right way" to me. There are many right ways. First, you get the current date. You get that with
Code:
import strftime
testdate = strftime(self.timefmt)
print 'testdate is: ', testdate
It looks like you are trying to fetch a URL using the month previous to the current month, so you need to figure out what that month is, then build the URL. You can do that manually, or use date handling functions.
Starson17 is offline   Reply With Quote