It is very nice that Bing gives you 50,000 queries per month for free. You can get your API key here, https://datamarket.azure.com/.
Here is the script:
Here is the output of the script:#!/usr/bin/env python# Modified from http://www.guguncube.com/2771/python-using-the-bing-search-api## by Eric Chou# eric@pythonicneteng.comimport urllibimport urllib2import jsondef main():query = "Python Newtork Engineering"response = bing_search(query, limit=10)#Raw print json.loads(response)['d']['results']#Titleprint "The top 10 results for your query " + query + ":"for i in json.loads(response)['d']['results']:print i['Title']def bing_search(query, limit=5, **kwargs):key = 'YOURKEY'baseURL = 'https://api.datamarket.azure.com/Bing/SearchWeb/'limit = str(limit)query = urllib.quote(query)# create credential for authenticationuser_agent = 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; FDM; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322)'credentials = (':%s' % key).encode('base64')[:-1]auth = 'Basic %s' % credentialsurl = baseURL+'Web?Query=%27'+query+'%27&$top='+limit+'&$format=json'request = urllib2.Request(url)request.add_header('Authorization', auth)request.add_header('User-Agent', user_agent)request_opener = urllib2.build_opener()response = request_opener.open(request)response_data = response.read()return response_dataif __name__ == "__main__":main()
$ python bingSearch_v1.py
The top 10 results for your query Python Newtork Engineering:
Python for Network Engineering | Facebook
Python for Network Engineers
Python for Network Engineers
Jeremy Filliben: Python Programming and the Network Engineer
Show 176 - Intro to Python & Automation for Network ...
Python For Network Engineers | Networking-Link
First Post! | Python for Network Engineers
Python For Scientific Engineering - OpenOpt
World News - Python Engineer
Network Test Engineer Python Jobs, Employment | Indeed.com
Happy Coding!
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from .Net Core Training in Chennai. or learn thru .Net Core Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
ReplyDeleteor Es6 Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.
DeleteFinal Year Projects for CSE in Python
Great Article
Final Year Projects for CSE in Python
FInal Year Project Centers in Chennai
JavaScript Training in Chennai
JavaScript Training in Chennai
Great Article
DeleteB.Tech Final Year Projects for CSE in Python
FInal Year Project Centers in Chennai
JavaScript Training in Chennai
JavaScript Training in Chennai
Wow what a Great Information about World Day its very nice informative post. thanks for the post. pandey baba
ReplyDeleteTry not to influence it to look all dolled into, in light of the fact that such bits of writing are taken to need in some other way. There are strict film content rules. script doctor
ReplyDeleteFirst You got a great blog .I will be interested in more similar topics. i see you got really very useful topics, i will be always checking your blog thanks. all in one search
ReplyDeleteHi, am a big follower of your blog. I am really happy to found such a helpful and fascinating post.Keep it up. CFA Audit | Fixed Assets Audit
ReplyDeleteHi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or learn thru Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. JavaScript Training in Chennai
ReplyDeleteYour blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging, digital agency
ReplyDeleteThanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. Keep in blogging. Duplicate Payment Review | Continuous Transaction Monitoring | Duplicate Payment Recovery
ReplyDeleteThanks for another wonderful post. Where else could anybody get that type of info in such an ideal way of writing? buy backlinks to your site
ReplyDeleteI am all that much satisfied with the substance you have specified. I needed to thank you for this extraordinary article. lesmeilleursvpn.com
ReplyDeleteThis is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses. https://internetprivatsphare.ch/
ReplyDeleteAwesome things you've generally imparted to us. Simply continue written work this sort of posts.The time which was squandered in going for educational cost now it can be utilized for studies.Thanks more info
ReplyDeleteThis is really great work. Thank you for sharing such a good and useful information here in the blog for students. vpnveteran.com
ReplyDeleteI would state, you do the genuinely amazing.This substance is made to a wonderful degree well. internet
ReplyDeleteMuch appreciated such a great amount for this data. I need to tell you I agree on a few of the focuses you make here and others might require some further survey, however I can see your perspective. lemigliori vpn
ReplyDeleteThis is really a big and great source of information. We can all contribute and benefit from reading as well as gaining knowledge from this content just amazing experience Thanks for sharing such a nice information.
ReplyDeleteDedicatedHosting4u.com
Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family. link building
ReplyDeleteThank you for sharing this great post, I am very impressed with your post, the information provided is meticulous and easy to understand. I will regularly follow your next post.
ReplyDeletemba
ReplyDeletebcom
scope after bsc
courses after bcom
bachelor of law
llb academic
post graduate diploma in computer application
qweq
ReplyDeleteMua vé máy bay tại đại lý Aivivu, tham khảo
ReplyDeletevé máy bay đi Mỹ tháng nào rẻ nhất
giá vé máy bay từ mỹ về việt nam tháng 12
lich bay tu duc ve viet nam
chuyến bay từ nga về việt nam
useful information on topics that plenty are interested on for this wonderful post.Admiring the time and effort you put into your b!.. marketing1on1.com/professional-seo-services-company
ReplyDeleteThen you do a little website analysis to see which headline, price, offer, etc. gives you the best response. As you tweak each element of your site, you improve sales little by little. acu ac uk
ReplyDeleteThank you.. Get the Azerbaijan electronic visa through online e visa application to travel to Azerbaijan. Just follow 3 steps, fill application, upload document and make online payment for azerbaijan e visa.
ReplyDeleteMedicaid and HealthThe most obvious answer to the question would be that health Insurance is for health -- like car Insurance is for cars, or home Insurance is for homes. What Is Iv In Marine Insurance
ReplyDelete