Metadata-Version: 2.1
Name: python-bingsearch
Version: 1.1.0
Summary: bing Search unofficial API for Python with no external dependencies
Home-page: https://github.com/samsha1971/python-bingsearch
Author: Sam Sha
Author-email: sam_sha@163.com
Maintainer: Sam Sha
Keywords: search-api bing python
Platform: all
Classifier: Development Status :: 5 - Production/Stable
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: requests>=2.32.3
Requires-Dist: beautifulsoup4>=4.12.3
Requires-Dist: lxml>=5.3.0
Requires-Dist: playwright>=1.48.0

Python Bing Search API
======================

Unofficial bing Search API for Python.

It uses web scraping in the background and is compatible with both
**Python 2 and 3**.

Source
------

https://github.com/samsha1971/python-bingsearch

Why this project?
-----------------

for everyone who want to use bing search.

Installation
------------

.. code:: bash

   pip install python-bingsearch

Using
-----

.. code:: bash

   from bingsearch.bingsearch import BingSearch

   bs = BingSearch()
   data = bs.search("python")
   print(data)

.. code:: python

   # reuse in a program

   ## first times
   with BingSearch() as bs:
       results = bs.search(
           args.keyword, num_results=args.num_results, debug=args.debug)
       
   ## second times
   bs = BingSearch()
   results = bs.search(
       args.keyword, num_results=args.num_results, debug=args.debug)
   bs.release_resource() # Need active resource release

   ## third times
   with BingSearch() as bs:
       results = bs.search(
           args.keyword, num_results=args.num_results, debug=args.debug)
