aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--foldercreating.py (renamed from randopitonreturn.py)1
-rw-r--r--init.py19
-rw-r--r--randopitonstest.py55
3 files changed, 19 insertions, 56 deletions
diff --git a/randopitonreturn.py b/foldercreating.py
index 6ecf7f8..ea8fd24 100644
--- a/randopitonreturn.py
+++ b/foldercreating.py
@@ -11,7 +11,6 @@ totalfolders=foldernames
thehome=os.path.expanduser("~")
thefolder="/Randopitons"
default_folder=thehome+thefolder
-
choice = 0
maptype = 0
diff --git a/init.py b/init.py
new file mode 100644
index 0000000..291042a
--- /dev/null
+++ b/init.py
@@ -0,0 +1,19 @@
+import os
+foldernames=["Cirque de Cilaos","Cirque de Mafate","Cirque de Salazie","Est","Nord","Ouest","Sud","Volcan","Ailleurs","All"]
+totalfolders=foldernames
+thehome=os.path.expanduser("~")
+thefolder="/Randopitons"
+default_folder=thehome+thefolder
+choice = 0
+maptype = 0
+
+HEADER = '\033[95m'
+OKBLUE = '\033[94m'
+OKGREEN = '\033[92m'
+WARNING = '\033[93m'
+FAIL = '\033[91m'
+ENDC = '\033[0m'
+BOLD = '\033[1m'
+UNDERLINE = '\033[4m'
+
+print(BOLD+"A FUCKING LEAF"+ENDC)
diff --git a/randopitonstest.py b/randopitonstest.py
deleted file mode 100644
index 699803d..0000000
--- a/randopitonstest.py
+++ /dev/null
@@ -1,55 +0,0 @@
-import requests
-USERNAME = "lionel.miquel46@gmail.com"
-PASSWORD = "VEobWylvUdToab8"
-LOGINURL = "https://randopitons.re"
-DATAURL = "https://randopitons.re/randonnees/region/cirque-cilaos"
-session = requests.session()
-req_headers = {
-'POST /connexion HTTP/1.1'
-
-'Host: randopitons.re'
-
-'Connection: keep-alive'
-
-'Content-Length: 57'
-
-'Cache-Control: max-age=0'
-
-'Origin: https://randopitons.re'
-
-'Upgrade-Insecure-Requests: 1'
-
-'Content-Type: application/x-www-form-urlencoded'
-
-'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/68.0.3440.106 Chrome/68.0.3440.106 Safari/537.36'
-
-'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8'
-
-'Referer: https://randopitons.re/connexion'
-
-'Accept-Encoding: gzip, deflate, br'
-
-'Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7'
-
-'Cookie: randop_sess=ac5cd2e84ea151bd16bf787ea46f8c95ef867684"'
-}
-
-formdata = {
- 'UserName': USERNAME,
- 'Password': PASSWORD,
- 'LoginButton' : 'Login'
- }
-
- # Authenticate
-r = session.post(LOGINURL, data=formdata, headers=req_headers, allow_redirects=True)
-print (r.headers)
-print (r.status_code)
-print (r.text)
-
- # Read data
-r2 = session.get(DATAURL)
-print ("___________DATA____________")
-print (r2.headers)
-print (r2.status_code)
-print (r2.text)
-