First of all excuse the code itself. I'm working with python for the past 3 months... I know that I should just write a function and use it every asset, but I never got to it ;)
I did run the full code (even the commented telos one) for two months without any problems. Then I got an error and I had comment the telos part out. The code now works. If I copy out the telos code and run it in a seperate python script I do get the data without a problem.
from amount import aua, aga, xmra, eosa, lbrya, arrra, deroa, tlosa, vrsca
from bs4 import BeautifulSoup
import requests, datetime
from lxml import etree
goldurl = "https://goldswitzerland.com/charts/gold-price/eur/"
gold1 = requests.get(goldurl)
goldsoup = BeautifulSoup(gold1.text, "html.parser")
gold4 = etree.HTML(str(goldsoup)).xpath("/html/body/main/div[1]/div[1]/div/div/div[1]")[0].text[2:]
gold3 = gold4.strip()
gold = gold3.replace(",","")
golds = format(float(gold)*aua,'.2f')
goldss = golds.replace(".", ",")
silverurl = "https://goldswitzerland.com/charts/silver-price/eur/"
silver1 = requests.get(silverurl)
silversoup = BeautifulSoup(silver1.text, "html.parser")
silver4 = etree.HTML(str(silversoup)).xpath("/html/body/main/div[1]/div[1]/div/div/div[1]")[0].text[2:]
silver3 = silver4.strip()
silver = silver3.replace(",","")
silvers = format(float(silver)*aga,'.2f')
silverss = silvers.replace(".", ",")
xmrurl = "https://coinmarketcap.com/currencies/monero/xmr/eur/"
xmr1 = requests.get(xmrurl)
xmrsoup = BeautifulSoup(xmr1.text, "html.parser")
xmr4 = etree.HTML(str(xmrsoup)).xpath("/html/body/div[1]/div[2]/div[1]/div[2]/div/div[1]/div[2]/div/div[2]/div[1]/div/span")[0].text[1:]
xmr3 = xmr4.strip("€")
xmr = xmr3.replace(",","")
xmrs = format(float(xmr)*xmra,'.2f')
xmrss = xmrs.replace(".", ",")
eosurl = "https://coinmarketcap.com/currencies/eos/eos/eur/"
eos1 = requests.get(eosurl)
eossoup = BeautifulSoup(eos1.text, "html.parser")
eos4 = etree.HTML(str(eossoup)).xpath("/html/body/div[1]/div/div[1]/div[2]/div/div[1]/div[2]/div/div[2]/div[1]/div/span")[0].text[1:]
eos3 = eos4.strip("€")
eos = eos3.replace(",","")
eoss = format(float(eos)*eosa,'.2f')
eosss = eoss.replace(".", ",")
lbryurl = "https://coinmarketcap.com/currencies/library-credits/lbc/eur/"
lbry1 = requests.get(lbryurl)
lbrysoup = BeautifulSoup(lbry1.text, "html.parser")
lbry4 = etree.HTML(str(lbrysoup)).xpath("/html/body/div[1]/div/div[1]/div[2]/div/div[1]/div[2]/div/div[2]/div[1]/div/span")[0].text[1:]
lbry3 = lbry4.strip("€")
lbry = lbry3.replace(",","")
lbrys = format(float(lbry)*lbrya,'.2f')
lbryss = lbrys.replace(".", ",")
arrrurl = "https://coinmarketcap.com/currencies/pirate-chain/arrr/eur/"
arrr1 = requests.get(arrrurl)
arrrsoup = BeautifulSoup(arrr1.text, "html.parser")
arrr4 = etree.HTML(str(arrrsoup)).xpath("/html/body/div[1]/div/div[1]/div[2]/div/div[1]/div[2]/div/div[2]/div[1]/div/span")[0].text[1:]
arrr3 = arrr4.strip("€")
arrr = arrr3.replace(",","")
arrrs = format(float(arrr)*arrra,'.2f')
arrrss = arrrs.replace(".", ",")
derourl = "https://coinmarketcap.com/currencies/dero/dero/eur/"
dero1 = requests.get(derourl)
derosoup = BeautifulSoup(dero1.text, "html.parser")
dero4 = etree.HTML(str(derosoup)).xpath("/html/body/div[1]/div/div[1]/div[2]/div/div[1]/div[2]/div/div[2]/div[1]/div/span")[0].text[1:]
dero3 = dero4.strip("€")
dero = dero3.replace(",","")
deros = format(float(dero)*deroa,'.2f')
deross = deros.replace(".", ",")
# telosurl = "https://coinmarketcap.com/currencies/telos/tlos/eur/"
# telos1 = requests.get(telosurl)
# telossoup = BeautifulSoup(telos1.text, "html.parser")
# telos4 = etree.HTML(str(telossoup)).xpath("/html/body/div[1]/div/div[1]/div[2]/div/div[1]/div[2]/div/div[2]/div[1]/div/span")[0].text[1:]
# telos3 = telos4.strip("€")
# telos = telos3.replace(",","")
# teloss = format(float(telos)*telosa,'.2f')
# telosss = teloss.replace(".", ",")
teloss=100
telosss="100"
verusurl = "https://coinmarketcap.com/currencies/veruscoin/vrsc/eur/"
verus1 = requests.get(verusurl)
verussoup = BeautifulSoup(verus1.text, "html.parser")
verus4 = etree.HTML(str(verussoup)).xpath("/html/body/div[1]/div/div[1]/div[2]/div/div[1]/div[2]/div/div[2]/div[1]/div/span")[0].text[1:]
verus3 = verus4.strip("€")
verus = verus3.replace(",","")
veruss = format(float(verus)*verusa,'.2f')
verusss = veruss.replace(".", ",")
together=float(golds)+float(silvers)+float(xmrs)+float(eoss)+float(lbrys)+float(arrrs)+float(deros)+teloss+float(veruss)
togetherr = format(together,'.2f')
togetherrr = togetherr.replace(".", ",")
date=datetime.datetime.now()
dat=(f"{date.day}.{date.month}.{date.year} {date.hour}:{date.minute}:{date.second}")
log=open("diary.txt", 'a')
log.write(dat + " AU: "+ goldss + " , AG: " + silverss + ", Monero: " + xmrss + " , EOS: " + eosss + " , LBRY: " + lbryss + " , ARRR: " + arrrss + " , DERO: " + deross + " , Telos: " + telosss + " , Verus: " + veruss + " SUM: " + togetherrr + "\n" )
log.close()
excel=open("excel.txt", 'a')
excel.write(dat + " COPY FROM HERE -->" + goldss + "\t" + silverss + "\t" + xmrss + "\t" + "\t" + eosss + "\t" + lbryss + "\t" + arrrss + "\t" + deross + "\t"+ "\t"+ "\t" + telosss + "\t" + verusss + "\t"+ "\t"+ "\t" + togetherrr + "<-- TO HERE\n")
excel.close()