All the files followed the structure " DO@@yyyy.dbc " where @@ = acronym of each state and yyyy = year (4digits)
So I was doing
Code:
local groups " AL CT NJ PA " forvalues i = 1996/2010 { foreach x of local groups{ copy http://example.com/DO`x'`i'.dbc DO`x'`i'.dbc } }
However, now that they changed the structure of the file name to " DO@@yymm.dbc ", I am having troubles. In the file name structure "mm" varies from 01 to 12 and "yy" from 08 to 18. However, theforvaluefunction does not recognize the first 0, making the download fail.
Does anyone have any advice on how to solve this problem?
0 Response to Automating web downloads when 0 is included, an issue with forvalue
Post a Comment