





import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
    print("""Googling.....""")
    __lowerCamelCase	:					Union[str, Any]			  =					"""https://www.google.com/search?q=""" + """ """.join(sys.argv[1:])
    __lowerCamelCase	:					List[str]			  =					requests.get(url, headers={"""UserAgent""": UserAgent().random})
    # res.raise_for_status()
    with open("""project1a.html""", """wb""") as out_file:  # only for knowing the class
        for data in res.iter_content(1_0000):
            out_file.write(data)
    __lowerCamelCase	:					Optional[int]			  =					BeautifulSoup(res.text, """html.parser""")
    __lowerCamelCase	:					Union[str, Any]			  =					list(soup.select(""".eZt8xd"""))[:5]

    print(len(links))
    for link in links:
        if link.text == "Maps":
            webbrowser.open(link.get("""href"""))
        else:
            webbrowser.open(f"""https://google.com{link.get('href')}""")







from ...configuration_utils import PretrainedConfig
from ...utils import logging


__lowerCamelCase	:					Tuple			  =					logging.get_logger(__name__)



class  A__       (	__snake_case      ):
      _UpperCAmelCase     :List[Any]						   =       'timm_backbone'





      def __init__(			self	,							A_=None	,							A_=3	,							A_=True	,							A_=True	,							A_=None	,							**A_	,							):
       '''simple docstring'''




       super().__init__(**A_       )
       UpperCamelCase     : Tuple	     =       backbone
       UpperCamelCase     : Dict	     =       num_channels
       UpperCamelCase     : Tuple	     =       features_only
       UpperCamelCase     : Optional[int]	     =       use_pretrained_backbone
       UpperCamelCase     : Dict	     =       True
       UpperCamelCase     : List[str]	     =       out_indices if out_indices is not None else (-1,)
