Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/and3rson/nineapi
/ functions
Functions
38 in github.com/and3rson/nineapi
⨍
Functions
38
◇
Types & classes
9
↓ 4 callers
Method
_request
Perform API request. :param method: HTTP method ('GET', 'POST' etc.) :param path: URL to retrieve (e.g. '/v2/post-list')
nineapi/client.py:55
↓ 4 callers
Method
log_in
Attempt to log in. :param username: User login. :param password: User password. :returns: True :rtype: bool
nineapi/client.py:133
↓ 2 callers
Method
get_posts
Fetch posts. :param group: Posts category (defaults to 1) :param type_: Posts type (defaults to 'hot') :param count:
nineapi/client.py:160
↓ 1 callers
Method
_validate_response
Validate the response status. :param response: JSON response dictionary. :returns: True :rtype: bool :raises
nineapi/client.py:114
↓ 1 callers
Function
get_timestamp
Generate timestamp in milliseconds.
nineapi/utils.py:22
↓ 1 callers
Method
post
Returns the associated :class:`Post`.
nineapi/client.py:376
↓ 1 callers
Method
test_log_in_good
(self)
tests.py:21
↓ 1 callers
Method
test_log_in_good
(self)
keyring_tests.py:18
Method
__init__
Create API client instance. :param app_id: Application id (defaults to 'com.ninegag.android.app') :param log_level: Logging
nineapi/client.py:41
Method
__init__
(self, client, props)
nineapi/client.py:245
Method
__init__
(self, client, post, props)
nineapi/client.py:349
Method
__str__
(self)
nineapi/client.py:338
Method
__str__
(self)
nineapi/client.py:407
Method
children
Returns comments that are children for this one.
nineapi/client.py:383
Method
get_media_url
Returns image URL for Photo posts and .WEBM URL for Animated posts.
nineapi/client.py:284
Method
get_media_url
Returns media URL associated with this comment.
nineapi/client.py:396
Method
get_top_comments
Retrieves top comments for this post.
nineapi/client.py:300
Method
id
Post ID.
nineapi/client.py:250
Method
id
Comment ID.
nineapi/client.py:355
Method
is_authorized
Authorization status.
nineapi/client.py:225
Function
md5
Hash string with MD5.
nineapi/utils.py:40
Method
props
Dictionary with post data.
nineapi/client.py:278
Method
props
Dictionary with comment data.
nineapi/client.py:390
Function
random_sha1
Generate random SHA1 string.
nineapi/utils.py:13
Function
random_uuid
Generate random UUID string.
nineapi/utils.py:6
Method
search_posts_by_tag
Fetch posts that match specific tag. :param query: Posts tag :param offset: Offset to start from. :param count: Coun
nineapi/client.py:194
Method
setUp
(self)
tests.py:16
Method
setUp
(self)
keyring_tests.py:13
Function
sign_request
Generate signature for HTTP request.
nineapi/utils.py:29
Method
test_get_posts
(self)
tests.py:28
Method
test_get_posts
(self)
keyring_tests.py:25
Method
test_log_in_bad
(self)
tests.py:25
Method
test_log_in_bad
(self)
keyring_tests.py:22
Method
text
Comment text. Contains GIF url for GIT comments.
nineapi/client.py:362
Method
title
Post title.
nineapi/client.py:257
Method
type
Post type.
nineapi/client.py:271
Method
url
Post url.
nineapi/client.py:264
Method
url
Comment url.
nineapi/client.py:369