html = """<td>
OC[<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e9aaa9a1">[email protected]</a>](OC(CCCCCCCCCCCCC)=O)COC(CCCCCCCCCCCCC)=O
</td>"""
from cgitb import reset
from bs4 import BeautifulSoup
soup = BeautifulSoup(html, 'html.parser')
def decode(g):
r = int(g[:2],16)
email = ''.join([chr(int(g[i:i+2], 16) ^ r) for i in range(2, len(g), 2)])
return email
start = str(soup).find('data-cfemail="')+len('data-cfemail="')
stop = str(soup)[start:].find('"')
x = str(soup)[start:start+stop]
result = str(soup.text).replace('[email\xa0protected]', decode(x))
print(result)
#OC[C@H](OC(CCCCCCCCCCCCC)=O)COC(CCCCCCCCCCCCC)=O
http://localhost:5000/multiplicators?names=1&country=hello&tiker=p/2@app.route('/multiplicators', methods = ['GET'])
def get_multiplicator():
tiker = request.args.get('tiker')
country = request.args.get('country')
names = request.args.get('names')
return jsonify(names, tiker, country)
#return jsonify(parse_multiplicators(tiker,country,names))[
"1",
"p/2",
"hello"
]
2. Закупаются ссылки понемногу

2) Влияет ли реально икс на позиции?