cryptocompsdk.news package¶
Submodules¶
cryptocompsdk.news.api module¶
cryptocompsdk.news.parse module¶
-
class
cryptocompsdk.news.parse.
NewsData
(type, message, promoted, data, rate_limit, has_warning)[source]¶ Bases:
cryptocompsdk.response.ResponseAPIBase
-
__init__
(type, message, promoted, data, rate_limit, has_warning)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
data
: Optional[List[cryptocompsdk.news.parse.NewsRecord]]¶
-
download_articles
(out_folder='articles', num_threads=20, restart=False)[source]¶ Download the HTML of all news articles in this collection and save to files in a folder
-
promoted
: Optional[List[Any]]¶
-
rate_limit
: Optional[cryptocompsdk.news.parse.RateLimit]¶
-
-
class
cryptocompsdk.news.parse.
NewsRecord
(id, guid, published_on, imageurl, title, url, source, body, tags, categories, upvotes, downvotes, lang, source_info)[source]¶ Bases:
object
-
__init__
(id, guid, published_on, imageurl, title, url, source, body, tags, categories, upvotes, downvotes, lang, source_info)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
source_info
: Optional[cryptocompsdk.news.parse.SourceInfo]¶
-