Top-rated recipes tagged "google"http://code.activestate.com/recipes/tags/google/top/2012-12-31T15:33:39-08:00ActiveState Code Recipespygmail (can send mail) (Python) 2012-07-10T01:29:42-07:00Garretthttp://code.activestate.com/recipes/users/4181290/http://code.activestate.com/recipes/578203-pygmail-can-send-mail/ <p style="color: grey"> Python recipe 578203 by <a href="/recipes/users/4181290/">Garrett</a> (<a href="/recipes/tags/api/">api</a>, <a href="/recipes/tags/gmail/">gmail</a>, <a href="/recipes/tags/google/">google</a>, <a href="/recipes/tags/mail/">mail</a>, <a href="/recipes/tags/pop/">pop</a>, <a href="/recipes/tags/python/">python</a>). </p> <p>Can both send and receive mail, as well as do other things.</p> determine google count by automatisation (Python) 2012-12-31T15:33:39-08:00Peer Valhoegenhttp://code.activestate.com/recipes/users/4184749/http://code.activestate.com/recipes/578392-determine-google-count-by-automatisation/ <p style="color: grey"> Python recipe 578392 by <a href="/recipes/users/4184749/">Peer Valhoegen</a> (<a href="/recipes/tags/count/">count</a>, <a href="/recipes/tags/google/">google</a>, <a href="/recipes/tags/linux/">linux</a>). Revision 2. </p> <p>Sometimes you need o know the number of results that google gets for a specific query. There are lots of scripts that claim to do that, but I didn't find any that worked. They mostly rely on urllib, which is blocked by Google.</p> <p>This script automates what you would do by hand. It is therefore incredibly slow, but it works and seems future proof to me.</p> <p>You may want to adjust the respective timespan that is waited before certain operations. This script relies on the unix command xsel. I'm sure there are equivalent solutions on other operating systems.</p> Geocoding Lists via Google Maps (Python) 2012-05-11T05:06:27-07:00Mano Bastardohttp://code.activestate.com/recipes/users/4182040/http://code.activestate.com/recipes/578126-geocoding-lists-via-google-maps/ <p style="color: grey"> Python recipe 578126 by <a href="/recipes/users/4182040/">Mano Bastardo</a> (<a href="/recipes/tags/batch/">batch</a>, <a href="/recipes/tags/coordinates/">coordinates</a>, <a href="/recipes/tags/geocode/">geocode</a>, <a href="/recipes/tags/geocoding/">geocoding</a>, <a href="/recipes/tags/google/">google</a>, <a href="/recipes/tags/google_maps/">google_maps</a>, <a href="/recipes/tags/lat/">lat</a>, <a href="/recipes/tags/latitude/">latitude</a>, <a href="/recipes/tags/list/">list</a>, <a href="/recipes/tags/list_comprehension/">list_comprehension</a>, <a href="/recipes/tags/lng/">lng</a>, <a href="/recipes/tags/longitude/">longitude</a>, <a href="/recipes/tags/map/">map</a>, <a href="/recipes/tags/web/">web</a>). Revision 2. </p> <p>A simple script written as an experiment in geocoding addresses in a database. A list of addresses in the form of "100 Any Street, Anytown, CA, 10010" is passed to a Google Maps URL, and the latitude/longitude coordinates are extracted from the returned XML.</p> <p>XML methods are not used in this script, but simple string searches instead.</p> Tweet Google+ posts (Python) 2012-10-31T10:29:32-07:00Timothy Makobuhttp://code.activestate.com/recipes/users/4165901/http://code.activestate.com/recipes/578297-tweet-google-posts/ <p style="color: grey"> Python recipe 578297 by <a href="/recipes/users/4165901/">Timothy Makobu</a> (<a href="/recipes/tags/google/">google</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/twitter/">twitter</a>). Revision 2. </p> <p>Tweet public Google+ posts.</p> <p>The SQLite table was created with: CREATE TABLE posts(post varchar(200) unique);</p> Google App Engine Login (Python) 2011-07-06T07:57:50-07:00Boubakrhttp://code.activestate.com/recipes/users/4176416/http://code.activestate.com/recipes/577780-google-app-engine-login/ <p style="color: grey"> Python recipe 577780 by <a href="/recipes/users/4176416/">Boubakr</a> (<a href="/recipes/tags/google/">google</a>). </p> <p>a small code to login using Google App Engine.</p> (gopytranslte) script google translator (Python) 2011-04-14T17:17:12-07:00namakukingkonghttp://code.activestate.com/recipes/users/4176734/http://code.activestate.com/recipes/577556-gopytranslte-script-google-translator/ <p style="color: grey"> Python recipe 577556 by <a href="/recipes/users/4176734/">namakukingkong</a> (<a href="/recipes/tags/api/">api</a>, <a href="/recipes/tags/google/">google</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/python3/">python3</a>, <a href="/recipes/tags/script/">script</a>, <a href="/recipes/tags/translate/">translate</a>, <a href="/recipes/tags/translator/">translator</a>). Revision 3. </p> <p>hehehehe..... Very little code for study.....</p> GAE User Session with HTTP Basic Authentication (Python) 2010-05-20T23:49:49-07:00Berendhttp://code.activestate.com/recipes/users/4173891/http://code.activestate.com/recipes/577235-gae-user-session-with-http-basic-authentication/ <p style="color: grey"> Python recipe 577235 by <a href="/recipes/users/4173891/">Berend</a> (<a href="/recipes/tags/appengine/">appengine</a>, <a href="/recipes/tags/appspot/">appspot</a>, <a href="/recipes/tags/authentication/">authentication</a>, <a href="/recipes/tags/clients/">clients</a>, <a href="/recipes/tags/gae/">gae</a>, <a href="/recipes/tags/google/">google</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/sessions/">sessions</a>, <a href="/recipes/tags/web/">web</a>, <a href="/recipes/tags/wsgi/">wsgi</a>). Revision 6. </p> <p>HTTP Basic is an unsecure but easy to implement authentication protocol. I think its good enough for a simple client in front of an SSL capable server. Google App-Engine supports SSL, and here is a recipe to set up the user-session using HTTP Basic. </p> <p>gauth has the code from my not-really-a-recipe listing at: <a href="http://code.activestate.com/recipes/577217-routines-for-programmatically-authenticating-with-" rel="nofollow">http://code.activestate.com/recipes/577217-routines-for-programmatically-authenticating-with-</a></p> Routines for programmatically authenticating with the Google Accounts system at Google App-Engine. (Python) 2010-05-20T20:39:50-07:00Berendhttp://code.activestate.com/recipes/users/4173891/http://code.activestate.com/recipes/577217-routines-for-programmatically-authenticating-with-/ <p style="color: grey"> Python recipe 577217 by <a href="/recipes/users/4173891/">Berend</a> (<a href="/recipes/tags/auth/">auth</a>, <a href="/recipes/tags/authentication/">authentication</a>, <a href="/recipes/tags/gae/">gae</a>, <a href="/recipes/tags/google/">google</a>, <a href="/recipes/tags/http/">http</a>, <a href="/recipes/tags/sessions/">sessions</a>). Revision 2. </p> <p>This takes two calls, one to the ClientLogin service of Google Accounts, and then a second to the login frontend of App Engine.</p> <p>User credentials are provided to the first, which responds with a token. Passing that token to the _ah/login GAE endpoint then gives the cookie that can be used to make further authenticated requests.</p> get a stock historical value from google finance (Python) 2008-09-07T12:03:11-07:00bussiere bussierehttp://code.activestate.com/recipes/users/4050557/http://code.activestate.com/recipes/576495-get-a-stock-historical-value-from-google-finance/ <p style="color: grey"> Python recipe 576495 by <a href="/recipes/users/4050557/">bussiere bussiere</a> (<a href="/recipes/tags/finance/">finance</a>, <a href="/recipes/tags/google/">google</a>, <a href="/recipes/tags/historical/">historical</a>, <a href="/recipes/tags/value/">value</a>). </p> <p>how to get a stock historical value from google finance</p> A modification of the blogger exemple for adding category (Python) 2008-08-20T21:08:06-07:00bussiere bussierehttp://code.activestate.com/recipes/users/4050557/http://code.activestate.com/recipes/576441-a-modification-of-the-blogger-exemple-for-adding-c/ <p style="color: grey"> Python recipe 576441 by <a href="/recipes/users/4050557/">bussiere bussiere</a> (<a href="/recipes/tags/api/">api</a>, <a href="/recipes/tags/blog/">blog</a>, <a href="/recipes/tags/blogger/">blogger</a>, <a href="/recipes/tags/blogspot/">blogspot</a>, <a href="/recipes/tags/google/">google</a>, <a href="/recipes/tags/tag/">tag</a>, <a href="/recipes/tags/tags/">tags</a>). Revision 3. </p> <p>Just because the exemple from google didn't add the category thanks from : <a href="http://coolnamehere.wordpress.com/2008/01/02/adding-categories-to-the-python-blogger-client/" rel="nofollow">http://coolnamehere.wordpress.com/2008/01/02/adding-categories-to-the-python-blogger-client/</a></p>