<commit_before>from lib.cls_crawl import PixivHackLib

if __name__ == '__main__':
	print('Enter PHPSESSID:')
	PHPSESSID = raw_input()
	print('Enter keyword:')
	key_word = raw_input()
	print('Enter minimum ratings:')
	min_ratings = raw_input()
	print('Enter maximum number of illustrations to download:')
	max_pics = raw_input()
	print('Download manga? (Y/n)')
	download_manga_str = raw_input()
	if (download_manga_str == 'Y' or download_manga_str == 'y'):
		print('Will download manga.')
		download_manga = True
	else:
		print('Will not download manga.')
		download_manga = False
	lib = PixivHackLib()
	lib.session_id = PHPSESSID
	lib.config('kancolle', int(min_ratings), int(max_pics), download_manga)
	lib.crawl()<commit_msg>Fix bug: key_word not passed<commit_after>from lib.cls_crawl import PixivHackLib

if __name__ == '__main__':
	print('Enter PHPSESSID:')
	PHPSESSID = raw_input()
	print('Enter keyword:')
	key_word = raw_input()
	print('Enter minimum ratings:')
	min_ratings = raw_input()
	print('Enter maximum number of illustrations to download:')
	max_pics = raw_input()
	print('Download manga? (Y/n)')
	download_manga_str = raw_input()
	if (download_manga_str == 'Y' or download_manga_str == 'y'):
		print('Will download manga.')
		download_manga = True
	else:
		print('Will not download manga.')
		download_manga = False
	lib = PixivHackLib()
	lib.session_id = PHPSESSID
	lib.config(key_word, int(min_ratings), int(max_pics), download_manga)
	lib.crawl()
{'fraction_non_alphanumeric': 0.1301976823449216, 'fraction_numerical': 0.0, 'mean_word_length': 5.892018779342723, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1819571', 'n_tokens_mistral': 563, 'n_tokens_neox': 538, 'n_words': 125}