PhilosChen / appdailysales

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

Keep getting 05/24/2011 report is not available - try again later. 1 report(s) not available - try again later #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. running my modified script of your appdailysales.py never produces the 
download.   The [I have replaced the user and password for obvious reasons...]
[itunesjob]$ python app1.py -a xxx.yyy@music.com -p music -v
-- begin script --
Signing into iTunes Connect web site.
Accessing Sales and Trends reporting web site.
viewState:  j_id16060:j_id16061
defaultVendorPage:  j_id_jsp_645493535_2
ajaxName:  j_id_jsp_645493535_0
Accessing sales report web page.
viewState:  j_id16066:j_id16067
dailyName:  theForm:j_id_jsp_49459500_6
ajaxName:  theForm:j_id_jsp_4945950_2
dateName:  theForm:j_id_jsp_4945950_8
selectName: theForm:j_id_jsp_4945950_32
dateListAvailableDays:  ['05/24/2011', '05/23/2011', '05/22/2011', 
'05/21/2011', '05/20/2011', '05/19/2011', '05/18/2011', '05/17/2011', 
'05/16/2011', '05/15/2011', '05/14/2011', '05/13/2011', '05/12/2011', 
'05/11/2011']
dateListAvailableWeeks:  ['05/22/2011', '05/15/2011', '05/08/2011', 
'05/01/2011', '04/24/2011', '04/17/2011', '04/10/2011', '04/03/2011', 
'03/27/2011', '03/20/2011', '03/13/2011', '03/06/2011', '02/27/2011']
reportDates:  ['05/24/2011']
Downloading daily sales reports.
dateString-> 05/24/2011
dateString in the dateListAvailableDays!
Downloading report for:  05/24/2011
urlHandle-> Server: Apache-Coyote/1.1
X-Powered-By: JSF/1.2
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Transfer-Encoding: chunked
Date: Wed, 25 May 2011 19:30:25 GMT

Server: Apache-Coyote/1.1
X-Powered-By: JSF/1.2
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Transfer-Encoding: chunked
Date: Wed, 25 May 2011 19:30:25 GMT

05/24/2011 report is not available - try again later.
1 report(s) not available - try again later

What is the expected output? What do you see instead?
The expected output is the download should produce a file..

What version of the product are you using? On what operating system?
v 2.7 of appdailysales on Centos Linux

Please provide any additional information below.

Original issue reported on code.google.com by icdip...@gmail.com on 25 May 2011 at 7:36

GoogleCodeExporter commented 8 years ago
Does the unmodified version of the script work for you?

-KIRBY

Original comment by ki...@whitepeaksoftware.com on 25 May 2011 at 10:26

GoogleCodeExporter commented 8 years ago
No,
The original appdailysales.py doesnt download anything.
It says
Unable to load default vendor page.

Could you please assist me.

The only thing I did in the original is put the

Original comment by icdip...@gmail.com on 31 May 2011 at 3:34

GoogleCodeExporter commented 8 years ago
I put the appdailysales.py in debug mode
[itunes@dedops01 bin]$ appdailysales.py --debug -a
xxx.yyy@hasbro.com<david.rossitter@hasbro.com>-p zzz
-- begin script --
Signing into iTunes Connect web site.
Accessing Sales and Trends reporting web site.
viewState:  j_id49512:j_id49513
defaultVendorPage:  j_id_jsp_645493535_2
ajaxName:  j_id_jsp_645493535_0
Accessing sales report web page.
viewState:  j_id49516:j_id49517
dailyName:  theForm:j_id_jsp_49459500_6
ajaxName:  theForm:j_id_jsp_4945950_2
dateName:  theForm:j_id_jsp_4945950_8
selectName: theForm:j_id_jsp_4945950_32
dateListAvailableDays:  ['05/30/2011', '05/29/2011', '05/28/2011',
'05/27/2011', '05/26/2011', '05/25/2011', '05/24/2011', '05/23/2011',
'05/22/2011', '05/21/2011', '05/20/2011', '05/19/2011', '05/18/2011',
'05/17/2011']
dateListAvailableWeeks:  ['05/29/2011', '05/22/2011', '05/15/2011',
'05/08/2011', '05/01/2011', '04/24/2011', '04/17/2011', '04/10/2011',
'04/03/2011', '03/27/2011', '03/20/2011', '03/13/2011', '03/06/2011']
reportDates:  [datetime.date(2011, 5, 30)]
Downloading daily sales reports.
Downloading report for:  05/30/2011
Server: Apache-Coyote/1.1
X-Powered-By: JSF/1.2
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Transfer-Encoding: chunked
Date: Tue, 31 May 2011 15:38:58 GMT

