diff --git a/__pycache__/scrapper.cpython-311.pyc b/__pycache__/scrapper.cpython-311.pyc index d57c4ed..136bfad 100644 Binary files a/__pycache__/scrapper.cpython-311.pyc and b/__pycache__/scrapper.cpython-311.pyc differ diff --git a/scrapper.py b/scrapper.py index 5732499..f9834e3 100644 --- a/scrapper.py +++ b/scrapper.py @@ -60,8 +60,7 @@ def scrapper(): # Change Thrusts intervals to medians if string_element.find('–') != -1: row += tuple(map(float, [(float(re.sub("\(.*?\)","()", string_element).replace("()", "").replace(" ", " ").split()[0].split('–')[0]) + float(re.sub("\(.*?\)","()", string_element).replace("()", "").replace(" ", " ").split()[0].split('–')[1])) / 2, (float(re.sub("\(.*?\)","()", string_element).replace("()", "").replace(" ", " ").split()[1].split('–')[0]) + float(re.sub("\(.*?\)","()", string_element).replace("()", "").replace(" ", " ").split()[1].split('–')[1])) / 2])) - elif i == 21: - row += tuple(map(float, [float(re.sub("\(.*?\)","()", string_element).replace("()", "").replace(" ", " ")[0:7]), float(re.sub("\(.*?\)","()", string_element).replace("()", "").replace(" ", " ")[7:13])])) + ### else: row += tuple(map(float, [float(re.sub("\(.*?\)","()", string_element).replace("()", "").replace(" ", " ").split()[0]), float(re.sub("\(.*?\)","()", string_element).replace("()", "").replace(" ", " ").split()[1])])) # Change numbers from strings to floats