def list_plugins(ctx, param, value): if not value or ctx.resilient_parsing: return click.secho("\nAvailable plugins:\n", fg="green") plugins = Crawler.get_plugin_list() [click.echo(f"\t{plugin}") for plugin in plugins] ctx.exit()
class SeoGUI(QtWidgets.QMainWindow, ui.Ui_MainWindow): def __init__(self, parent=None): super().__init__(parent) self.setupUi(self) self.connectSignalsSlots() @asyncSlot() async def doCrawl(self): url = self.inputURL.text() self.crawler = Crawler(url) ic(self.crawler.get_plugin_list()) await self.crawler.crawl() def updateOutput(self, text): self.textOutput.document().setPlainText(text) # self.textOutput def connectSignalsSlots(self): self.btnCrawl.clicked.connect(self.doCrawl)