Skip to content

Commit

Permalink
pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pfefan committed Jul 21, 2022
1 parent 7ce37ac commit 4a94262
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
import json
import re
import sys

from bs4 import BeautifulSoup
from requests_html import HTMLSession
from pathlib import Path

from requests_html import HTMLSession
from bs4 import BeautifulSoup

class WebUntis():
"""class"""
Expand Down Expand Up @@ -34,13 +33,13 @@ def main(self):

fle = Path('tos.txt')
fle.touch(exist_ok=True)
with open("tos.txt", "r+", encoding="utf8") as f:
if f.read() == "True":
with open("tos.txt", "r+", encoding="utf8") as file:
if file.read() == "True":
pass
elif f.read() == "":
elif file.read() == "":
i = input("I accept no liability for any property damage or personal injury caused by this program, agree y/n: ")
if i == "y":
f.write("True")
file.write("True")
else:
sys.exit()

Expand All @@ -52,7 +51,7 @@ def main(self):

while True:
session = HTMLSession()
s = session.post(self.url, data=self.payload)
session.post(self.url, data=self.payload)
page = session.get(self.logurl)
soup = BeautifulSoup(page.content, 'html.parser')

Expand Down

0 comments on commit 4a94262

Please sign in to comment.