@@ -26,93 +26,71 @@ def get_auctions(self, page: int = 0) -> dict:
2626 return auctions
2727
2828 def get_player_auctions (self , player_name : str ) -> dict :
29- """
30- Returns a `dict` of all Skyblock auctions from a particular player.
31- """
29+ """Returns a `dict` of all Skyblock auctions from a particular player."""
3230 player_uuid = self .get_uuid (player_name )
3331 api_request = requests .get (f"https://api.hypixel.net/skyblock/auction?key={ self .api_key } &player={ player_uuid } " ).content
3432 player_auctions = json .loads (api_request )
3533 return player_auctions
3634
3735 def get_recently_ended_auctions (self ) -> dict :
38- """
39- Returns a `dict` of all the auctions that have recently ended within 60 seconds.
40- """
36+ """Returns a `dict` of all the auctions that have recently ended within 60 seconds."""
4137 api_request = requests .get ("https://api.hypixel.net/skyblock/auctions_ended" ).content
4238 recently_ended_auctions = json .loads (api_request )
4339 return recently_ended_auctions
4440
4541 def get_news (self ) -> dict :
46- """
47- Returns a `dict` of the latest Skyblock news from Hypixel.
48- """
42+ """Returns a `dict` of the latest Skyblock news from Hypixel."""
4943 api_request = requests .get (f"https://api.hypixel.net/skyblock/news?key={ self .api_key } " ).content
5044 news = json .loads (api_request )
5145 return news
5246
5347 def get_bazaar_data (self ) -> dict :
54- """
55- Returns a `dict` of Skyblock bazaar data.
56- """
48+ """Returns a `dict` of Skyblock bazaar data."""
5749 api_request = requests .get (f"https://api.hypixel.net/skyblock/bazaar?key={ self .api_key } " ).content
5850 bazaar_data = json .loads (api_request )
5951 return bazaar_data
6052
6153 def get_player_profile (self , player_name : str ) -> dict :
62- """
63- Returns a `dict` of profile data on a player.
64- """
54+ """Returns a `dict` of profile data on a player."""
6555 player_uuid = self .get_uuid (player_name )
6656 api_request = requests .get (f"https://api.hypixel.net/skyblock/profiles?key={ self .api_key } &uuid={ player_uuid } " ).content
6757 player_profile_data = json .loads (api_request )
6858 return player_profile_data
6959
7060 def get_collections (self ) -> dict :
71- """
72- Returns a `dict` of information related to Skyblock Collections.
73- """
61+ """Returns a `dict` of information related to Skyblock Collections."""
7462 api_request = requests .get ("https://api.hypixel.net/resources/skyblock/collections" ).content
7563 collections_data = json .loads (api_request )
7664 return collections_data
7765
7866 def get_skills (self ) -> dict :
79- """
80- Returns a `dict` of information related to Skyblock Skills.
81- """
67+ """Returns a `dict` of information related to Skyblock Skills."""
8268 api_request = requests .get ("https://api.hypixel.net/resources/skyblock/skills" ).content
8369 collections_data = json .loads (api_request )
8470 return collections_data
8571
8672 def get_items (self ) -> dict :
87- """
88- Returns a `dict` of information related to Skyblock items.
89- """
73+ """Returns a `dict` of information related to Skyblock items."""
9074 api_request = requests .get ("https://api.hypixel.net/resources/skyblock/items" ).content
9175 items_data = json .loads (api_request )
9276 return items_data
9377
9478 def get_mayor_information (self ) -> dict :
95- """
96- Returns a `dict` of information regarding the current mayor in Skyblock.
97- """
79+ """Returns a `dict` of information regarding the current mayor in Skyblock."""
9880 api_request = requests .get ("https://api.hypixel.net/resources/skyblock/election" ).content
9981 mayor_info = json .loads (api_request )
10082 del mayor_info ["current" ]
10183 return mayor_info
10284
10385 def get_current_election (self ) -> dict :
104- """
105- Returns a `dict` of information regarding the current election in Skyblock.
106- """
86+ """Returns a `dict` of information regarding the current election in Skyblock."""
10787 api_request = requests .get ("https://api.hypixel.net/resources/skyblock/election" ).content
10888 election_info = json .loads (api_request )
10989 del election_info ["mayor" ]
11090 return election_info
11191
11292 def get_bingo_event (self ) -> dict :
113- """
114- Returns a `dict` of information regarding the current bingo event and goals in Skyblock.
115- """
93+ """Returns a `dict` of information regarding the current bingo event and goals in Skyblock."""
11694 api_request = requests .get ("https://api.hypixel.net/resources/skyblock/bingo" ).content
11795 bingo_data = json .loads (api_request )
11896 return bingo_data
0 commit comments