f_res3 = {'price': f_res2}
f_res4 = pd.DataFrame(f_res3, index=[0])
f_res5 = f_res4.mean(numeric_only=True)
print(f_res5)
with open(r"skinstrashbase.txt", "r") as file:
for line in file:
requests.get(line)
req = requests.get(line)
search = re.search('var line1=(.+);', req.text)
data_str = search.group(1)
data = json.loads(data_str)
result = '\n'.join(map(str, data))
f_res = '[Date, Price, Amount]\n' + result
f_res1 = re.findall(r', *.*,', f_res)
f_res1_1 = ' '.join(f_res1[0:30])
f_res2 = f_res1_1.replace(',', ' ')
f_res3 = float(f_res2)
print(sum(f_res2))
<code/>