


from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


A   :					Optional[int]	=      datasets.utils.logging.get_logger(__name__)







class     _lowercase				(							folder_based_builder.FolderBasedBuilderConfig):


       """simple docstring"""




       A__      		=    None
       A__      		=    None







class     _lowercase				(							folder_based_builder.FolderBasedBuilder):


       """simple docstring"""




       A__      		=    datasets.Audio()
       A__      		=    "audio"
       A__      		=    AudioFolderConfig
       A__      		=    42  # definition at the bottom of the script
       A__      		=    AudioClassification(audio_column="audio"							,						label_column="label")



A   :					Any	=      [
    ".aiff",
    ".au",
    ".avr",
    ".caf",
    ".flac",
    ".htk",
    ".svx",
    ".mat4",
    ".mat5",
    ".mpc2k",
    ".ogg",
    ".paf",
    ".pvf",
    ".raw",
    ".rf64",
    ".sd2",
    ".sds",
    ".ircam",
    ".voc",
    ".w64",
    ".wav",
    ".nist",
    ".wavex",
    ".wve",
    ".xi",
    ".mp3",
    ".opus",
]
A   :					Dict	=      AUDIO_EXTENSIONS






import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
    print("Googling.....")
    A   :					str	=      "https://www.google.com/search?q=" + " ".join(sys.argv[1:])
    A   :					Optional[int]	=      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(10000):
            out_file.write(data)
    A   :					int	=      BeautifulSoup(res.text, "html.parser")
    A   :					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")}')


