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 retrievewidth(int): Original width of the mediaheight(int): Original height of the mediasizes(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 titlesteps(dict): Guide stepssummary(str): Summary of the guidetype(str): Type of the guideconclusion(str): Guide conclusiondifficulty(str): Guide difficultyintroduction(str): Guide introductionimage_id(int): ID of main image in Guideguide_id(int): Guide ID
The
stepsdictionary contains:title(str): Step titletext(str): The text of the stepimage_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