Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ungooogle
import urllib
import re
def ungoogle(url, type="pdf"):
try:
return urllib.unquote(re.search("(?<=url=).+"+type, url).group())
except:
return urllib.parse.unquote(re.search("(?<=url=).+"type, url).group())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment