Created
April 5, 2014 19:26
-
-
Save AwwCookies/9996819 to your computer and use it in GitHub Desktop.
Translate your words into gangsta: http://www.gizoogle.net/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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