Quote:
Originally Posted by schuster
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.