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!
Block or report user

Report or block droberin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.