This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import os | |
from datetime import timedelta | |
from time import time | |
output_folder = '.data/gmail_u0' | |
cache_file = os.path.join(output_folder, '.cache') | |
os.makedirs(output_folder, exist_ok=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
858978 [email protected] Cryptography and SSL/TLS Toolkit | |
852807 [email protected] Interpreted, interactive, object-oriented programming language | |
746073 readline Library for command-line editing | |
623936 sqlite Command-line interface for SQLite | |
377743 glib Core application library for C | |
327161 nghttp2 HTTP/2 C Library | |
320077 libtiff TIFF library and utilities | |
316940 node Platform built on V8 to build network applications | |
313995 icu4c C/C++ and Java libraries for Unicode and globalization | |
299737 gdbm GNU database manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python 3.8 (will work for lower versions too). | |
# requirements: pip3 install fonttools | |
import os | |
from contextlib import redirect_stderr | |
from fontTools import ttLib | |
def font_name(font_path): | |
font = ttLib.TTFont(font_path, ignoreDecompileErrors=True) |