Skip to main content

bing Search unofficial API for Python with no external dependencies

Project description

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

pip install python-bingsearch

Using

from bingsearch.bingsearch import BingSearch

bs = BingSearch()
data = bs.search("python")
print(data)
# 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_bingsearch-1.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_bingsearch-1.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file python_bingsearch-1.1.0.tar.gz.

File metadata

  • Download URL: python_bingsearch-1.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.16

File hashes

Hashes for python_bingsearch-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4b900b8b041f1259299e04baf9d5dfaaba5f633188d897d63b6a489794b104af
MD5 12b47a919f3b6a6073aa205c297ea3dd
BLAKE2b-256 f1478787fb244731c1858f08075ca939c570fe2d6faccdc48e5aa3929ea26d9d

See more details on using hashes here.

File details

Details for the file python_bingsearch-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_bingsearch-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad556f007e093391581153e41aea3acb48f1158a5a7835977f2624ac62bce9b4
MD5 8892ead65aa4a29a6f03a4e23a92d801
BLAKE2b-256 277e76e52e6c734f47ba5393ed6edbaa078d7fcd5c7cfe2b0650284e12d6756c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page