Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

[Catgirl] Automate image adding process. #6

Open
1 of 2 tasks
Injabie3 opened this issue May 23, 2017 · 3 comments
Open
1 of 2 tasks

[Catgirl] Automate image adding process. #6

Injabie3 opened this issue May 23, 2017 · 3 comments
Assignees

Comments

@Injabie3
Copy link
Owner

Injabie3 commented May 23, 2017

  • Find method to fetch image from pixiv
  • Lookup AWS S3 API methods.
@Injabie3 Injabie3 self-assigned this May 23, 2017
@Injabie3
Copy link
Owner Author

Injabie3 commented May 7, 2018

Will be using PixivPy3
Fetched json for a single illustration looks like the following:

{
	'illust': {
		'is_muted': False,
		'meta_pages': [],
		'is_bookmarked': False,
		'create_date': 'some datetime here',
		'total_comments': 10,
		'title': 'picturename',
		'caption': '',
		'user': {
			'account': 'sirakosei',
			'id': 12345678,
			'profile_image_urls': {
				'medium': 'someurlhere'
			},
			'name': 'artist name',
			'is_followed': False
		},
		'image_urls': {
			'square_medium': 'someurlhere',
			'medium': 'someurlhere',
			'large': 'someurlhere'
		},
		'meta_single_page': {
			'original_image_url': 'someurlhere'
		},
		'restrict': 0,
		'height': 1658,
		'sanity_level': 4,
		'total_view': 5585,
		'tags': [{
				'name': 'tagname'
			}, {
				'name': 'tagname'
			}
		],
		'type': 'illust',
		'series': None,
		'total_bookmarks': 993,
		'tools': [],
		'width': 1000,
		'page_count': 1,
		'id': 1234567,
		'visible': True
	}
}

@Injabie3
Copy link
Owner Author

Injabie3 commented May 7, 2018

Fetched json for a manga illustration looks something like the following:

{
	'illust': {
		'tags': [{
				'name': 'ベルちゃん'
			}, {
				'name': 'ベルちゃん(アズールレーン)'
			}, {
				'name': 'アズールレーン'
			}, {
				'name': 'ベルファスト(アズールレーン)'
			}, {
				'name': 'ベルファスト'
			}
		],
		'type': 'illust',
		'restrict': 0,
		'image_urls': {
			'large': '..._p0_master1200.jpg',
			'medium': '..._p0_master1200.jpg',
			'square_medium': '..._p0_square1200.jpg'
		},
		'create_date': 'datetime',
		'is_muted': False,
		'caption': '',
		'series': None,
		'height': 3197,
		'id': 1234567,
		'total_view': 975,
		'visible': True,
		'total_bookmarks': 63,
		'meta_pages': [{
				'image_urls': {
					'large': '..._p0_master1200.jpg',
					'original': '..._p0.jpg',
					'medium': '..._p0_master1200.jpg',
					'square_medium': '..._p0_square1200.jpg'
				}
			}, {
				'image_urls': {
					'large': '..._p1_master1200.jpg',
					'original': '..._p1.jpg',
					'medium': '..._p1_master1200.jpg',
					'square_medium': '..._p1_square1200.jpg'
				}
			}
		],
		'meta_single_page': {},
		'sanity_level': 2,
		'title': 'ベルファスト',
		'page_count': 2,
		'width': 2480,
		'total_comments': 2,
		'is_bookmarked': False,
		'user': {
			'name': 'accountname',
			'profile_image_urls': {
				'medium': '....jpg'
			},
			'account': 'accountname',
			'is_followed': False,
			'id': 1234567
		},
		'tools': ['SAI']
	}
}

@Injabie3
Copy link
Owner Author

Maybe also look at this: https://github.com/mikf/gallery-dl

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant