Skip to content

Commit

Permalink
Removed PyTerm Module
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidAccount committed Nov 22, 2022
1 parent 7146c34 commit 80167d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
9 changes: 5 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import ctypes
import os
import sys
import time
from contextlib import suppress
from json import load
from random import randint, choice
from typing import Any

from PyTerm import Console
from colorama import Fore
from selenium import webdriver
from selenium.webdriver.chrome.webdriver import WebDriver
Expand Down Expand Up @@ -79,7 +80,6 @@ def solver(self, site_url, browser):
solvedCaptcha += 1
return result


def fElement(self, driver: WebDriver, by: By = By.ID, value=None, delay: float = 0.3):
# Custom find Element Function
count = 0
Expand All @@ -103,8 +103,9 @@ def get_balance(self):
def update(self):
# Update Title Function
global eGenerated, solvedCaptcha
Console.set_title(
f'Email Generated: {eGenerated} | Solved Captcha: {solvedCaptcha} | Balance: {self.get_balance()}')
title = f'Email Generated: {eGenerated} | Solved Captcha: {solvedCaptcha} | Balance: {self.get_balance()}'
ctypes.windll.kernel32.SetConsoleTitleW(title) if os.name == 'nt' else print(f'\33]0;{title}\a', end='',
flush=True)

def generate_info(self):
# Generate Information Function
Expand Down
5 changes: 2 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
git+https://github.com/Its-Vichy/PyTerm.git
selenium==4.5.0
selenium==4.6.0
six~=1.16.0
requests~=2.28.1
unique-names-generator~=1.0.2
colorama==0.4.5
colorama==0.4.6
tqdm==4.64.1
twocaptcha==0.0.1

0 comments on commit 80167d7

Please sign in to comment.