Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = {
- 'gale': [
- 'gale',
- 'martigale',
- 'martingale',
- 'mg',
- 'g'
- ],
- 'sinal': [
- 'call',
- 'put'
- ]
- }
- m = """😎 LISTA VIP 😎
- 📈---> 18/01
- EQUIPE SHARKS 🦈
- CALL: Pra cima 🟩
- PUT: Pra baixo 🟥
- 🚨 ATÉ 1 MARTIGALE!🚨
- ⚠️Não entrem contra a tendencia!⚠️
- 🔥USEM DE 1% A 1,5% DE SUA BANCA A CADA OPERAÇÃO🔥
- M5
- GBP/JPY 01:30 CALL
- EUR/CAD 03:20 PUT
- GBP/NZD 03:50 CALL
- GBP/JPY 06:45 PUT
- USD/JPY 07:35 PUT
- EUR/GBP 08:50 PUT
- EUR/CAD 09:10 CALL
- USD/JPY 11:30 PUT
- EUR/USD 13:10 PUT
- AUD/JPY 14:20 PUT
- EUR/JPY 15:25 PUT
- AUD/CAD 16:00 PUT
- 3/4 sinais é o suficiente pra bater a meta!"""
- m2 = """==========//============
- 🧙♂️🥇🇫🇷Copysignalsbr🇫🇷🥇🧙♂️
- ==========//=============
- Cotado para o dia↔️ *13/01/2021
- ✅ 📊=5M
- ✅ ⏰M5
- ✅ NÃO ENTRAR CONTRA TENDÊNCIA
- ✅gerenciamento recomendado:1-4%
- ✅ Até 1 MG
- M5
- 00:05;EUR/GBP;PUT;5🔴
- 00:30;EUR/GBP;PUT;5🔴
- 01:05;EUR/GBP;PUT;5🔴
- 02:50;EUR/GBP;PUT;5🔴
- 07:20;GBP/USD;CALL;5🟢
- 07:30;AUD/CAD;CALL;5🟢
- 07:40;USD/JPY;CALL;5🟢
- 11:25;AUD/CAD;PUT;5🔴
- 12:40;EUR/GBP;PUT;5🔴
- 15:45;GBP/USD;PUT;5🔴
- 16:15;AUD/CAD;PUT;5🔴
- 16:25;AUD/CAD;PUT;5🔴
- 19:55;GBP/USD;CALL;5🟢
- 20:15;EUR/GBP;PUT;5🔴
- 22:45;EUR/JPY;PUT;5🔴"""
- def pegarDados(temp, periodo, gale):
- t = {
- 'periodo': periodo,
- 'paridade': None,
- 'horario': None,
- 'sinal': None,
- 'gale': gale
- }
- for word in temp:
- if 'm' in word.lower():
- if word[1].isnumeric():
- t['periodo'] = word
- elif len(word) == 7:
- if '\\' or '\/' in word:
- t['paridade'] = word
- elif len(word) == 6:
- t['paridade'] = word
- elif ':' in word:
- t['horario'] = word
- elif 'put' in word.lower() or 'call' in word.lower():
- t['sinal'] = word
- elif 'sem' in word.lower():
- t['gale'] = 0
- elif word.isnumeric():
- t['gale'] = word
- return t
- def acharSinais(mensagem):
- nList = []
- nnList = []
- periodo = 'm5'
- gale = 0
- tcolumn = mensagem.lower().split('\n')
- for trow in tcolumn:
- trowsplite = trow.split()
- for i in trowsplite:
- if 'put' in i or 'call' in i:
- nList.append(trow)
- if 'm' in i and i[1].isnumeric():
- periodo = i
- if p['gale'][0] in i or p['gale'][1] in i or p['gale'][2] in i or p['gale'][3] in i or p['gale'][4] in i:
- try:
- if trowsplite[(trowsplite.index(i)-1)].isnumeric():
- gale = trowsplite[(trowsplite.index(i)-1)]
- elif trowsplite[(trowsplite.index(i)+1)].isnumeric():
- gale = trowsplite[(trowsplite.index(i)+1)]
- except:
- pass
- if len(nList) > 1:
- for b in nList:
- if b.count(';') > 1:
- temp = b.split(';')
- t = pegarDados(temp, periodo, gale)
- elif b.count(',') > 1:
- temp = b.split(',')
- t = pegarDados(temp, periodo, gale)
- else:
- temp = b.split()
- t = pegarDados(temp, periodo, gale)
- if (t['paridade'] is not None and t['horario'] is not None and t['sinal'] is not None):
- nnList.append(t)
- print(t)
- return nnList
- #print(nList)
- #print(nMes)
- acharSinais(m)
Advertisement
Add Comment
Please, Sign In to add comment