Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/w/h/whatsapp_history-HEAD/whatsapp.py   whatsapp_history(Download)
import codecs
 
from common import COLORS, TEMPLATEBEGINNING, TEMPLATEEND, ROWTEMPLATE
from common import get_color, reset_colors, get_date, sanitize_filename, iterate_with_progress, get_output_dirs
 
def output_contact(conn, backup_extractor, is_group, contact_id, contact_name, your_name):
	reset_colors()
	html = open(os.path.join(OUTPUT_DIR, '%s.html' % sanitize_filename(contact_name)), 'w', encoding="utf-8")
	html.write(TEMPLATEBEGINNING % ("WhatsApp",))
	c = conn.cursor()

src/w/h/whatsapp_history-HEAD/sms.py   whatsapp_history(Download)
import sqlite3
import os
import shutil
 
from common import COLORS, TEMPLATEBEGINNING, TEMPLATEEND, ROWTEMPLATE
def output_contact(conn, contact_conn, backup_extractor, chat_id, your_name):
	reset_colors()
	contact_name = str(chat_id)
	html = open(get_filename(conn, contact_conn, chat_id), 'w', encoding="utf-8")
	html.write(TEMPLATEBEGINNING % ("SMS/iMessage",))