Last active
February 2, 2021 02:35
-
-
Save eggplants/8bd70f87061a54c4285ea8c68430a0f2 to your computer and use it in GitHub Desktop.
pixivpyの関数コメント翻訳
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
| class AppPixivAPI(BasePixivAPI): | |
| # ページパラメータ(1, 2,...) | |
| def parse_qs(self, next_url): | |
| # ユーザーの詳細 | |
| def user_detail(self, user_id): | |
| # ユーザー作品リスト | |
| def user_illusts(self, user_id, type='illust'): | |
| # ユーザーブックマーク(コレクション)リスト | |
| def user_bookmarks_illust(self, user_id, restrict='public'): | |
| # フォローユーザーの新しい作品 | |
| # restrict: [public, private] | |
| def illust_follow(self, restrict='public'): | |
| # 作品詳細 (PAPI.worksと同じ) | |
| def illust_detail(self, illust_id): | |
| # 関連作品 | |
| def illust_related(self, illust_id): | |
| # リコメンドされたユーザ(おすすめ欄のやつ) | |
| # content_type: [illust, manga] | |
| def illust_recommended(self, content_type='illust'): | |
| # 作品ランキング | |
| # mode: [day, week, month, day_male, day_female, week_original, week_rookie, day_manga] | |
| # date: '2016-08-01' | |
| # mode(要「R18を表示する」設定): [day_r18, day_male_r18, day_female_r18, week_r18, week_r18g] | |
| def illust_ranking(self, mode='day', date=None, offset=None): | |
| # トレンドタグ (Search - tags) | |
| def trending_tags_illust(self): | |
| # 検索 (Search) | |
| # search_target - 検索対象 | |
| # partial_match_for_tags - タグへの部分一致から | |
| # exact_match_for_tags - タグへの完全一致から | |
| # title_and_caption - タイトルと説明文から | |
| # sort: [date_desc, date_asc] | |
| # duration: [within_last_day, within_last_week, within_last_month] | |
| def search_illust(self, word, search_target='partial_match_for_tags', sort='date_desc', duration=None): | |
| # コレクションの詳細 | |
| def illust_bookmark_detail(self, illust_id): | |
| # ブックマーク(コレクション)への追加 | |
| def illust_bookmark_add(self, illust_id, restrict='public', tags=None): | |
| # ブックマーク(コレクション)の削除 | |
| def illust_bookmark_delete(self, illust_id): | |
| # フォロー中のタグイラスト | |
| def user_bookmark_tags_illust(self, restrict='public', offset=None): | |
| # フォロー中のユーザーリスト | |
| def user_following(self, user_id, restrict='public', offset=None): | |
| # フォロワーのユーザーリスト | |
| def user_follower(self, user_id, filter='for_ios', offset=None): | |
| # フレンド | |
| def user_mypixiv(self, user_id, offset=None): | |
| # ブラックリストユーザ | |
| def user_list(self, user_id, filter='for_ios', offset=None): | |
| # うごいら(gif)の情報を取得 | |
| def ugoira_metadata(self, illust_id): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment