Enhance user features: mylists, series, and activity#63
Open
Shi-553 wants to merge 10 commits intoniconicolibs:mainfrom
Open
Enhance user features: mylists, series, and activity#63Shi-553 wants to merge 10 commits intoniconicolibs:mainfrom
Shi-553 wants to merge 10 commits intoniconicolibs:mainfrom
Conversation
added 10 commits
August 6, 2025 17:54
- Add user follow/unfollow functionality - Add mylist management (create, add, remove, get) - Add series functionality - Add following mylists and tags - Add feed activities for followed users Includes PR4 user features only, excluding recommendation system and like features
…/niconico.py into pr/user-features-mylists-follows
…dations features.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several new features and improvements to the NicoNico Python client, focusing on user interactions, mylist management, and activity/feed retrieval. The main changes include new API methods for following/unfollowing users, enhanced mylist operations (such as adding/removing items and creating lists), support for fetching user activities and feeds, and improved data modeling for these features.
User interaction and following features:
follow_userandunfollow_usermethods toUserClient, enabling users to follow or unfollow other users via the NicoNico API. This required the addition of a genericdeletemethod to the HTTP client for DELETE requests. [1] [2]Mylist management enhancements:
UserClientfor mylist operations:get_own_mylist,add_mylist_item,remove_mylist_items, andcreate_mylist, allowing users to fetch, modify, and create mylists programmatically. Corresponding data models such asCreateMylistDatawere added. [1] [2] [3]Feed and activity retrieval:
get_own_following_mylists,get_own_following_tags, andget_following_activities, along with new data models for feed and activity responses. [1] [2]Data model improvements and fixes:
Field(..., alias="sampleItems")inUserMylistItemand defaulting optional fields inSeriesOwner. [1] [2]Search API improvement:
search_liststo accept asort_orderparameter, allowing users to specify sort direction when searching lists. [1] [2] [3]