A Python wrapper for Yle's Comments API
Reason this release was yanked:
incorrect requirements
Project description
ylecomments v1
Python package for fetching comments from Yle Comments API
POSTing comments is not supported at this time. Support for this is unlikely.
Installation
pip install ylecomments
Example usage
from ylecomments import ylecomments
# Get comments for a specific article
# https://yle.fi/a/74-20023410
article = ylecomments.YleArticle("74-20023410")
comments = article.get_approved_comments()
# Print the first comment
print(comments[0].content)
# Print the comment author's name
print(comments[0].author)
# Print the amount of likes the comment has
print(comments[0].likes)
# Other attributes:
# rejectedAt, children, content, likes, acceptedAt, createdByModerator,
# author, topicExternalId, id, parentId, topCommentId, authenticatedAuthor,
# topicId, createdAt, createdByTrustedCommentAuthor, createdByCommentator,
# isModerationReply
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ylecomments-1.0.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for ylecomments-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a55ddaf13c275bdfc3d184e18546c7882dbada6114e2cfe5b5c10dffef52a71b |
|
MD5 | f7747553c5a2be419bf6b1f976f503c8 |
|
BLAKE2b-256 | 402fc162428b4904c74c74559663affcd9be4e322431ee2e7671adce6f02f5f4 |