kirbyt / appdailysales Goto Github PK
View Code? Open in Web Editor NEWApp Daily Sales is a Python script that downloads daily sales report files from the iTunes Connect web site.
App Daily Sales is a Python script that downloads daily sales report files from the iTunes Connect web site.
Interestingly, my daily call to appdailysales.py resulted in apple's weekly report being downloaded (starts with 'S_W' instead of 'S_D'). Nothing has changed in my cron job, so I'm assuming Apple is mucking with their HTML.
When I try to use the script like this:
appdailysales.py -a USERNAME -p PASSWORD -d 7 -f "%Y-%m-%d.txt.gz" -u -n
It produces this bunch of error message:
Traceback (most recent call last):
File "./kirbyt-appdailysales-eea5ce6/appdailysales.py", line 540, in <module>
sys.exit(main())
File "./kirbyt-appdailysales-eea5ce6/appdailysales.py", line 533, in main
downloadFile(options)
File "./kirbyt-appdailysales-eea5ce6/appdailysales.py", line 483, in downloadFile
os.makedirs(fileDirectory)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 2] No such file or directory: ''
I don't speak Python much but as far as I can see the issue lies in the fact that in the following line (479 in the current version) fileDirectory
becomes an empty string. This path does not exist, neither can it be created.
fileDirectory = os.path.dirname(filename)
I tried commenting out the directory check and it works fine. When I add -o "./"
to the script call, it also works perfectly.
My guess is that it's just a missing "is empty" check on fileDirectory
, but I may be wrong.
Did iTunes Connect change again?
the login page has changed, and unfortunatly the script is not working anymore since a few days. can you take a look ?
best regards,
Anthony
Since last iTunes Connect Update the script doesn't work anymore. Someone here who's good at python
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.