Commit 6484ba5d authored by Renán Sosa Guillen's avatar Renán Sosa Guillen

crawl all

parent b59503d9
......@@ -16,7 +16,7 @@ with open(sys.argv[1]) as data_file:
for s in siteList:
desde = datetime.datetime.strptime(s['desde'], '%d-%m-%Y')
print str(s['nombre'] +", desde:" + desde.strftime("%Y-%m-%d"))
media = s['crawler'][s['crawler'].find("/")+1:]
media = s['crawler'][s['crawler'].rfind("/")+1:]
try:
os.makedirs(media)
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment