김태희

add 주간보고서 1121

Showing 105 changed files with 39 additions and 0 deletions
No preview for this file type
[1117/231736.075:ERROR:process_reader_win.cc(123)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights. (0xc0000022)
[1117/231736.171:ERROR:exception_snapshot_win.cc(99)] thread ID 114892 not found in process
[1117/231736.400:ERROR:process_reader_win.cc(151)] SuspendThread: Access is denied. (0x5)
[1117/231736.402:ERROR:process_reader_win.cc(151)] SuspendThread: Access is denied. (0x5)
[1117/231736.402:ERROR:process_reader_win.cc(151)] SuspendThread: Access is denied. (0x5)
[1117/231736.402:ERROR:process_reader_win.cc(151)] SuspendThread: Access is denied. (0x5)
[1117/231736.402:ERROR:process_reader_win.cc(151)] SuspendThread: Access is denied. (0x5)
[1117/231736.402:ERROR:process_reader_win.cc(123)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights. (0xc0000022)
[1117/231736.403:ERROR:exception_snapshot_win.cc(99)] thread ID 114896 not found in process
from selenium import webdriver
from bs4 import BeautifulSoup as soups
def search_selenium(search_name, search_path, search_limit) :
search_url = "https://www.google.com/search?q=" + str(search_name) + "&hl=ko&tbm=isch"
browser = webdriver.Chrome("./chromedriver")
browser.get(search_url)
image_count = len(browser.find_elements_by_tag_name("img"))
print("로드된 이미지 개수 : ", image_count)
browser.implicitly_wait(2)
for i in range( search_limit ) :
image = browser.find_elements_by_tag_name("img")[i]
screenshot_name="./result01/" + str(i) + ".png"
image.screenshot(screenshot_name)
browser.save_screenshot(screenshot_name)
browser.close()
if __name__ == "__main__" :
search_name = input("검색하고 싶은 키워드 : ")
search_limit = int(input("원하는 이미지 수집 개수 : "))
search_path = "Your Path"
# search_maybe(search_name, search_limit, search_path)
search_selenium(search_name, search_path, search_limit)