py_niconico_comment package¶
Submodules¶
py_niconico_comment.niconico module¶
-
class
py_niconico_comment.niconico.
NiconicoComments
(username, password, loglevel=50)[source]¶ Bases:
object
-
get_comments
(url, user_id=None, language='en')[source]¶ Get all comment from the giving URL.
Parameters: - url ([str]) – Nicovideo URL e.g. https://www.nicovideo.jp/watch/sm32047026
- user_id ([str], optional) – Filter by user_id. Defaults to None.
- language ([str], optional) – en/jp. Defaults to en.
Returns: List of comment.
Return type: [list]
-
get_list_user
(url, language='en')[source]¶ Get all user who commented on the giving URL.
Parameters: - url ([str]) – Nicovideo URL e.g. https://www.nicovideo.jp/watch/sm32047026
- language ([str], optional) – en/jp. Defaults to en.
Returns: e.g. ‘{ “rbVzlqGMytJmCIimR1dPWvGRE7w”: [ “wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww” ], “1oYUfTHMjDooDge1QKRpu3QeAmk”: [ “wow”, “wwwwwwwwwwww” ] }’
Return type: [dict]
-
is_login
= False¶
-
py_niconico_comment.skeleton module¶
-
py_niconico_comment.skeleton.
main
(args)[source]¶ Main entry point allowing external calls
Parameters: args ([str]) – command line parameter list
-
py_niconico_comment.skeleton.
parse_args
(args)[source]¶ Parse command line parameters
Parameters: args ([str]) – command line parameters as list of strings Returns: command line parameters namespace Return type: argparse.Namespace