Git Product home page Git Product logo

blame-bird's Introduction

blame-bird.py

This Python script tries to figure out which app uses a lot of space and files in the Library/Caches/com.apple.bird folder on your mac.

$ python blame-bird.py
4R6749AYRE.com.pixelmatorteam.pixelmator            0.00MB      1
com.apple.shoebox                                   0.00MB      3
com.apple.TextInput                                 0.00MB      7
iCloud.com.apple.iBooks                             0.00MB      2
57T9237FN3.net.whatsapp.WhatsApp                 6904.66MB    647

Accounted for: 6904MB.  Still unaccounted: 1879MB

If you supply the app name as argument, the script generates a list of related files (uncomment | xargs du -hs to add file sizes).

$ python blame-bird.py com.apple.TextInput # | xargs du -hs
/Users/usr/Library/Caches/com.apple.bird/session/g/C8E6D0A6-46A8-4803-8DDE-451341DD2DBA
/Users/usr/Library/Caches/com.apple.bird/session/g/4DF22D5F-464A-4F11-9CC5-4D9A073E0D59
/Users/usr/Library/Caches/com.apple.bird/session/g/8E0BB4C3-C0C6-495F-AC60-B750971EF17D
/Users/usr/Library/Caches/com.apple.bird/session/g/9F21F0B3-26C3-4066-A11E-7A853DF7E4F5
/Users/usr/Library/Caches/com.apple.bird/session/g/1FB77878-5975-47EC-A062-C7326FBBE496
/Users/usr/Library/Caches/com.apple.bird/session/g/B4B6DCFE-9958-498E-9B53-8C6195A2CF30
/Users/usr/Library/Caches/com.apple.bird/session/g/28456B01-2DDD-4F08-924A-6C1BB8F04464

See this question on Ask Different.

blame-bird's People

Contributors

bwesterb avatar k06a avatar mstarke 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  avatar  avatar  avatar

blame-bird's Issues

No apps in the output

Hi running the latest Sierra release 10.12.2. I get nothing but this:

Accounted for: 0MB. Still unaccounted: 7291MB

I guess no known applications? Could it be something else?

Not working on High Sierra

Been using this script for a while. But once I upgraded to High Sierra I get this error

Traceback (most recent call last):
  File "blame-bird.py", line 85, in <module>
    sys.exit(main())
  File "blame-bird.py", line 43, in main
    'select item_id, zone_rowid from client_unapplied_table'):
sqlite3.OperationalError: no such column: item_id

Error in Python 3+ (easily fixed)

Thanks for a great script!

Just pointing out that on line 64, there is a python 2 style print call:

print '\n'.join(zonefiles[zone_name2id[sys.argv[1]]])

This seems to throw an error with python 3. Changing it to the following works however:

print('\n'.join(zonefiles[zone_name2id[sys.argv[1]]]))

How do I run this? Could you provide step by step instructions in a wiki.

I was trying to run this, but I am not sure I am doing it right.
I also get this error:

File "blame-bird.py", line 85, in
sys.exit(main())
File "blame-bird.py", line 36, in main
for rowid, name in c.execute('select rowid, zone_name from client_zones'):
sqlite3.DatabaseError: malformed database schema (pending_download_docs) - near "WHERE": syntax error

Thanks

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.