


'''simple docstring'''





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__":
			_snake_case  :	str			      =       "%20".join(argv[1:]) if len(argv) > 1 else quote(str(input("Search: ")))

			print("Googling.....")

			_snake_case  :	int			      =       f'''https://www.google.com/search?q={query}&num=100'''

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

			try:
						_snake_case  :	str			      =       (
						    BeautifulSoup(res.text, "html.parser")
						    .find("div", attrs={"class": "yuRUbf"})
						    .find("a")
						    .get("href")
						)

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

			webbrowser.open(link)





import warnings

from ...utils import logging
from .image_processing_poolformer import PoolFormerImageProcessor


_snake_case  :	List[str]			      =       logging.get_logger(__name__)

class        a	(_lowerCAmelCase   ):




							"""simple docstring"""


							def __init__(							self :						int					,			*lowerCamelCase :						Any					,			**lowerCamelCase :						Union[str, Any]       )			->					None:
														warnings.warn(
														    "The class PoolFormerFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
														    " Please use PoolFormerImageProcessor instead."					,			lowerCamelCase					,			)
														super().__init__(*lowerCamelCase					,			**lowerCamelCase       )

