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
maxlength
parameterNote
URLs are stripped from
content
on 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.SteamNewsPost
objects for the specifiedappID
count
specifies the number of posts to Returnmaxlength
specifies the maximum length of the returned contents stringNote
Additional
**kwargs
are discarded
-
staticmethod coroutine
asyncgetnewsforapp
(appID: int=582010, count: int=10, maxlength: int=300, format: str='json', **kwargs) → typing.List¶ Return a list of
mhw.SteamNewsPost
objects for the specifiedappID
count
specifies the number of posts to Returnmaxlength
specifies the maximum length of the returned contents stringNote
Additional
**kwargs
are discarded
-