fixed logs and requirements
This commit is contained in:
parent
3f13d9bf1a
commit
74f0f13de4
3 changed files with 13 additions and 5 deletions
4
main.py
4
main.py
|
|
@ -9,7 +9,7 @@ from selenium.webdriver.chrome.service import Service as ChromeService
|
|||
from webdriver_manager.chrome import ChromeDriverManager
|
||||
from selenium.common.exceptions import WebDriverException, TimeoutException
|
||||
from lib_resume_builder_AIHawk import Resume,StyleManager,FacadeManager,ResumeGenerator
|
||||
from src.utils import chromeBrowserOptions
|
||||
from src.utils import chrome_browser_options
|
||||
from src.gpt import GPTAnswerer
|
||||
from src.linkedIn_authenticator import LinkedInAuthenticator
|
||||
from src.linkedIn_bot_facade import LinkedInBotFacade
|
||||
|
|
@ -149,7 +149,7 @@ class FileManager:
|
|||
|
||||
def init_browser() -> webdriver.Chrome:
|
||||
try:
|
||||
options = chromeBrowserOptions()
|
||||
options = chrome_browser_options()
|
||||
service = ChromeService(ChromeDriverManager().install())
|
||||
return webdriver.Chrome(service=service, options=options)
|
||||
except Exception as e:
|
||||
|
|
|
|||
|
|
@ -14,3 +14,11 @@ click
|
|||
git+https://github.com/feder-cr/lib_resume_builder_AIHawk.git
|
||||
linkedin-api
|
||||
pdfminer.six==20221105
|
||||
inputimeout==1.0.4
|
||||
langchain-ollama==0.1.3
|
||||
langchain-anthropic==0.1.3
|
||||
jsonschema==4.23.0
|
||||
jsonschema-specifications==2023.12.1
|
||||
httpx~=0.27.2
|
||||
python-dotenv~=1.0.1
|
||||
PyYAML~=6.0.2
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from selenium import webdriver
|
|||
log_file = "app_log.log"
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG,
|
||||
level=logging.INFO,
|
||||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
||||
handlers=[
|
||||
logging.FileHandler(log_file, mode='a', encoding='utf-8'),
|
||||
|
|
@ -22,7 +22,7 @@ file_handler = logging.FileHandler(log_file, mode='a', encoding='utf-8')
|
|||
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
||||
file_handler.setFormatter(formatter)
|
||||
logger.addHandler(file_handler)
|
||||
logger.setLevel(logging.DEBUG)
|
||||
logger.setLevel(logging.INFO)
|
||||
|
||||
chromeProfilePath = os.path.join(os.getcwd(), "chrome_profile", "linkedin_profile")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue