


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

       print("Googling.....")

       __UpperCamelCase       :       str						       =				f"https://www.google.com/search?q={query}&num=100"

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

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

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

       webbrowser.open(link)






from math import factorial, radians

def 			_a  (				SCREAMING_SNAKE_CASE	:				float    , SCREAMING_SNAKE_CASE	:				int = 18    , SCREAMING_SNAKE_CASE	:				int = 10     ):







 """simple docstring"""



 UpperCamelCase__					:    Dict          =   angle_in_degrees - ((angle_in_degrees // 360.0) * 360.0)

 # Converting from degrees to radians
 UpperCamelCase__					:    int          =   radians(SCREAMING_SNAKE_CASE     )

 UpperCamelCase__					:    Tuple          =   angle_in_radians
 UpperCamelCase__					:    str          =   3
 UpperCamelCase__					:    int          =   -1

 for _ in range(SCREAMING_SNAKE_CASE     ):
  result += (b * (angle_in_radians**a)) / factorial(SCREAMING_SNAKE_CASE     )

  UpperCamelCase__					:    List[Any]          =   -b  # One positive term and the next will be negative and so on...
  a += 2  # Increased by 2 for every term.

 return round(SCREAMING_SNAKE_CASE    , SCREAMING_SNAKE_CASE     )


if __name__ == "__main__":
       __import__("doctest").testmod()


