amleszk / appdailysales

Automatically exported from code.google.com/p/appdailysales
0 stars 0 forks source link

Patch: 2 new features, including solution for issue 8 #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi. I've attached my modified version of 2.7, which includes a pair of new 
features.

- Automatically creates nested directories added to format (-f) strings (eg. -f 
%Y/%Y-%m/Daily-%Y-%m-%d.txt).  Works with outputDirectory (-o).
- New command line option "-n". Used with format (-f), any file that already 
exists isn't downloaded.

So now, combined with -d (days to download), you can make a single daily 
request for a full 14 days of reporting (-d 14).  Any days missed as a result 
of server/generation errors get filled in the next time appdailysales is run.

Enjoy. :)

Mike Kasprzak
Sykhronics Entertainment

Original issue reported on code.google.com by mikekasprzak on 14 Dec 2010 at 7:17

Attachments:

GoogleCodeExporter commented 8 years ago
With my version of appdailysales.py, I have a batch file set up as a Scheduled 
Task on Windows as follows:

python appdailysales.py -a USERNAME -p PASSWORD -f 
%%Y/%%Y-%%m/Daily-%%Y-%%m-%%d.txt -u -d 14 -v -n

This makes files like:

2010/2010-12/Daily-2010-12-13.txt
2010/2010-12/Daily-2010-12-12.txt
2010/2010-12/Daily-2010-12-11.txt
2010/2010-12/Daily-2010-12-10.txt

etc.

It downloads only what's missing (today usually, but will fill in gaps up until 
the 14 day buffer runs out).  If you're setting up a Windows PC just to run 
this script, be sure to install python and add your python directory to your 
PATH environment variable (C:\Python27\).

Original comment by mikekasprzak on 14 Dec 2010 at 8:15

GoogleCodeExporter commented 8 years ago
Thanks Mike for the change. I have included it in version 2.9, which will be 
posted later today.

Sorry it took me a long time to add the change to the code base. 

-KIRBY

Original comment by whitepea...@gmail.com on 19 Aug 2011 at 2:43