PhilosChen / appdailysales

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

Anyone else getting "Unable To Find Sales And Trends URL"? #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hey,

I've been experiencing some issues with the script at the moment, has anyone 
else?
The "Unable To Find Sales And Trends URL" error keeps showing

I've waited for about 10 hours but the error still happens

Maybe change to iTunesconnect?

Thanks

Original issue reported on code.google.com by ad...@vmlweb.co.uk on 28 Oct 2010 at 11:35

GoogleCodeExporter commented 8 years ago
Yep, I getting the error as of today. Haven't had time to research the issue 
though. Will get to it soon.

Original comment by kirbyt.w...@gmail.com on 29 Oct 2010 at 2:28

GoogleCodeExporter commented 8 years ago
Its iTC that is unavailable for maintenance. And redirecting to:
https://itunesconnect.apple.com/iTCUnavailable.html

Original comment by Bjorn.Em...@gmail.com on 29 Oct 2010 at 6:47

GoogleCodeExporter commented 8 years ago
iTC is back online and it's still not working

Original comment by ad...@vmlweb.co.uk on 29 Oct 2010 at 10:25

GoogleCodeExporter commented 8 years ago
the sales url has changed.

this fix worked for me:

Index: appdailysales.py
===================================================================
--- appdailysales.py    (revision 63)
+++ appdailysales.py    (working copy)
@@ -261,22 +261,7 @@
     if options.verbose == True:
         print 'Accessing Sales and Trends reporting web site.'

-    try:
-        match = 
re.findall('/WebObjects/iTunesConnect.woa/wo/(.*?).0.9.7.2.9.1.0.0.3', html)
-        backtrackedId = match[0]
-    except:
-        if options.verbose == True:
-            print 'Unable to find the Sales and Trends URL.'
-            raise
-        else:
-            raise ITCException, 'Unable to find the Sales and Trends URL.'
-
-    # Click through to the Sales and Trends.
-    salesAndTrendsPath = 
'/WebObjects/iTunesConnect.woa/wo/%s.0.9.7.2.9.1.0.0.3'
-    urlSalesAndTrends = urlITCBase % salesAndTrendsPath % backtrackedId
-    if options.debug == True:
-        print 'Sales and Trends URL: ', urlSalesAndTrends
-
+    urlSalesAndTrends = 'https://reportingitc.apple.com/'
     html = readHtml(opener, urlSalesAndTrends, options=options)

     # We're at the vendor default page. Might need additional work if your account

Original comment by ferenc.v...@gmail.com on 29 Oct 2010 at 10:59

GoogleCodeExporter commented 8 years ago
That's wierd it still doesn't work for me with this change
I have made some modfications of my own to log it to a MySQL DB, could that be 
the problem?

Heres my version:
http://www.heypasteit.com/clip/ON6

Original comment by ad...@vmlweb.co.uk on 29 Oct 2010 at 12:15

GoogleCodeExporter commented 8 years ago
all rows starting with - should be removed.
then add the extra line starting with + 

urlSalesAndTrends = 'https://reportingitc.apple.com/'

also i would suggest to put your sql part into a separate script to avoid 
merging

sometimes the script fails the first time it's run then it works the second 
time.
well, this is strange :)

Original comment by ferenc.v...@gmail.com on 29 Oct 2010 at 1:41

GoogleCodeExporter commented 8 years ago
ah sorry didn't understand the -
thanks works now

Original comment by ad...@vmlweb.co.uk on 29 Oct 2010 at 1:47

GoogleCodeExporter commented 8 years ago
Thanks, ferenc. Works for me with that change, too. I was worried that the URL 
change meant a complete system change on Apple's part. :)

Original comment by kf6nvr on 29 Oct 2010 at 9:34

GoogleCodeExporter commented 8 years ago
Thanks ferenc.vehmann, your fix works for me too.

Original comment by jonas.w...@gmail.com on 31 Oct 2010 at 12:45

GoogleCodeExporter commented 8 years ago
Hi ferenc.vehmann,

Thanks for posting the fix.  I updated the trunk with the latest fix and added 
a new download file.

Apologies to all for the delay updating svn.

Thanks again,
-KIRBY

Original comment by kirbyt.w...@gmail.com on 31 Oct 2010 at 5:25