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

author(str)

News post author

contents(str)

News post contents

Note

Contents are truncated by the API call based on the maxlength parameter

Note

URLs are stripped from content on object instantiation

feedlabel(str)

News feed label

date(datetime)

Post date (UTC)

feedname(str)

News feed name

feed_type(int)

News feed type [1]

appid(int)

App ID [1]

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 specified appID

count specifies the number of posts to Return

maxlength specifies the maximum length of the returned contents string

Note

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 specified appID

count specifies the number of posts to Return

maxlength specifies the maximum length of the returned contents string

Note

Additional **kwargs are discarded