Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harrison/bing wrapper #656

Merged
merged 3 commits into from
Jan 19, 2023
Merged

Harrison/bing wrapper #656

merged 3 commits into from
Jan 19, 2023

Conversation

hwchase17
Copy link
Contributor

No description provided.

conceptofmind and others added 3 commits January 19, 2023 07:06
Hi @hwchase17,

We had previously spoken about alternative search engine integration to
SerpAPI. Following the Google Search Wrapper Utility, I have implemented
a utility to use Python to call the Bing Web Search API. This Bing
Search Wrapper produces a similar programmatic response using REST and
Python to the Google Search Wrapper. Currently, the Python SDK for
Microsoft Azure Web Search API seems to have numerous issues open so
this is the support team's official recommended approach until it is
fixed. I am still working on the full chain from our previous discussion
though but thought this would be useful in the meantime.

Usage:
```python3
import os
os.environ["BING_SEARCH_URL"] = ""
os.environ["BING_SUBSCRIPTION_KEY"] = ""
wrapper = BingSearchAPIWrapper()
wrapper.run("python")
```

Output:
```
Thanks to the flexibility of <b>Python</b> and the powerful ecosystem of packages, the Azure CLI supports features such as autocompletion (in shells that support it), persistent credentials, JMESPath result parsing, lazy initialization, network-less unit tests, and more. Building an open-source and cross-platform Azure CLI with <b>Python</b> by Dan Taylor. Learning. Before getting started, you may want to find out which IDEs and text editors are tailored to make <b>Python</b> editing easy, browse the list of introductory books, or look at code samples that you might find helpful.. There is a list of tutorials suitable for experienced programmers on the BeginnersGuide/Tutorials page. There is also a list of resources in other languages which might be ... The core of extensible programming is defining functions. <b>Python</b> allows mandatory and optional arguments, keyword arguments, and even arbitrary argument lists. More about defining functions in <b>Python</b> 3. <b>Python</b> is a programming language that lets you work quickly and integrate systems more effectively. Learn More. <b>Python</b> is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. <b>Python</b> is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming. This module is part of these learning paths. Build real world applications with <b>Python</b>. Introduction 1 min. What is <b>Python</b>? 3 min. Use the REPL 2 min. Variables and basic data types in <b>Python</b> 4 min. Exercise - output 1 min. Reading keyboard input 3 min. Exercise - Build a calculator 1 min. With <b>Python</b>, you can use while loops to run the same task multiple times and for loops to loop once over list data. In this module, you&#39;ll learn about the two loop types and when to apply each. Manage data with <b>Python</b> dictionaries. <b>Python</b> dictionaries allow you to model complex data. This module explores common scenarios where you could use ... <b>Python</b> is a popular programming language. <b>Python</b> can be used on a server to create web applications. Start learning <b>Python</b> now ». <b>Python</b> is an easy to interpret and high-level object-oriented programming language with easy-to-read syntax. Ideal for prototyping and ad-hoc tasks, <b>Python</b> has wide use in scientific computing, web development, and automation. As a general-purpose, beginner-friendly programming language, <b>Python</b> supports many top computer scientists and ...
```

Thank you,

Enrico
@hwchase17 hwchase17 merged commit d0fdc6d into master Jan 19, 2023
@hwchase17 hwchase17 deleted the harrison/bing-wrapper branch January 19, 2023 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants