# PyBing
Python wrapper for Bing Search results.
## Implementation
```python
from PyBingRAG.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?", n_iters=15, bing_results, hfkey))
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Vishnunkumar/PyBingRAG/",
"name": "PyBingRAG",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "bing search python",
"author": "Vishnu Nandakumar",
"author_email": "nkumarvishnu25@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/3d/10/e27076e869e2972988b4bba657fc1447ecceee36a46988b210808fd49422/PyBingRAG-0.0.5.tar.gz",
"platform": null,
"description": "# PyBing\nPython wrapper for Bing Search results.\n\n## Implementation\n\n```python\nfrom PyBingRAG.search import BingSearch\n\nbing = BingSearch(\"Sachin Tendulkar\")\n#num - num of results to return\n#max_lines - maximum number of lines/sentences to return in each result\nbing_results = bing.get_results(num=4, max_lines=15)\n# bing_results[i]['content'] - scrapped content\n# nlines - num of iterations\n# hfkey - hugging face secret key\nprint(bing.rag_output(\"Tell me about Mr. Narendra Modi?\", n_iters=15, bing_results, hfkey))\n\n```\n",
"bugtrack_url": null,
"license": "MIT license",
"summary": "Python wrapper for Bing Search and RAG extraction",
"version": "0.0.5",
"project_urls": {
"Homepage": "https://github.com/Vishnunkumar/PyBingRAG/"
},
"split_keywords": [
"bing",
"search",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3d10e27076e869e2972988b4bba657fc1447ecceee36a46988b210808fd49422",
"md5": "0e3c1c00bc82fa7366ce6883e251c909",
"sha256": "2ca863d82b8ac715fb100492cbadd8a2407eba110a3444edddc9acc8b3046d44"
},
"downloads": -1,
"filename": "PyBingRAG-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "0e3c1c00bc82fa7366ce6883e251c909",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5349,
"upload_time": "2023-11-01T08:45:23",
"upload_time_iso_8601": "2023-11-01T08:45:23.800660Z",
"url": "https://files.pythonhosted.org/packages/3d/10/e27076e869e2972988b4bba657fc1447ecceee36a46988b210808fd49422/PyBingRAG-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-01 08:45:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Vishnunkumar",
"github_project": "PyBingRAG",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pybingrag"
}