44 lines
1008 B
Python
44 lines
1008 B
Python
#%%
|
|
from unicodedata import name
|
|
from selenium import webdriver
|
|
from selenium.webdriver.common.keys import Keys
|
|
from selenium.webdriver.chrome.options import Options
|
|
|
|
import bs4 as BeautifulSoup
|
|
from random import uniform
|
|
|
|
import configparser
|
|
|
|
def connection_linkedin(driver:webdriver, user:str, mdp:str):
|
|
"""permet de gérer la connexion à linkedin dans le webdriver
|
|
|
|
Args:
|
|
driver (webdriver): instance du webdriver active
|
|
user (str): adresse mail du compte linkedin
|
|
mdp (str): mot de passe du compte linkedin
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
print("coucou")
|
|
|
|
config = configparser.ConfigParser()
|
|
config.read('login.ini')
|
|
config['bitbucket.org'] = {}
|
|
|
|
chrome_options = Options()
|
|
#chrome_options.add_argument("--disable-extensions")
|
|
#chrome_options.add_argument("--disable-gpu")
|
|
#chrome_options.add_argument("--headless")
|
|
driver = webdriver.Chrome(executable_path = './chromedriver', chrome_options=chrome_options)
|
|
|
|
|
|
|