Skip to content

Instantly share code, notes, and snippets.

@AwwCookies
Created April 5, 2014 19:26
Show Gist options
  • Save AwwCookies/9996819 to your computer and use it in GitHub Desktop.
Save AwwCookies/9996819 to your computer and use it in GitHub Desktop.
Translate your words into gangsta: http://www.gizoogle.net/
"""
Example:
import gizoogle
print(gizoogle.translate('Hey, How are you?'))
# Will print 'Yo, how tha fuck is yo slick ass?'
"""
from BeautifulSoup import BeautifulSoup
import requests
import json
URL = 'http://www.gizoogle.net/textilizer.php'
def translate(text):
html = requests.post(URL, data={'translatetext': text}).text
return BeautifulSoup(html).textarea.contents[0].strip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment