Skip to content

Instantly share code, notes, and snippets.

@me-suzy
Created November 24, 2025 21:31
Show Gist options
  • Select an option

  • Save me-suzy/a37841f417dfcea73feac65293a7e77d to your computer and use it in GitHub Desktop.

Select an option

Save me-suzy/a37841f417dfcea73feac65293a7e77d to your computer and use it in GitHub Desktop.
remove_emojis.py
# Script pentru a inlocui emoji-urile din SIMPLU.py
# Folosire: python remove_emojis.py
import re
# Dictionarul de inlocuiri emoji -> text
emoji_replacement = {
'πŸ“': '[DIR]',
'πŸ“‹': '[INFO]',
'βœ…': '[OK]',
'❌': '[EROARE]',
'🚨': '[ATENTIE]',
'🎯': '[TARGET]',
'πŸ—‚οΈ': '[FOLDER]',
'πŸ”§': '[SETUP]',
'⚠': '[WARNING]',
'πŸ†•': '[NOU]',
'πŸ“Š': '[STATS]',
'πŸ“‚': '[DIR]',
'πŸ“„': '[PDF]',
'πŸ“‘': '[DOC]',
'πŸ“Ž': '[FILE]',
'🌐': '[WEB]',
'πŸ“': '[EDIT]',
'πŸ”': '[SEARCH]',
'πŸ”’': '[LOCK]',
'πŸš€': '[START]',
'⏳': '[WAIT]',
'πŸͺŸ': '[WINDOW]',
'πŸ’Ύ': '[SAVE]',
'πŸ‘οΈ': '[VIEW]',
'πŸ”„': '[RELOAD]',
'⏭️': '[SKIP]',
'🏷️': '[TAG]',
}
# Citeste fisierul
print("Citesc fisierul SIMPLU.py...")
with open('+FINAL 3 - asta pornesti SIMPLU.py', 'r', encoding='utf-8') as f:
content = f.read()
# Inlocuieste fiecare emoji
print("Inlocuiesc emoji-urile...")
replaced_count = 0
for emoji, replacement in emoji_replacement.items():
count = content.count(emoji)
if count > 0:
content = content.replace(emoji, replacement)
replaced_count += count
print(f" {emoji} -> {replacement} ({count} aparitii)")
# Salveaza fisierul
print("Salvez fisierul modificat...")
with open('+FINAL 3 - asta pornesti SIMPLU.py', 'w', encoding='utf-8') as f:
f.write(content)
print(f"\n[OK] Total {replaced_count} emoji-uri inlocuite cu succes!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment