Giter Site home page Giter Site logo

homebrew-formulae's Introduction

Homebrew-Formulae

Homebrew is known as "The missing package manager for macOS (or Linux)"

As a user, there is a lack of analytics to show the popularity of the packages installed by users using Homebrew which could vastly help users pick out the best packages for their needs. This project is based on that issue and contains python scripts that will grab data from a JSON API, parse out the information needed (using sleep to avoid slamming the server with multiple requests)

time.sleep(r.elapsed.total_seconds())

and then sort out the data based on popularity using a custom key.

Homebrew Home Page Homebrew Packages

Information on files

Data Script

This python script uses the request library to receive data from the JSON API listed on Homebrew and dumps the necessary information in the example package info file.

Sort Script

This python script then sorts the information from the package info file depending on user needs. In this particular script, I look for packages with "video" mentioned and sorted by popularity. One can change the list comprehension

data = [item for item in data if 'video' in item['desc']]

to suit their particular needs.

homebrew-formulae's People

Contributors

usmanziak avatar

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.