Closed GoogleCodeExporter closed 8 years ago
You are not providing any parameters when you run the script. You will get that
error running this command line:
$ python appdailysales.py
You need to include the parameters. Run the following command to see the list
of parameters.
$ python appdailysales.py -h
The parameters are also listed on the project home page
(http://code.google.com/p/appdailysales/).
Here is an example of a valid call:
$ python appdailysales.py -a MyAppleID -p MyPassword -v
By default, the script does not display anything when a file is downloaded. Use
the -v option to see what the script is doing. Here is an example of the output
from -v parameter:
-- begin script --
reportDates: ['08/25/2010']
saving download file: S_D_80048915_999998_20100825_20100826204941536.txt.gz
-- end of script --
Hope that helps.
-KIRBY
Original comment by ki...@thecave.com
on 26 Aug 2010 at 8:52
Original comment by whitepea...@gmail.com
on 26 Aug 2010 at 8:58
Hi Kirby,
I'm calling the script as
python appdailysales.py -u -a <our_email@address.com> -p <our_password>
and if I try with the -v parameter I get this output:
-- begin script --
Traceback (most recent call last):
File "appdailysales.py", line 353, in <module>
sys.exit(main())
File "appdailysales.py", line 346, in main
downloadFile(options)
File "appdailysales.py", line 247, in downloadFile
urlDownload = urlBase % match[0]
IndexError: list index out of range
Original comment by luper...@gmail.com
on 17 Sep 2010 at 12:49
You need to update to the latest script, version 2.1. Apple rolled out an
completely new sales and trends reporting web site on September 9, 2010. This
broke the old script, which from the looks of the output above is what you are
using. The latest version of the script has been re-written to work with the
new web site.
Original comment by kirbyt.w...@gmail.com
on 17 Sep 2010 at 1:07
Original comment by kirbyt.w...@gmail.com
on 17 Sep 2010 at 1:10
Original comment by kirbyt.w...@gmail.com
on 17 Sep 2010 at 1:11
Awesome, thanks for the update!
One problem though..
When I run it as
python appdailysales.py -u -a <email@address.com> -p <password>
...it runs fine, but when I try to specify a date using, for example:
python appdailysales.py -u -D 09/14/2010 -a <email@address.com> -p <password>
then I get this output:
File "appdailysales.py", line 207
with open(os.path.join(options.outputDirectory, 'temp.html'), 'w') as f:
^
SyntaxError: invalid syntax
Original comment by luper...@gmail.com
on 17 Sep 2010 at 6:52
Having the same problem using -d 7
Original comment by twigbra...@gmail.com
on 20 Sep 2010 at 5:46
The "with" statement has been removed as of script version 2.2. The latest is
in the svn repo. I will package up a download .zip file soon.
Original comment by kirbyt.w...@gmail.com
on 23 Sep 2010 at 12:37
Thanks. Now I'm getting this error (all my contracts are signed, and temp.html
is empty):
-- begin script --
Unable to load the sales report web page at this time. A number of reasons can
cause this including delayed reporting and unsigned contracts. Try again later
or sign into iTunes Connect and verify access.
Traceback (most recent call last):
File "../appdailysales.py", line 393, in ?
sys.exit(main())
File "../appdailysales.py", line 386, in main
downloadFile(options)
File "../appdailysales.py", line 264, in downloadFile
viewState = match[0]
IndexError: list index out of range
Original comment by twigbra...@gmail.com
on 23 Sep 2010 at 6:35
If the temp.html file is empty then it means the HTML was never downloaded. Not
sure why that would happen. Maybe a redirect from the server. I would need to
see the responses from the server to understand better what is happening. I
wonder if this is one of the account specific issues I keep reading about. I'm
not able to recreate the problem using the accounts I have access to, so all I
can say is, Sorry.
Original comment by kirbyt.w...@gmail.com
on 23 Sep 2010 at 6:50
Original issue reported on code.google.com by
luper...@gmail.com
on 26 Aug 2010 at 7:34