Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.198.945 Times

bingapi 0.02

Company: Lakshman Prasad and Shabda Raaj
Date Added: October 11, 2013  |  Visits: 334

bingapi

Report Broken Link
Printer Friendly Version


Product Homepage
Download (33 downloads)



bingapi is a very thin Python wrapper over the Bing API. Bing provides a very simple Restful interface to their search engine and provides results in JSON and XML interface.<br /><br />With bingapi.py, we query the rest urls to get the JSON response, which is parsed with simplejson.py. bingapi.py just adds simple niceties like logging and error handling.<br /><br />Installing:<br /><br />easy_install bingapi<br /><br />or Svn it from https://svn.uswaretech.com/bingapi/<br /><br />Using:<br /><br />To use this library, you need to have an Appid from Bing. You can get it from<br />http://www.bing.com/developers/createapp.aspx<br /><br />The meat of bingapi.py is `talk_to_bing` function. It takes a query(eg. salsa)<br />and a sources(eg. web) and other optional parameters in extra_args<br />(eg. {'web.offset': 40}) and returns the dictionary of Bing's response.<br /><br />eg<br /><br />In [2]: from bingapi import bingapi<br /><br />In [3]: bing = bingapi.Bing('')<br /><br />In [4]: bing.talk_to_bing('salsa', sources='web')<br />Out[4]:<br />..........<br /><br />In [5]: bing.talk_to_bing('salsa', sources='web', extra_args={'web.offset':40})<br />Out[5]:<br />..........<br /><br />Class `Bing` also provides utility functions to do the various types of seraches<br />so you dont have to remember the source type.<br /><br />The various functions available are,<br /><br />do_web_search<br />do_image_search<br />do_news_search<br />do_spell_search<br />do_related_search<br />do_phonebook_search<br />do_answers_search<br /><br />All of them are used similarly.<br /><br />In [6]: bing.do_web_search('salsa')<br />Out[6]:<br />..........<br /><br />In [7]: bing.do_image_search('salsa')<br />Out[7]:<br />..............<br /><br />In [8]: bing.do_answers_search('what is salsa')<br />Out[8]:<br />...............<br /><br />If you want to use multiple sources in one call you can use `talk_to_bing`<br />directly as<br /><br />In [10]: bing.talk_to_bing(query='salsa', sources='web news')<br />Out[10]:<br />............

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Bingapi Bingapiin Bingapipy Dictionary Functions Import Responseegin Returns Serachesso Simple Types Utility
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


BINGAPI RELATED
Shell & Desktop  -  Hunter Dictionary 1.0
Hunter Chinese Dictionary functions as an online English-to-Chinese dictionary. Instead, it is a specialized Internet Browser, user can use it to browse the online Internet Dictionary Service (e.g. Yahoo Chinese Dictionary) to achieve the Chinese...
2.57 MB  
Networking  -  Get Better Excerpt 2.0.2
The Get Better Excerpt plugin works almost identical to the built in get_the_excerpt() and the_excerpt() functions except it returns whole words instead of cutting off the excerpt as the existing function does.
10 KB  
Database Tools  -  EMS Data Import 2011 for DB2 3.5.0.1
EMS Data Import for DB2 is a powerful utility that will help you import your data quickly from MS Excel, MS Access, DBF, XML, TXT and CSV files to DB2 tables. It provides adjustable import parameters, including: source data formats for all the...
 
Libraries  -  RADIUS::Dictionary 1.0
RADIUS::Dictionary is a RADIUS dictionary parser. SYNOPSIS use RADIUS::Dictionary; my $dict = new RADIUS::Dictionary "/etc/radius/dictionary"; $dict->readdict("/some/other/file"); my $num = $dict->attr_num(User-Name); my $name =...
43.01 KB  
Libraries  -  B::JVM::Utils 0.02
B::JVM::Utils is a Perl module that contains utility functions for B::JVM. SYNOPSIS use B::JVM::Utils qw(method1 method2); This package is a set of utilties that are useful when compiling Perl to the JVM architecture. They are a hodgepodge...
44.03 KB  
Libraries  -  PySBIG 0.03
PySBIG project can read SBIG CCD files and give you a Numeric array for the data and a dictionary for the headers. There is cPySBIG (since version 0.02) which is 40 times faster than the pure PySBIG module, also included. Version 0.03 now works...
9.22 KB  
Libraries  -  B::Utils 0.30
B::Utils is a helper functions for op tree manipulation. SYNOPSIS use B::Utils; These functions make it easier to manipulate the op tree. FUNCTIONS all_starts all_roots Returns a hash of all of the starting ops or root ops of...
44.03 KB  
Libraries  -  Bio::ExtractNE::MakeDict 1.06
Bio::ExtractNE::MakeDict is a package for creating dictionary. FUNCTIONS mkdict($input_file, $output_dictfile) This function creates named-entity dictionary. Note that $input_file is a hash. Currently, only SwissProt data is supported....
5.3 MB  
Education  -  ZKanji 0.717 Beta
zkanji is a free, open-source Japanese language learning tool and also a kanji and word dictionary software providing many useful features for those who are interested in the Japanese language. I've started making zkanji in the hope that it can...
13.1 MB  
Polls and Surveys  -  Glossword Glossary Compiler 1.8.10
Glossword Glossary Compiler helps you to create and publish online multilingual dictionary, glossary, or reference.Features - Adding terms to dictionary by several people at the same time. - UTF-8 encoding. More than 400 languages can be used in a...
 
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB