Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = {
- 'gale': [
- 'gale',
- 'martigale',
- 'martingale',
- ],
- '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é GALE 2
- 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):
- t = {
- 'periodo': 'm5',
- 'paridade': None,
- 'horario': None,
- 'sinal': None,
- 'gale': 0
- }
- 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 = []
- nMes = []
- tcolumn = mensagem.lower().split('\n')
- for trow in tcolumn:
- if 'put' in trow or 'call' in trow:
- nList.append(trow)
- nMes.append(trow.split())
- if len(nList) > 1:
- for b in nList:
- t = {
- 'periodo': 'm5',
- 'paridade': None,
- 'horario': None,
- 'sinal': None,
- 'gale': 0
- }
- if b.count(';') > 1:
- temp = b.split(';')
- t = pegarDados(temp)
- elif b.count(',') > 1:
- temp = b.split(',')
- t = pegarDados(temp)
- else:
- temp = b.split()
- t = pegarDados(temp)
- 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
Advertisement