Python wrapper for Bing Search and RAG extraction
Project description
PyBingScrapper
Python wrapper for Bing Search results.
Implementation
from PyBingScrapper.search import BingSearch
bing = BingSearch("Sachin Tendulkar")
#num - num of results to return
#max_lines - maximum number of lines/sentences to return in each result
bing_results = bing.get_results(num=4, max_lines=15)
# bing_results[i]['content'] - scrapped content
# nlines - num of iterations
# hfkey - hugging face secret key
print(bing.rag_output("Tell me about Mr. Narendra Modi?", bing_results, hfkey, n_iters=15)) #n_iters-optional
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
PyBingScrapper-0.0.7.tar.gz
(5.4 kB
view details)
File details
Details for the file PyBingScrapper-0.0.7.tar.gz
.
File metadata
- Download URL: PyBingScrapper-0.0.7.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3444aee7e8af1d63d906ed1831317a0273434b4c5dc8661edf7ce72aadea677d |
|
MD5 | d1c99b9968b2ddf821a2993bc24e3720 |
|
BLAKE2b-256 | e31df78e0bd807c2e0d8f409d822fe9494c452125b29e7c42f6e54c1259a15f3 |