Giter Site home page Giter Site logo

appdailysales's People

Contributors

aaarrrggh avatar kirbyt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

appdailysales's Issues

weekly report fetched instead of daily report

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.

Custom filename format results in error

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.

Not working anymore

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.