






import warnings

from ...utils import logging
from .image_processing_deit import DeiTImageProcessor


SCREAMING_SNAKE_CASE__				     =			logging.get_logger(__name__)






class 			_UpperCamelCase(       __lowerCamelCase		):

		def __init__(					self		:    Dict    ,       *SCREAMING_SNAKE_CASE__		:    Union[str, Any]    ,       **SCREAMING_SNAKE_CASE__		:    List[Any]    ):



					'''simple docstring'''



					warnings.warn(
					    'The class DeiTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
					    ' use DeiTImageProcessor instead.'    ,       SCREAMING_SNAKE_CASE__    ,       )
					super().__init__(*SCREAMING_SNAKE_CASE__    ,       **SCREAMING_SNAKE_CASE__    )











import webbrowser
from sys import argv
from urllib.parse import parse_qs, quote

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
      __magic_name__  :  List[Any]					=       """%20""".join(argv[1:]) if len(argv) > 1 else quote(str(input("""Search: """)))

      print("""Googling.....""")

      __magic_name__  :  List[Any]					=       F"https://www.google.com/search?q={query}&num=100"

      __magic_name__  :  Union[str, Any]					=       requests.get(
          url,
          headers={"""User-Agent""": str(UserAgent().random)},
      )

      try:
            __magic_name__  :  Optional[Any]					=       (
                BeautifulSoup(res.text, """html.parser""")
                .find("""div""", attrs={"""class""": """yuRUbf"""})
                .find("""a""")
                .get("""href""")
            )

      except AttributeError:
            __magic_name__  :  List[Any]					=       parse_qs(
                BeautifulSoup(res.text, """html.parser""")
                .find("""div""", attrs={"""class""": """kCrYT"""})
                .find("""a""")
                .get("""href""")
            )["""url"""][0]

      webbrowser.open(link)

