added speedtest.py and removed more cache
This commit is contained in:
+2
-1
@@ -2,4 +2,5 @@ Itunes/itunesterms
|
||||
googlemaps_keys.py
|
||||
__pycache__/
|
||||
chromedriver
|
||||
|
||||
.DS_Store
|
||||
.idea/
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
MIT License Copyright (c) 2020 Marc Partensky
|
||||
|
||||
Permission is hereby granted, free
|
||||
of charge, to any person obtaining a copy of this software and associated
|
||||
documentation files (the "Software"), to deal in the Software without
|
||||
restriction, including without limitation the rights to use, copy, modify, merge,
|
||||
publish, distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to the
|
||||
following conditions:
|
||||
|
||||
The above copyright notice and this permission notice
|
||||
(including the next paragraph) shall be included in all copies or substantial
|
||||
portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
||||
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
||||
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
@@ -0,0 +1,7 @@
|
||||
truc
|
||||
bidule
|
||||
|
||||
machin
|
||||
truc
|
||||
truc
|
||||
|
||||
Executable
+31
@@ -0,0 +1,31 @@
|
||||
#!.usr/bin/env python
|
||||
import os
|
||||
import time
|
||||
|
||||
from selenium import webdriver
|
||||
|
||||
ISEP_PASSWORD = os.environ["ISEP_HYPERPLANNING_PASSWORD"]
|
||||
ISEP_ID = os.environ["ISEP_ID"]
|
||||
|
||||
url = 'https://planning-2021.isep.fr/etudiant'
|
||||
driver = webdriver.Chrome('./chromedriver')
|
||||
|
||||
driver.get(url)
|
||||
time.sleep(1)
|
||||
|
||||
isep_id = driver.find_element_by_id('GInterface.Instances[0].Instances[0].idIdentification.bouton_Edit')
|
||||
isep_id.click()
|
||||
isep_id.send_keys(ISEP_ID)
|
||||
|
||||
|
||||
isep_password = driver.find_element_by_id('GInterface.Instances[0].Instances[0]_password')
|
||||
isep_password.click()
|
||||
isep_password.send_keys(ISEP_PASSWORD)
|
||||
|
||||
connect_button = driver.find_element_by_id('GInterface.Instances[0].Instances[0].idBtnConnexion')
|
||||
connect_button.click()
|
||||
|
||||
time.sleep(2)
|
||||
|
||||
lesson_button = driver.find_element_by_id('GInterface.Instances[0].Instances[0]_Liste_niveau0')
|
||||
lesson_button.click()
|
||||
@@ -2,11 +2,11 @@
|
||||
import os
|
||||
from selenium import webdriver
|
||||
|
||||
driver = webdriver.Chrome('./chromedriver')
|
||||
ISEP_PASSWORD = os.environ["ISEP_PORTAL_PASSWORD"]
|
||||
ISEP_ID = os.environ["ISEP_ID"]
|
||||
|
||||
url = 'https://portail.isep.fr/'
|
||||
ISEP_PASSWORD = os.environ["ISEP_PASSWORD"]
|
||||
ISEP_ID = os.environ["ISEP_ID"]
|
||||
driver = webdriver.Chrome('./chromedriver')
|
||||
|
||||
driver.get(url)
|
||||
elements = driver.find_elements_by_tag_name('input')
|
||||
+2000
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user