[itaku] add 'posts' extractors (#7707)
This commit is contained in:
@@ -36,6 +36,36 @@ __tests__ = (
|
||||
"sections" : ["Fanart/Pokemon"],
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://itaku.ee/profile/piku/posts",
|
||||
"#class" : itaku.ItakuPostsExtractor,
|
||||
"#results" : (
|
||||
"https://itaku.ee/api/media/gallery_imgs/220415_xEFUVR6.png",
|
||||
"https://itaku.ee/api/media/gallery_imgs/220308_J0mgJ24.png",
|
||||
"https://itaku.ee/api/media/gallery_imgs/220511_rdGpatf.png",
|
||||
"https://itaku.ee/api/media/gallery_imgs/220420b_4Lrk6gB.png",
|
||||
),
|
||||
|
||||
"id" : {23762, 16422},
|
||||
"count": {3, 1},
|
||||
"num" : range(1, 3),
|
||||
"date" : "type:datetime",
|
||||
"title": {"Maids", ""},
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://itaku.ee/profile/starluxioad/posts/2008",
|
||||
"#comment" : "posts folder",
|
||||
"#class" : itaku.ItakuPostsExtractor,
|
||||
"#count" : 12,
|
||||
|
||||
"id" : {160779, 160163, 151859, 151851, 150443},
|
||||
"count": {2, 3},
|
||||
"num" : range(1, 3),
|
||||
"date" : "type:datetime",
|
||||
"title": str,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://itaku.ee/profile/piku/stars",
|
||||
"#class" : itaku.ItakuStarsExtractor,
|
||||
@@ -119,6 +149,75 @@ __tests__ = (
|
||||
"#results" : "https://itaku.ee/api/media/gallery_vids/sleepy_af_OY5GHWw.mp4",
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://itaku.ee/posts/16422",
|
||||
"#class" : itaku.ItakuPostExtractor,
|
||||
"#results" : "https://itaku.ee/api/media/gallery_imgs/220420b_4Lrk6gB.png",
|
||||
|
||||
"already_pinned" : None,
|
||||
"can_reshare" : True,
|
||||
"category" : "itaku",
|
||||
"content" : "",
|
||||
"content_warning": "",
|
||||
"count" : 1,
|
||||
"created_by_images": True,
|
||||
"date" : "dt:2022-04-26 16:06:30",
|
||||
"date_added" : "2022-04-26T16:06:30.352389Z",
|
||||
"date_edited" : "2022-05-10T21:32:44.017311Z",
|
||||
"extension" : "png",
|
||||
"file" : {
|
||||
"already_pinned" : None,
|
||||
"animated" : False,
|
||||
"blacklisted" : {
|
||||
"blacklisted_tags": [],
|
||||
"is_blacklisted" : False,
|
||||
},
|
||||
"bookmarked_by_you": False,
|
||||
"content_warning": "",
|
||||
"date" : "dt:2022-04-26 16:06:28",
|
||||
"date_added" : "2022-04-26T16:06:28.272442Z",
|
||||
"date_edited" : "2022-06-30T09:43:58.816192Z",
|
||||
"id" : 77775,
|
||||
"image" : "https://itaku.ee/api/media/gallery_imgs/220420b_4Lrk6gB.png",
|
||||
"image_lg" : "https://itaku.ee/api/media/gallery_imgs/220420b_4Lrk6gB/lg.jpg",
|
||||
"image_xl" : "https://itaku.ee/api/media/gallery_imgs/220420b_4Lrk6gB/lg.jpg",
|
||||
"is_thumbnail_for_video": False,
|
||||
"liked_by_you" : False,
|
||||
"maturity_rating": "SFW",
|
||||
"num_comments" : 0,
|
||||
"num_likes" : range(60, 90),
|
||||
"num_reshares" : 0,
|
||||
"owner" : 16775,
|
||||
"owner_displayname": "Piku",
|
||||
"show_content_warning": False,
|
||||
"title" : "Felicia",
|
||||
"too_mature" : False,
|
||||
"visibility" : "PUBLIC",
|
||||
},
|
||||
"filename" : "220420b_4Lrk6gB",
|
||||
"folders" : [],
|
||||
"id" : 16422,
|
||||
"liked_by_you" : False,
|
||||
"maturity_rating": "SFW",
|
||||
"num" : 1,
|
||||
"num_comments" : 0,
|
||||
"num_images" : 1,
|
||||
"num_likes" : range(40, 70),
|
||||
"num_reshares" : 0,
|
||||
"obj_tags" : 99052,
|
||||
"owner" : 16775,
|
||||
"owner_avatar" : "https://itaku.ee/api/media/profile_pics/av2022r_vKYVywc/md.jpg",
|
||||
"owner_displayname": "Piku",
|
||||
"owner_username" : "piku",
|
||||
"poll" : None,
|
||||
"reshared_by_you": False,
|
||||
"subcategory" : "post",
|
||||
"tags" : [],
|
||||
"title" : "",
|
||||
"too_mature" : False,
|
||||
"visibility" : "PUBLIC",
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://itaku.ee/home/images?tags=cute",
|
||||
"#comment" : "simple search",
|
||||
|
||||
Reference in New Issue
Block a user