text: '''Scrpae Bing for data'''
  
  from bing_images import bing
  # from webdriver_manager.chrome import ChromeDriverManager
  # from selenium import webdriver
  import chromedriver_autoinstaller
  from pathlib import Path
  
  chromedriver_autoinstaller.install()
  
  
  def fetch_image_urls(query, quantity):
      urls = bing.fetch_image_urls(query, limit=int(quantity/2), file_type='png', filters='+filterui:aspect-square')
      urls += bing.fetch_image_urls(query, limit=int(quantity/2), file_type='jpeg', filters='+filterui:aspect-square')
      return urls
  
  if __name__=="__main__":
      OUTPUT_PATH = Path(__file__).parent.resolve().parent.resolve().parent.resolve().joinpath('data')
  
      bing.download_images('フライパン',
                              1000,
                              output_dir=str(OUTPUT_PATH),
                              pool_size=1000,
                              file_type="")
      # bing.download_images('frying pan',
      #                         20,
      #                         output_dir=str(OUTPUT_PATH),
      #                         pool_size=10,
      #                         file_type="jpeg",
      #                         force_replace=True)