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
#!/bin/bash | |
# SPDX-License-Identifier: BSD-2-Clause | |
# SPDX-FileCopyrightText: 2020 Theo Markettos <git@markettos.org.uk> | |
# Script to install KDE Neon on top of Ubuntu 20.04 | |
# | |
# The KDE Neon site says "A web search should quickly give you relevant information on how to do this. " | |
# but I didn't find any, so worked it out from first principles |
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
#!/usr/bin/env python3 | |
# This will extract an mbox in seperate eml files from google takeout (manually unzip it first) | |
# Will try to create a folder structure based on the labels | |
# Emails will be formatted like this: | |
# 221104_110405_sender@mail.com_subject_in_45_chars.eml | |
# e.g. ./Inbox/2022/10/Special/221104_110405_sender@mail.com_subject_in_45_chars.eml | |
# | |
# Should work for all languages, but has been tested on German with a 14 GB large mbox file (with 169039 messages) | |
# Result: 169039 messages processed, 167591 messages saved |
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 json | |
import requests | |
import concurrent.futures | |
import os | |
import time | |
from tqdm import tqdm | |
from deep_translator import GoogleTranslator | |
def load_json_file(file_path): |