Retrieves the first 50 search results made via the Bing Search API for user-specified search terms.
- Clone this repository somewhere (
/home/toolon a ScraperWiki box to get the web UI working). - Make a virtualenv and
pip install -r requirements.txt. (You should be able to use the--useroption instead of a virtualenv if you prefer.) - Get a Bing API key (see here).
- Add
export BING_API_KEY='<YOUR_API_KEY>'to~/.bash_profileand optionally reload~/.bash_profilein the current terminal: do. ~/.bash_profileif you want to use the tool immediately.
If using this locally rather than via ScraperWiki's web UI, you can just clone anywhere, and just run directly.
Either run directly using:
python run_bing_search.py <search term 1> <search term 2> ...
or visit the "Code your own tool" page in your box and enter comma-separated search terms there.
Data is stored in swdata in scraperwiki.sqlite.