Steam Abstract Models¶
Class Reference¶
-
class
Steam.SteamNewsPost(**kwargs)¶ Helper class for Steam News Posts
-
gid(str)¶ Global post ID
-
title(str)¶ News post title
-
url(yarl.URL)¶ News post permalink
-
is_external_url(bool)¶ External URL flag
News post author
-
contents(str)¶ News post contents
Note
Contents are truncated by the API call based on the
maxlengthparameterNote
URLs are stripped from
contenton object instantiation
-
feedlabel(str)¶ News feed label
-
date(datetime)¶ Post date (UTC)
-
feedname(str)¶ News feed name
[1] (1, 2) See Steam’s API Documentation for additional details -
static
getnewsforapp(appID: int=582010, count: int=10, maxlength: int=300, format: str='json', **kwargs) → typing.List¶ This function is blocking
Return a list of
mhw.SteamNewsPostobjects for the specifiedappIDcountspecifies the number of posts to Returnmaxlengthspecifies the maximum length of the returned contents stringNote
Additional
**kwargsare discarded
-
staticmethod coroutine
asyncgetnewsforapp(appID: int=582010, count: int=10, maxlength: int=300, format: str='json', **kwargs) → typing.List¶ Return a list of
mhw.SteamNewsPostobjects for the specifiedappIDcountspecifies the number of posts to Returnmaxlengthspecifies the maximum length of the returned contents stringNote
Additional
**kwargsare discarded
-