Metadata-Version: 2.4
Name: btime-framework
Version: 0.1.9.8
Summary: Btime Framework
Home-page: https://github.com/Btime/Btime_Framework
Author: Guilherme Neri
Author-email: guilherme.neri@btime.com.br
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: setuptools
Requires-Dist: pyperclip
Requires-Dist: pyinstaller
Requires-Dist: selenium
Provides-Extra: pynput
Requires-Dist: pynput; extra == "pynput"
Provides-Extra: screeninfo
Requires-Dist: screeninfo; extra == "screeninfo"
Provides-Extra: pywinauto
Requires-Dist: pywinauto; extra == "pywinauto"
Provides-Extra: capmonstercloudclient
Requires-Dist: capmonstercloudclient; extra == "capmonstercloudclient"
Provides-Extra: twocaptcha
Requires-Dist: 2captcha-python; extra == "twocaptcha"
Provides-Extra: full
Requires-Dist: undetected-chromedriver; extra == "full"
Requires-Dist: webdriver-manager; extra == "full"
Requires-Dist: opencv-python; extra == "full"
Requires-Dist: pygetwindow; extra == "full"
Requires-Dist: pyinstaller; extra == "full"
Requires-Dist: screeninfo; extra == "full"
Requires-Dist: pyscreeze; extra == "full"
Requires-Dist: pyautogui; extra == "full"
Requires-Dist: selenium; extra == "full"
Requires-Dist: requests; extra == "full"
Requires-Dist: pymupdf; extra == "full"
Requires-Dist: Pillow; extra == "full"
Requires-Dist: psutil; extra == "full"
Requires-Dist: pynput; extra == "full"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

1Â° - Instale a lib:
    pip install Btime_framework




2Â° - Exemplos de inicio (copia e modifica no seu cÃ³digo):

    import btime_framework as BT
    from btime_framework import By  # Opcional

    class Framework:
        def __init__(self):
            self.sys = BT.System()  # Classe para opÃ§Ãµes que envolvem sistema (pdf, janelas, arquivos...)
            self.instance = BT.Instancedriver(Browser="Chrome")  # Essa Ã© a instÃ¢ncia do navegador, classe mestre
            self.options = self.instance.initialize_options()
            self.driver = None
            self.EL= None

        def inicialize_driver(self):

            # Caso queria adicionar argumentos especÃ­ficos (antes de iniciar o driver)
            self.instance.arguments.add_new_argument('--disable-blink-features=AutomationControlled')  
            # self.instance.arguments.add_new_argument

            # O driver jÃ¡ vem com argumentos padrÃµes para evitar detecÃ§Ãµes e bugs
            self.driver = self.instance.initialize_driver(maximize=True)

            # Essa Ã© a classe que agrupa todas as formas de detecÃ§Ã£o de elementos
            self.EL = self.instance.elements

    class Scrapping_or_another_application(Framework):
        def __init__(self):
            super().__init__()
            self.inicialize_driver()

        def run(self):
            self.driver.get('https://www.google.com/')

            self.EL.find_element_with_wait(By.ID, 'APjFqb').send_keys('Example')
            self.EL.find_element_with_wait(By.XPATH, '//div[*[1][self::center]]//input[@value="Estou com sorte"]').click()
            # ...

    if __name__ == "__main__":
        bot = Scrapping_or_another_application()
        bot.run()




3Â° - O framework usa diversas libs e importa dinamicamente, para importar as libs basta usar os comandos abaixo:

   CMD
   - cd C:\Users\SeuUsuario\Documents\SeuProjeto
   - bt -fi SeuArquivo.py

Nisso ele vai te retornar todos os imports que vocÃª precisa