05/30/2011 report is not available - try again later.
1 report(s) not available - try again later

SHOULDN'T the reportDates say 5/30/2011?
IT SEEMS TO BE TRYING TO DOWNLOAD  but some untrapped error gets in the way
since if you look at the dateListAvailableDays 5/30/2011 is there...But if
it is trying to compare with the reportDates then it would never have the
report available since what it has is 2011, 5, 30

Please assist.  I am now running the original code giving it a parameter of
the appleid and the password.

Original comment by icdip...@gmail.com on 31 May 2011 at 3:45

GoogleCodeExporter commented 8 years ago
Will you run the script using the --debug and -v parameters, then send me the 
output and temp.html file? The temp.html shows the last bit of content 
downloaded from the iTC web site. The combination might shed light on the 
problem.

Also, what operating system and version of python are you using? Knowing that 
would be helpful too.

The one thing that stands out as being odd in the output included in the 
previous message is this:

Downloading report for:  05/30/2011
Server: Apache-Coyote/1.1
X-Powered-By: JSF/1.2
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Transfer-Encoding: chunked
Date: Tue, 31 May 2011 15:38:58 GMT

This shows the content type as being text/html when it should be something like 
application/a-gzip. The html content type is definitely not the report file, 
but it doesn't explain why it's not finding the report file.

Thanks,
-KIRBY

Original comment by ki...@whitepeaksoftware.com on 31 May 2011 at 7:44

GoogleCodeExporter commented 8 years ago
$ ./appdailysales.py --debug -a 'xxx.yyy@zzz.com<david.rossitter@hasbro.com>'
-p 'xxx'
-- begin script --
Signing into iTunes Connect web site.
Accessing Sales and Trends reporting web site.
viewState:  j_id13067:j_id13068
defaultVendorPage:  j_id_jsp_645493535_2
ajaxName:  j_id_jsp_645493535_0
Please note: iTunes is aware that report generation for AMR is delayed for
31st MAY,2011. We apologize for any inconvenience, reports will be published
as soon as generation is complete.
Accessing sales report web page.
viewState:  j_id13073:j_id13074
dailyName:  theForm:j_id_jsp_49459500_6
ajaxName:  theForm:j_id_jsp_4945950_2
dateName:  theForm:j_id_jsp_4945950_8
selectName: theForm:j_id_jsp_4945950_32
dateListAvailableDays:  ['05/31/2011', '05/30/2011', '05/29/2011',
'05/28/2011', '05/27/2011', '05/26/2011', '05/25/2011', '05/24/2011',
'05/23/2011', '05/22/2011', '05/21/2011', '05/20/2011', '05/19/2011',
'05/18/2011']
dateListAvailableWeeks:  ['05/29/2011', '05/22/2011', '05/15/2011',
'05/08/2011', '05/01/2011', '04/24/2011', '04/17/2011', '04/10/2011',
'04/03/2011', '03/27/2011', '03/20/2011', '03/13/2011', '03/06/2011']
reportDates:  [datetime.date(2011, 5, 31)]
Downloading daily sales reports.
Downloading report for:  05/31/2011
Server: Apache-Coyote/1.1
X-Powered-By: JSF/1.2
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Transfer-Encoding: chunked
Date: Wed, 01 Jun 2011 12:18:59 GMT

05/31/2011 report is not available - try again later.
1 report(s) not available - try again later

 $ python -V
Python 2.4.3

Original comment by icdip...@gmail.com on 1 Jun 2011 at 12:52

GoogleCodeExporter commented 8 years ago
In this latest run, I see the iTC message "Please note: iTunes is aware that 
report generation for AMR is delayed for 31st MAY,2011. We apologize for any 
inconvenience, reports will be published as soon as generation is complete."  
This of course means the report for May 31 is not yet available.  

Can you download another day or wait until the May 31 report is available?  
Also, can you do --debug and -v and send or post the temp.html, or let me know 
if temp.html is not available?  That will help me determine the problem.

