Home / python_security_toolkit / google_in_terminal
Name Modified Size InfoDownloads / Week
Parent folder
README 2014-08-30 753 Bytes
google.py 2014-08-30 6.3 kB
Totals: 2 Items   7.1 kB 0
Put the file in same folder as the one from where you are running python.

Dependencies:
requests	(apt-get install python-requests, or pip install python-requests)
bs4		(apt-get install python-bs4, or pip install python-bs4)
Have them installed before runningthe script.

Usage is simple:
1.For text search:

import google
s=gogole.searcher()
results=s.textsearch(string_to_be_searched)
print results['head']
print results['url']
print results['description']

2.For translator

import google
t=google.translator()
translated_string=t.translate(string_to_be_translated,target_language_name)

//Source language is detected automatically,by default target language is hindi
//You can view languages available by t.listlangs()

#Mon Aug 18 12:31:40 IST 2014
Source: README, updated 2014-08-30