Documentation

fixitpy.retrieve_media(media_id: int) dict | None

Used to retrieve media from the iFixit API

The returning dictionary contains:

  • media_id (int): ID of the media to retrieve

  • width (int): Original width of the media

  • height (int): Original height of the media

  • sizes (dict): Dictionary of media sizes

Parameters:

media_id (int) – the ID of the media to retrieve

Returns:

media dictionary

Return type:

dict or None

fixitpy.retrieve_guide(guide_id: int) dict | None

Used to retrieve guide from the iFixit API

The returning dictionary contains:

  • title (str): Guide title

  • steps (dict): Guide steps

  • summary (str): Summary of the guide

  • type (str): Type of the guide

  • conclusion (str): Guide conclusion

  • difficulty (str): Guide difficulty

  • introduction (str): Guide introduction

  • image_id (int): ID of main image in Guide

  • guide_id (int): Guide ID

The steps dictionary contains:

  • title (str): Step title

  • text (str): The text of the step

  • image_id (list): List of image IDs the step uses

Parameters:

guide_id (int) – the ID of the guide to retrieve

Returns:

guide dictionary

Return type:

dict or None