Skip to content

Instantly share code, notes, and snippets.

@randymi01
randymi01 / main.py
Created May 3, 2023 07:30
Python multithread download images from site
#!/usr/bin/env python
# coding: utf-8
import requests as re
from bs4 import BeautifulSoup
import os
import time
from multiprocessing import cpu_count
from multiprocessing.pool import ThreadPool
import sys
@randymi01
randymi01 / matplotlibsettings.py
Last active May 14, 2024 04:15
imports and subplot stuff that I always forget
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
import seaborn as sns
sns.set_palette(sns.color_palette("Spectral"))
sns.set_style("whitegrid")
from matplotlib.ticker import StrMethodFormatter
# ax.xaxis.set_major_formatter(StrMethodFormatter("{x:.2f}"))