Skip to content

Instantly share code, notes, and snippets.

@Sets88
Sets88 / telegram_client.py
Last active August 18, 2018 09:39
Telegram Client example
import os
from telethon import TelegramClient
from telethon.tl.types import MessageActionChatAddUser
from telethon.tl.functions.messages import GetAllStickersRequest
from telethon.tl.functions.messages import GetStickerSetRequest
from telethon.tl.types import InputStickerSetID
from operator import attrgetter
from time import sleep
import traceback
from datetime import datetime
@Sets88
Sets88 / get_mac_vendors_list.py
Last active February 11, 2023 06:13
Get MAC address vendor list from ieee and place it into sqlite3 database
#! /usr/bin/python
import os
import sys
import urllib2
import re
import sqlite3
def get_mac_table_file(filename="oui.txt"):
request = urllib2.urlopen("http://standards.ieee.org/develop/regauth/oui/oui.txt")
with open(filename, "w") as f: