{
	"1": {
		"0": {
			"unit_index": 0,
			"line_task_name": "CNN_BREAKING_NEWS_1"
		},
		"1": {
			"unit_index": 1,
			"combo_search_site": "https://edition.cnn.com/asia",
			"check_auto_paste": false
		},
		"2": {
			"unit_index": 2,
			"line_filter_type": 0,
			"combo_filter_tag": "div",
			"combo_filter_attr": "data-analytics",
			"combo_filter_op": "EQ",
			"combo_filter_item": "Asia_grid-small_article_"
		},
		"3": {
			"unit_index": 3,
			"line_filter_type": 1,
			"combo_filter_tag": "a",
			"combo_filter_attr": "href",
			"combo_filter_op": "LIKE",
			"combo_filter_item": "index.html"
		},
		"4": {
			"unit_index": 11,
			"plain_scripts": "# 검색을 위해 사용할 키워드 목록\nkeyword_list = ['Korea', 'Indonesia']\nkeyword_list = [keyword.lower() for keyword in keyword_list]\n\n# 기존 추출된 데이터 읽기\nline_task_name = u0.ID['line_task_name']\nfile_name = '@OPATH' + '\\\\' + line_task_name + '.csv'\n\ncsv_title_list = list()\ncsv_df = pd.DataFrame(columns=['create_date', 'url', 'title', 'body'])\nif os.path.exists(file_name):\n\tcsv_df = pd.read_csv(file_name, sep='\\t')\n\tcsv_title_list = csv_df['title'].to_list()\n\nprint('기존(csv)건수:', len(csv_title_list))\n",
			"dynamic_plain_scripts_vscroll": 10
		},
		"5": {
			"unit_index": 11,
			"plain_scripts": "# 엘러먼트상에서 검색어의 조건에 맞는 기사 타이틀 추출\narticle_dict = dict()\nsatisfied_title = False\nfor ii, element in enumerate(reversed(list(u3.el))):\n\ttitle = element.text.replace('\\t', '    ').strip()\n\tif len(title) <= 0: \n\t\tu3.el.remove(element)\n\t\tcontinue\n\n\t# 검색어 키워드를 가지고 있는 얼러먼트 찾기\n\tsatisfied_title = False\n\tfor keyword in u4.keyword_list:\n\t\tif title.lower().find(keyword) >= 0:\n\t\t\tsatisfied_title = True\n\n\t# 중복된 엘러먼트 재거\n\turl = element.get_attribute('href')\n\tif satisfied_title and url not in list(article_dict.keys()) and title not in u4.csv_title_list:\n\t\tarticle_dict[url] = title\n\telse:\n\t\tu3.el.remove(element)\n\nprint('신규건수:', len(u3.el), satisfied_title)\n",
			"dynamic_plain_scripts_vscroll": 17
		},
		"6": {
			"unit_index": 11,
			"plain_scripts": "if len(u3.el) > 0:\n\t@CB= u3.el[0].get_attribute('href')\n\t@BROWSER.execute_script(\"window.open();\")\n\t@BROWSER.switch_to_window(@BROWSER.window_handles[-1])\n\tu3.el.pop(0)\nelse:\n\t@CURNO = 22\n\nprint('남은건수:', len(u3.el), 'cur_no:', @CURNO)",
			"dynamic_plain_scripts_vscroll": 6
		},
		"7": {
			"unit_index": 1,
			"combo_search_site": "https://edition.cnn.com/2022/10/20/asia/indonesia-cough-syrup-ban-child-deaths-intl-hnk/index.html",
			"check_auto_paste": true
		},
		"8": {
			"unit_index": 11,
			"plain_scripts": "# 기사 내용 추출\narticle_body = str()\nelements= @BROWSER.find_elements_by_class_name('article__content')\nif len(elements) > 0:\n\tarticle_body = elements[0].text.replace('\\t', '    ')\n",
			"dynamic_plain_scripts_vscroll": 3
		},
		"9": {
			"unit_index": 11,
			"plain_scripts": "# 날자, 타이틀, 본문을 csv에 저장\narticle_url = @CB\narticle_title = u5.article_dict.get(article_url, '')\ndata_list = [datetime.now().strftime('%Y-%m-%d %H:%M:%S'), article_url, article_title, u8.article_body]\nu4.csv_df.loc[len(u4.csv_df)] = data_list\nu4.csv_df.to_csv(u4.file_name, sep='\\t', index=False)\n",
			"dynamic_plain_scripts_vscroll": 5
		},
		"10": {
			"unit_index": 9,
			"line_time_break": "2",
			"line_time_script": "# 네이버-클리커 카페에 기사 올리기",
			"check_endof_task": false
		},
		"11": {
			"unit_index": 1,
			"combo_search_site": "https://cafe.naver.com/ca-fe/cafes/30664480/menus/5/articles/write?boardType=L",
			"check_auto_paste": false
		},
		"12": {
			"unit_index": 2,
			"line_filter_type": 0,
			"combo_filter_tag": "textarea",
			"combo_filter_attr": "class",
			"combo_filter_op": "EQ",
			"combo_filter_item": "textarea_input"
		},
		"13": {
			"unit_index": 11,
			"plain_scripts": "@CB = u9.article_title\n",
			"dynamic_plain_scripts_vscroll": 0
		},
		"14": {
			"unit_index": 4,
			"check_auto_peste": true,
			"plain_keywords": "Indonesia bans sale of all cough syrups after 99 child deaths",
			"combo_keyword_type": "한번에 모두",
			"general_unit_widget_height": 100,
			"general_plain_keywords_height": 56
		},
		"15": {
			"unit_index": 2,
			"line_filter_type": 0,
			"combo_filter_tag": "div",
			"combo_filter_attr": "data-a11y-title",
			"combo_filter_op": "EQ",
			"combo_filter_item": "본문"
		},
		"16": {
			"unit_index": 11,
			"plain_scripts": "@CB = u8.article_body",
			"dynamic_plain_scripts_vscroll": 0
		},
		"17": {
			"unit_index": 4,
			"check_auto_peste": true,
			"plain_keywords": "Jakarta, Indonesia\nCNN\n — \nIndonesia has halted the sale of all syrup and liquid medicines following the deaths of nearly 100 children and an unexplained spike in cases of acute kidney injuries.\nThe ban, announced by the country’s Health Ministry on Wednesday, will remain until authorities complete an investigation into unregistered medical syrups suspected of containing toxic ingredients.\nHealth Ministry spokesperson Mohammad Syahril said 99 deaths and 206 cases of acute kidney injuries in children, mostly under the age of 6, were being investigated.\nAd Feedback\n“As a precaution, the ministry has asked health workers in health facilities not to prescribe liquid medicine or syrup temporarily,” he said. “We also ask that drug stores temporarily stop all sales of non-prescription liquid medicine or syrup until our investigations are completed.”\nThe ban comes after the World Health Organization (WHO) linked four Indian-made cough syrups to the deaths of up to 70 children suffering acute kidney failure in The Gambia, West Africa. Earlier this month Indian authorities shut down a factory in New Delhi where the medicines were made.\nWHO suspects that four of the syrups made by Maiden Pharmaceuticals Limited – Promethazine oral solution, Kofexmalin baby cough syrup, Makoff baby cough syrup and Magrip N cold syrup – contained “unacceptable amounts” of chemicals that could damage the brains, lungs, livers and kidneys of those who take them.\nADVERTISEMENT\nAd Feedback\nChild deaths in Gambia linked to cough syrups made in India, says WHO\nThe syrups being used in The Gambia were not available in Indonesia, according to the Southeast Asian country’s food and drugs agency.\nHowever, on Thursday, Indonesian Health Minister Budi Gunadi Sadikin said ethylene glycol and diethylene glycol – which are more usually found in products like antifreeze, paints, plastics and cosmetics – had been detected in syrups found in the homes of some child patients.\n“(The chemicals) should not have been present,” Budi said.\nHe added that the number of acute kidney failure cases could be higher than reported and his ministry was taking a conservative approach by banning the sale of all syrups.",
			"combo_keyword_type": "한번에 모두",
			"general_unit_widget_height": 100,
			"general_plain_keywords_height": 56
		},
		"18": {
			"unit_index": 2,
			"line_filter_type": 0,
			"combo_filter_tag": "a",
			"combo_filter_attr": "class",
			"combo_filter_op": "EQ",
			"combo_filter_item": "BaseButton BaseButton--skinGreen size_default"
		},
		"19": {
			"unit_index": 5,
			"combo_key_click_key": "Mouse.CLICK",
			"line_offset_xpos": "0",
			"line_offset_ypos": "0",
			"line_key_wait": "2",
			"line_key_repeat": "1"
		},
		"20": {
			"unit_index": 5,
			"combo_key_click_key": "Keys.Backward",
			"line_offset_xpos": "0",
			"line_offset_ypos": "0",
			"line_key_wait": "1",
			"line_key_repeat": "1"
		},
		"21": {
			"unit_index": 9,
			"line_time_break": "1",
			"line_time_script": "# 다음 기사가 있는 경우 u3으로 점프",
			"check_endof_task": false
		},
		"22": {
			"unit_index": 10,
			"line_left_side": "len(u3.el)",
			"combo_operator": ">",
			"line_rigt_side": "0",
			"line_jump_number": "6",
			"line_jump_total": "9999"
		},
		"23": {
			"unit_index": 9,
			"line_time_break": "10",
			"line_time_script": "# 레시피의 끝",
			"check_endof_task": true
		},
		"24": {
			"unit_index": 11,
			"plain_scripts": "print(u9.article_title)",
			"dynamic_plain_scripts_vscroll": 1
		}
	}
}