Skip to content

Instantly share code, notes, and snippets.

🤠
I'm a cowboy... In an Ostrich I must ride!

Roberto Salgado droberin

🤠
I'm a cowboy... In an Ostrich I must ride!
View GitHub Profile
@droberin
droberin / fix_avatars.py
Created Feb 9, 2018
Slack exported conversation avatar replacement with locally downloaded avatars from original URL
View fix_avatars.py
import os
import lxml.html as LH
import shutil
import requests
temp_dir = "/tmp/avatar_tmp"
if not os.path.isdir("html/avatars"):
os.mkdir("html/avatars")
if os.path.isdir(temp_dir):
You can’t perform that action at this time.