Also, as stated in the docs, the script has only been tested with Python 2.5x 
and 2.6.x  

http://code.google.com/p/appdailysales/#What_Version_of_Python

You are running 2.4.3.  That could possibly be the cause of the problem.  If 
possible, I suggest upgrading Python to 2.5x or 2.6.x.

Thanks,
-KIRBY

Original comment by ki...@whitepeaksoftware.com on 1 Jun 2011 at 1:07

GoogleCodeExporter commented 8 years ago
Although the note states this, I was able to download the gz file earlier.
I did it manually
I however did an attempt on a file I already processed which was 5/30/2011

$ ./appdailysales.py --debug -a 'xxx.yyy@zzz.com' -p 'xxx' 05/30/2011
-- begin script --
Signing into iTunes Connect web site.
Accessing Sales and Trends reporting web site.
viewState:  j_id18923:j_id18924
defaultVendorPage:  j_id_jsp_645493535_2
ajaxName:  j_id_jsp_645493535_0
Accessing sales report web page.
viewState:  j_id18927:j_id18928
dailyName:  theForm:j_id_jsp_49459500_6
ajaxName:  theForm:j_id_jsp_4945950_2
dateName:  theForm:j_id_jsp_4945950_8
selectName: theForm:j_id_jsp_4945950_32
dateListAvailableDays:  ['05/31/2011', '05/30/2011', '05/29/2011',
'05/28/2011', '05/27/2011', '05/26/2011', '05/25/2011', '05/24/2011',
'05/23/2011', '05/22/2011', '05/21/2011', '05/20/2011', '05/19/2011',
'05/18/2011']
dateListAvailableWeeks:  ['05/29/2011', '05/22/2011', '05/15/2011',
'05/08/2011', '05/01/2011', '04/24/2011', '04/17/2011', '04/10/2011',
'04/03/2011', '03/27/2011', '03/20/2011', '03/13/2011', '03/06/2011']
reportDates:  [datetime.date(2011, 5, 31)]
Downloading daily sales reports.
Downloading report for:  05/31/2011
Server: Apache-Coyote/1.1
X-Powered-By: JSF/1.2
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Transfer-Encoding: chunked
Date: Wed, 01 Jun 2011 13:17:36 GMT

05/31/2011 report is not available - try again later.
1 report(s) not available - try again later

