GithubHelp home page GithubHelp logo

novitae / apple_userag Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 22 KB

๐Ÿฉ A helper to build Apple User-Agent, using the ipsw.me API

License: GNU General Public License v3.0

Python 100.00%

apple_userag's Introduction

Apple-UserAg

A helper to build Apple User-Agent, using the ipsw.me API.

Installation

pip install git+https://github.com/novitae/apple_userag

And to download the data from ipsw.me, do:

apple_userag update

Usage

After having made sure that you installed the data with the upper command, you can use it as a library, as follows:

>>> import apple_userag
>>>
>>> # Listing the available devices
>>> apple_userag.available_devices()
['iPhone', 'iPod', 'iPad', 'AppleTV', 'Watch', 'AudioAccessory', 'iBridge', 'MacBookPro', 'MacBookAir', 'ADP', 'Macmini', 'iMac', 'Mac', 'VirtualMac']
>>>
>>> # You can take a look at the list of a given device type by doing:
>>> d = apple_userag.devices['iPhone'][0]
>>> d
[AppleDevice(name='iPhone 2G', identifier='iPhone1,1', firmwares=[Firmware(version='3.1.3', buildid='7E18', releasedate=None, uploaddate=datetime.datetime(2010, 1, 22, 1, 53, 8, tzinfo=TzInfo(UTC)), signed=False), ...]
>>> 
>>> d.name, d.identifier
"iPhone 2G", "iPhone1,1"
>>>
>>> # You can choose a random version of off the device, using:
>>> d.random_firmware
Firmware(version='2.0', buildid='5A347', releasedate=None, uploaddate=datetime.datetime(2008, 7, 8, 18, 53, 47, tzinfo=TzInfo(UTC)), signed=False)

apple_userag's People

Contributors

novitae avatar

Watchers

 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.