better reorganize code into folders

master
EmaMaker 2021-08-24 20:33:53 +02:00
parent 6b7d6d3161
commit d644e704f8
18 changed files with 11 additions and 10 deletions

1
src/__init__.py Normal file
View File

@ -0,0 +1 @@
# empty file, needed by python

1
src/colab/__init__.py Normal file
View File

@ -0,0 +1 @@
# empty file, needed by python

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
import browser_manager
from utils import browser_manager
from selenium import webdriver
from selenium.webdriver.common.by import By
import time

View File

@ -1,5 +1,5 @@
import ngrok
import colab
from ngrok import ngrok
from colab import colab
import time
c = colab.ColabGist('https://colab.research.google.com/gist/EmaMaker/4e1478c9913a2df58fc1b8ff422fa161/proxy.ipynb', ('giangillo.rossi@gmail.com', 'emamaker02'), minutes=3)

1
src/ngrok/__init__.py Normal file
View File

@ -0,0 +1 @@
# empty file, needed by python

Binary file not shown.

Binary file not shown.

View File

@ -3,7 +3,7 @@
# automatically accepts key and inputs password
# sshpass -p hellogoodbye ssh -D 1337 -q -C -N root@ip -p port -o "StrictHostKeyChecking no"
import browser_manager
from utils import browser_manager
from selenium.webdriver.common.by import By
import time

1
src/qwiklabs/__init__.py Normal file
View File

@ -0,0 +1 @@
# contains any file regarding actions to be taken on qwiklabs

View File

@ -3,7 +3,7 @@ import pyautogui
import time
import subprocess
def main():
def get_account():
pyautogui.FAILSAFE = False
screenWidth, screenHeight = pyautogui.size()
@ -97,6 +97,4 @@ def main():
pyautogui.click()
g_password = subprocess.check_output(['bash','-c', bashCommand]).decode('utf-8')
print(g_email, g_password)
main()
return (g_email, g_password)

1
src/utils/__init__.py Normal file
View File

@ -0,0 +1 @@
# file used throughout the entire codebase

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,3 @@
# from proxy_rotator import rotator
# from sudo import run_as_sudo
import undetected_chromedriver as uc
uc.install()