Here is the temp.html
<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><script
type="text/javascript"
src="/a4j.res/org.ajax4jsf.framework.ajax.AjaxScript.faces">
</script><meta http-equiv="content-type" content="text/html; charset=utf-8"
/><title>Sales and Trends</title><link type="text/css" rel="stylesheet"
href="css/global.css" /><script type="text/javascript"
src="javascript/apple.js">
</script><script type="text/javascript" src="javascript/make_seven.js">
</script><script type="text/javascript" src="javascript/vendor_select.js">
</script><script type="text/javascript" src="scripts/sales.js">
</script></head><body id="sales"
onload="setupNew();onLoad();checkDownldAllignForApp();checkWeekly();toggle_click
_limiter(false);"><!--
Changes for Opt-in Reports -->
<div id="click-limiter"></div><span
id="theForm:optInPasskeyPanel"></span><span id="theForm:optInPanel"></span>
<script type="text/javascript" language="Javascript">//<![CDATA[
function dpf(f) {var adp = f.adp;if (adp != null) {for (var i = 0;i <
adp.length;i++) {f.removeChild(adp[i]);}}};function apf(f, pvp) {var adp =
new Array();f.adp = adp;var ps = pvp.split(',');for (var i = 0,ii = 0;i <
ps.length;i++,ii++) {var p = document.createElement("input");p.type =
"hidden";p.name = ps[i];p.value = ps[i + 1];f.appendChild(p);adp[ii] = p;i
+= 1;}};function jsfcljs(f, pvp, t) {apf(f, pvp);if (t) {f.target =
t;}f.submit();dpf(f);};
//]]>
</script><a id="theForm:downloadLabel1" href="#"
style="text-decoration:none;color:#FFFFFF;" onclick="if(typeof jsfcljs ==
'function'){jsfcljs(document.forms['theForm'],'theForm:downloadLabel1,theForm:do
wnloadLabel1','');}return
false" class="button">Summary</a><a id="theForm:downloadLabel3" href="#"
style="text-decoration:none;color:#FFFFFF;" onclick="if(typeof jsfcljs ==
'function'){jsfcljs(document.forms['theForm'],'theForm:downloadLabel3,theForm:do
wnloadLabel3','');}return
false" class="button">Detailed</a><span id="theForm:slsERRtable"><table
id="theForm:salesTable" class="pre-orders" cellpadding="0"
cellspacing="0"><thead><tr><th scope="col">Title</th><th
scope="col">Artist</th><th scope="col">Type</th><th
scope="col">Units</th><th scope="col">Customer Price</th><th
scope="col">Royalty</th><th scope="col">Store</th><th scope="col">Apple
ID</th></tr></thead><tbody><tr class="even"><td
class="first-columnartist">Darkness Rising, Pt. 1</td><td
class="song-name">Transformers Prime</td><td class="song-type">TE</td><td
class="units">421</td><td class="price">0 USD</td><td class="royalty"><span
class="promotional" title="Free transactions"></span>    <!--
Changes for paper boy start -->
 0 USD</td><td class="store">US</td><td class="store">417346311</td></tr><tr
class="odd"><td class="first-columnartist">Friendship Is Magic, Pt.
1</td><td class="song-name">My Little Pony: Friendship Is Magic</td><td
class="song-type">TE</td><td class="units">352</td><td class="price">0
USD</td><td class="royalty"><span class="promotional" title="Free
transactions"></span>    <!-- Changes for paper boy start -->
 0 USD</td><td class="store">US</td><td class="store">418235498</td></tr><tr
class="even"><td class="first-columnartist">The Descent, Pt.1</td><td
class="song-name">G.I. Joe Renegades</td><td class="song-type">TE</td><td
class="units">195</td><td class="price">0 USD</td><td class="royalty"><span
class="promotional" title="Free transactions"></span>    <!--
Changes for paper boy start -->
 0 USD</td><td class="store">US</td><td class="store">417321413</td></tr><tr
class="odd"><td class="first-columnartist">Darkness Rising, Pt. 1</td><td
class="song-name">Transformers Prime</td><td class="song-type">TER</td><td
class="units">43</td><td class="price">0 USD</td><td class="royalty"><span
class="promotional" title="Free transactions"></span>    <!--
Changes for paper boy start -->
 0 USD</td><td class="store">US</td><td class="store">417346311</td></tr><tr
class="even"><td class="first-columnartist">Friendship Is Magic, Pt.
1</td><td class="song-name">My Little Pony: Friendship Is Magic</td><td
class="song-type">TER</td><td class="units">28</td><td class="price">0
USD</td><td class="royalty"><span class="promotional" title="Free
transactions"></span>    <!-- Changes for paper boy start -->
 0 USD</td><td class="store">US</td><td class="store">418235498</td></tr><tr
class="odd"><td class="first-columnartist">Friendship Is Magic, Pt.
2</td><td class="song-name">My Little Pony: Friendship Is Magic</td><td
class="song-type">TE</td><td class="units">20</td><td class="price">1.99
USD</td><td class="royalty">   <!-- Changes for paper boy start
-->
 1.4 USD</td><td class="store">US</td><td
class="store">418239336</td></tr><tr class="even"><td
class="first-columnartist">Friendship Is Magic, Pt. 2</td><td
class="song-name">My Little Pony: Friendship Is Magic</td><td
class="song-type">TE</td><td class="units">17</td><td class="price">2.99
USD</td><td class="royalty">   <!-- Changes for paper boy start
-->
 2.1 USD</td><td class="store">US</td><td
class="store">418239336</td></tr><tr class="odd"><td
class="first-columnartist">The Descent, Pt.1</td><td class="song-name">G.I.
Joe Renegades</td><td class="song-type">TER</td><td class="units">16</td><td
class="price">0 USD</td><td class="royalty"><span class="promotional"
title="Free transactions"></span>    <!-- Changes for paper boy
start -->
 0 USD</td><td class="store">US</td><td class="store">417321413</td></tr><tr
class="even"><td class="first-columnartist">Darkness Rising, Pt. 2</td><td
class="song-name">Transformers Prime</td><td class="song-type">TE</td><td
class="units">11</td><td class="price">1.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">417347750</td></tr><tr class="odd"><td
class="first-columnartist">Shadowzone</td><td class="song-name">Transformers
Prime</td><td class="song-type">TER</td><td class="units">11</td><td
class="price">.99 USD</td><td class="royalty">   <!-- Changes for
paper boy start -->
 .7 USD</td><td class="store">US</td><td
class="store">437088309</td></tr><tr class="even"><td
class="first-columnartist">Darkness Rising, Pt. 3</td><td
class="song-name">Transformers Prime</td><td class="song-type">TE</td><td
class="units">8</td><td class="price">1.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">417349407</td></tr><tr class="odd"><td
class="first-columnartist">Sonic Rainboom</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">8</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">420127204</td></tr><tr class="even"><td
class="first-columnartist">The Ticket Master</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">8</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">418242426</td></tr><tr class="odd"><td
class="first-columnartist">Darkness Rising, Pt. 2</td><td
class="song-name">Transformers Prime</td><td class="song-type">TE</td><td
class="units">7</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">417347750</td></tr><tr class="even"><td
class="first-columnartist">Darkness Rising, Pt. 4</td><td
class="song-name">Transformers Prime</td><td class="song-type">TE</td><td
class="units">7</td><td class="price">1.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">417351264</td></tr><tr class="odd"><td
class="first-columnartist">Shadowzone</td><td class="song-name">Transformers
Prime</td><td class="song-type">TE</td><td class="units">7</td><td
class="price">1.99 USD</td><td class="royalty">   <!-- Changes for
paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">437088309</td></tr><tr class="even"><td
class="first-columnartist">A Dog and Pony Show</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">7</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">424092548</td></tr><tr class="odd"><td
class="first-columnartist">The Best Night Ever</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">7</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">436091312</td></tr><tr class="even"><td
class="first-columnartist">Dragonshy</td><td class="song-name">My Little
Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">7</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">418263147</td></tr><tr class="odd"><td
class="first-columnartist">The Ticket Master</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">6</td><td class="price">1.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">418242426</td></tr><tr class="even"><td
class="first-columnartist">The Best Night Ever</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">6</td><td class="price">1.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">436091312</td></tr><tr class="odd"><td
class="first-columnartist">Darkness Rising, Pt. 5</td><td
class="song-name">Transformers Prime</td><td class="song-type">TE</td><td
class="units">6</td><td class="price">1.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">417354121</td></tr><tr class="even"><td
class="first-columnartist">Winter Wrap Up</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">5</td><td class="price">1.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">418281205</td></tr><tr class="odd"><td
class="first-columnartist">Party of One</td><td class="song-name">My Little
Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">5</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">431200951</td></tr><tr class="even"><td
class="first-columnartist">The Cutie Mark Chronicles</td><td
class="song-name">My Little Pony: Friendship Is Magic</td><td
class="song-type">TE</td><td class="units">5</td><td class="price">1.99
USD</td><td class="royalty">   <!-- Changes for paper boy start
-->
 1.4 USD</td><td class="store">US</td><td
class="store">429589111</td></tr><tr class="odd"><td
class="first-columnartist">Suited for Success</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">5</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">418288990</td></tr><tr class="even"><td
class="first-columnartist">Applebuck Season</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">5</td><td class="price">1.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">418246013</td></tr><tr class="odd"><td
class="first-columnartist">Darkness Rising, Pt. 4</td><td
class="song-name">Transformers Prime</td><td class="song-type">TE</td><td
class="units">5</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">417351264</td></tr><tr class="even"><td
class="first-columnartist">Out of His Head</td><td
class="song-name">Transformers Prime</td><td class="song-type">TER</td><td
class="units">5</td><td class="price">.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 .7 USD</td><td class="store">US</td><td
class="store">436096832</td></tr><tr class="odd"><td
class="first-columnartist">Dragonshy</td><td class="song-name">My Little
Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">5</td><td class="price">1.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">418263147</td></tr><tr class="even"><td
class="first-columnartist">The Cutie Mark Chronicles</td><td
class="song-name">My Little Pony: Friendship Is Magic</td><td
class="song-type">TE</td><td class="units">5</td><td class="price">2.99
USD</td><td class="royalty">   <!-- Changes for paper boy start
-->
 2.1 USD</td><td class="store">US</td><td
class="store">429589111</td></tr><tr class="odd"><td
class="first-columnartist">Sick Mind</td><td class="song-name">Transformers
Prime</td><td class="song-type">TER</td><td class="units">4</td><td
class="price">.99 USD</td><td class="royalty">   <!-- Changes for
paper boy start -->
 .7 USD</td><td class="store">US</td><td
class="store">434023780</td></tr><tr class="even"><td
class="first-columnartist">Predatory</td><td class="song-name">Transformers
Prime</td><td class="song-type">TE</td><td class="units">4</td><td
class="price">1.99 USD</td><td class="royalty">   <!-- Changes for
paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">430122666</td></tr><tr class="odd"><td
class="first-columnartist">Speed Metal</td><td
class="song-name">Transformers Prime</td><td class="song-type">TER</td><td
class="units">4</td><td class="price">.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 .7 USD</td><td class="store">US</td><td
class="store">427688463</td></tr><tr class="even"><td
class="first-columnartist">Darkness Rising, Pt. 3</td><td
class="song-name">Transformers Prime</td><td class="song-type">TE</td><td
class="units">4</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">417349407</td></tr><tr class="odd"><td
class="first-columnartist">Look Before You Sleep</td><td
class="song-name">My Little Pony: Friendship Is Magic</td><td
class="song-type">TE</td><td class="units">4</td><td class="price">1.99
USD</td><td class="royalty">   <!-- Changes for paper boy start
-->
 1.4 USD</td><td class="store">US</td><td
class="store">418268083</td></tr><tr class="even"><td
class="first-columnartist">Masters and Students</td><td
class="song-name">Transformers Prime</td><td class="song-type">TE</td><td
class="units">4</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">420132694</td></tr><tr class="odd"><td
class="first-columnartist">Transformers: Prime, Season 1</td><td
class="song-name">Transformers Prime</td><td class="song-type">SP</td><td
class="units">4</td><td class="price">49.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 34.99 USD</td><td class="store">US</td><td
class="store">417297784</td></tr><tr class="even"><td
class="first-columnartist">Friendship Is Magic, Pt. 2</td><td
class="song-name">My Little Pony: Friendship Is Magic</td><td
class="song-type">TER</td><td class="units">4</td><td class="price">.99
USD</td><td class="royalty">   <!-- Changes for paper boy start
-->
 .7 USD</td><td class="store">US</td><td
class="store">418239336</td></tr><tr class="odd"><td
class="first-columnartist">A Dog and Pony Show</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">4</td><td class="price">1.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">424092548</td></tr><tr class="even"><td
class="first-columnartist">Out of His Head</td><td
class="song-name">Transformers Prime</td><td class="song-type">TE</td><td
class="units">4</td><td class="price">1.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">436096832</td></tr><tr class="odd"><td
class="first-columnartist">Party of One</td><td class="song-name">My Little
Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">4</td><td class="price">1.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 1.4 USD</td><td class="store">US</td><td
class="store">431200951</td></tr><tr class="even"><td
class="first-columnartist">Look Before You Sleep</td><td
class="song-name">My Little Pony: Friendship Is Magic</td><td
class="song-type">TE</td><td class="units">4</td><td class="price">2.99
USD</td><td class="royalty">   <!-- Changes for paper boy start
-->
 2.1 USD</td><td class="store">US</td><td
class="store">418268083</td></tr><tr class="odd"><td
class="first-columnartist">Applebuck Season</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TER</td><td
class="units">4</td><td class="price">.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 .7 USD</td><td class="store">US</td><td
class="store">418246013</td></tr><tr class="even"><td
class="first-columnartist">Fall Weather Friends</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">4</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">418287680</td></tr><tr class="odd"><td
class="first-columnartist">The Cutie Mark Chronicles</td><td
class="song-name">My Little Pony: Friendship Is Magic</td><td
class="song-type">TER</td><td class="units">4</td><td class="price">.99
USD</td><td class="royalty">   <!-- Changes for paper boy start
-->
 .7 USD</td><td class="store">US</td><td
class="store">429589111</td></tr><tr class="even"><td
class="first-columnartist">Bridle Gossip</td><td class="song-name">My Little
Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">4</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">418269582</td></tr><tr class="odd"><td
class="first-columnartist">Boast Busters</td><td class="song-name">My Little
Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">3</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">418291057</td></tr><tr class="even"><td
class="first-columnartist">The Best Night Ever</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TER</td><td
class="units">3</td><td class="price">.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 .7 USD</td><td class="store">US</td><td
class="store">436091312</td></tr><tr class="odd"><td
class="first-columnartist">Applebuck Season</td><td class="song-name">My
Little Pony: Friendship Is Magic</td><td class="song-type">TE</td><td
class="units">3</td><td class="price">2.99 USD</td><td
class="royalty">   <!-- Changes for paper boy start -->
 2.1 USD</td><td class="store">US</td><td
class="store">418246013</td></tr></tbody></table></span> <meta
name="Ajax-Update-Ids"
content="theForm:optInPasskeyPanel,theForm:optInPanel,theForm:downloadLabel3,the
Form:slsERRtable,theForm:downloadLabel1"
/><span id="ajax-update-ids"><input type="hidden" name="jsf_sequence"
value="1" /><input type="hidden" name="javax.faces.ViewState"
id="javax.faces.ViewState" value="j_id18927:j_id18932" /></span><meta
id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>

I will upgrade python.

Original comment by icdip...@gmail.com on 1 Jun 2011 at 1:25

GoogleCodeExporter commented 8 years ago
> Although the note states this, I was able to download the gz file earlier

So the script was working for you before?  When did it stop working?  May 24?

Thanks for the HTML.  It has content I've never seen before.  I see references 
to songs.  Are you using the script to download iTC reports for music or iOS 
apps?

-KIRBY

Original comment by ki...@whitepeaksoftware.com on 1 Jun 2011 at 2:48

GoogleCodeExporter commented 8 years ago
The script never worked.  I was able to manually download the gzip file.  I was 
wondering if anyone recently has been able to download the files using your 
script and if they had to do any modifications to have it work i.e. this week?
- ILEANA

Original comment by icdip...@gmail.com on 24 Jun 2011 at 6:03

GoogleCodeExporter commented 8 years ago
I just tried downloading a sales report for my app and the script is not working

python appdailysales.py -a aaaa@aaaaaaa.com -p aaaaaaa -D 08/14/2011 -u --debug 
-v
-- begin script --
Signing into iTunes Connect web site.
Accessing Sales and Trends reporting web site.
viewState:  j_id444:j_id445
defaultVendorPage:  j_id_jsp_138480587_2
ajaxName:  j_id_jsp_138480587_0
Accessing sales report web page.
viewState:  j_id448:j_id449
dailyName:  theForm:j_id_jsp_6085546_6
ajaxName:  theForm:j_id_js_208554_2
dateName:  theForm:j_id_js_808554_8
selectName: theForm:j_id_js_3208554_32
dateListAvailableDays:  ['08/14/2011', '08/13/2011', '08/12/2011', 
'08/11/2011', '08/10/2011', '08/09/2011', '08/08/2011', '08/07/2011', 
'08/06/2011', '08/05/2011', '08/04/2011', '08/03/2011', '08/02/2011', 
'08/01/2011']
dateListAvailableWeeks:  ['08/14/2011', '08/07/2011', '07/31/2011', 
'07/24/2011', '07/17/2011', '07/10/2011', '07/03/2011', '06/26/2011', 
'06/19/2011', '06/12/2011', '06/05/2011', '05/29/2011', '05/22/2011']
reportDates:  [datetime.date(2011, 8, 14)]
Downloading daily sales reports.
Downloading report for:  08/14/2011
Server: Apache-Coyote/1.1
X-Powered-By: JSF/1.2
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Transfer-Encoding: chunked
Date: Tue, 16 Aug 2011 09:17:52 GMT

08/14/2011 report is not available - try again later.
1 report(s) not available - try again later

Original comment by alejan...@wattproject.com on 16 Aug 2011 at 9:30

GoogleCodeExporter commented 8 years ago
I'm having the same issue today, on an installation that has been working 
flawlessly until now, so I wonder if it means something has changed at the far 
end.

My temp.html reads...

<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><script type="text/javascript" 
src="/a4j.res/org.ajax4jsf.framework.ajax.AjaxScript.faces">
</script><meta http-equiv="content-type" content="text/html; charset=utf-8" 
/><title>Sales and Trends</title><link type="text/css" rel="stylesheet" 
href="css/global.css" /><script type="text/javascript" 
src="javascript/apple.js">
</script><script type="text/javascript" src="javascript/make_seven.js">
</script><script type="text/javascript" src="javascript/vendor_select.js">
</script><script type="text/javascript" src="scripts/sales.js">
</script></head><body id="sales" 
onload="checkDateType();setupNew();onLoad();checkDownldAllignForApp();checkWeekl
y();toggle_click_limiter(false);"><!-- Session State Fix -->
<!-- Changes for Opt-in Reports -->
<div id="click-limiter"></div><span id="theForm:optInPasskeyPanel"></span><span 
id="theForm:optInPanel"></span> <script type="text/javascript" 
language="Javascript">//<![CDATA[
function dpf(f) {var adp = f.adp;if (adp != null) {for (var i = 0;i < 
adp.length;i++) {f.removeChild(adp[i]);}}};function apf(f, pvp) {var adp = new 
Array();f.adp = adp;var ps = pvp.split(',');for (var i = 0,ii = 0;i < 
ps.length;i++,ii++) {var p = document.createElement("input");p.type = 
"hidden";p.name = ps[i];p.value = ps[i + 1];f.appendChild(p);adp[ii] = p;i += 
1;}};function jsfcljs(f, pvp, t) {apf(f, pvp);if (t) {f.target = 
t;}f.submit();dpf(f);};
//]]>
</script><a id="theForm:downloadLabel2" href="#" 
style="text-decoration:none;color:#FFFFFF;" onclick="if(typeof jsfcljs == 
'function'){jsfcljs(document.forms['theForm'],'theForm:downloadLabel2,theForm:do
wnloadLabel2','');}return false" class="button">Sales Report</a><span 
id="theForm:slsERRtable"><table id="theForm:salesTable" class="pre-orders" 
cellpadding="0" cellspacing="0"><thead><tr><th scope="col"></th><th 
scope="col"></th><th scope="col"></th><th scope="col"></th><th 
scope="col"></th><th scope="col"></th><th scope="col"></th><th 
scope="col"></th></tr></thead><tbody></tbody></table></span> <meta 
name="Ajax-Update-Ids" 
content="theForm:optInPasskeyPanel,theForm:optInPanel,theForm:slsERRtable,theFor
m:downloadLabel2" /><span id="ajax-update-ids"><input type="hidden" 
name="jsf_sequence" value="1" /><input type="hidden" 
name="javax.faces.ViewState" id="javax.faces.ViewState" 
value="j_id18720:j_id18723" /></span><meta id="Ajax-Response" 
name="Ajax-Response" content="true" /></body></html>

Original comment by iainsbar...@gmail.com on 16 Aug 2011 at 5:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi,

The script worked perfectly for me until this Saturday, August 13th.  I am 
using the latest version of the script and using it to get information about 
iOS apps.

Thanks!
ttyl
Dima

Original comment by ddbrod...@gmail.com on 16 Aug 2011 at 6:08

GoogleCodeExporter commented 8 years ago
Hi Guys,
Same for me, If anybody knows something please let me know. It's a pain in the 
ass download them manually.

Thx!!!!

Gabo.

Original comment by gaugusto...@sgn.com on 16 Aug 2011 at 7:12

GoogleCodeExporter commented 8 years ago
Hi All,

It looks like Apple has made changes to the web site. It was a good run. Last 
change that effected the script was back in November 2010. 

I'll do my best to get a fix out soon, but the timing this week isn't good for 
me. So no promises.

-KIRBY

Original comment by whitepea...@gmail.com on 16 Aug 2011 at 7:30

GoogleCodeExporter commented 8 years ago
I was able to get it working by adding the following 4 parameters to every POST 
to sales.faces:

'theForm:optInVar':'A',  'theForm:dateType':'D', 
'theForm:optInVarRender':'false', 'theForm:wklyBool':'false',

z

Original comment by zms...@gmail.com on 17 Aug 2011 at 5:37

GoogleCodeExporter commented 8 years ago
Thanks Z!!  You saved me time.  The fix works perfectly.  I updated the script 
and posted version 2.8 to the download area.

-KIRBY

Original comment by whitepea...@gmail.com on 17 Aug 2011 at 11:37

GoogleCodeExporter commented 8 years ago

Original comment by whitepea...@gmail.com on 17 Aug 2011 at 11:40