Binger
Binger is a command-line tool that automates Bing search queries and extracts result URLs. The tool utilizes Selenium WebDriver with Chrome to perform searches and navigate through result pages.
Features
- Perform automated Bing searches using custom queries
- Extract and display unique result URLs
- Navigate through multiple pages of search results
- Configurable maximum page load limit
- Headless browser operation for background execution
Prerequisites
Before using Binger, ensure you have the following installed:
- Go 1.18 or later
- ChromeDriver (must be in your PATH or in the same directory as the executable)
- Chrome browser
Installation
Option 1: Using go install
go install github.com/gilsgil/binger@latest
Option 2: Building from source
git clone https://github.com/gilsgil/binger.git
cd binger
go build
Usage
binger -q "your search query"
Command Line Options
-q: (Required) The search query to perform on Bing
-c: (Optional) Maximum number of "Next page" clicks to perform (default: 10000)
-v: (Optional) Enable verbose output for debugging and status updates
Examples
Basic search:
binger -q "golang tutorials"
Search with limited page navigation (5 pages):
binger -q "cybersecurity news" -c 5
Search with verbose output:
binger -q "cloud computing" -v
Output
The tool prints discovered unique URLs to standard output, one per line. This format makes it easy to pipe the results to other tools or save them to a file.
Example:
binger -q "golang projects" > golang_urls.txt
Notes
- The tool operates in headless mode by default, meaning no browser window will be visible during execution
- Binger includes built-in delays to respect Bing's rate limits and allow pages to load properly
- URLs are deduplicated, so each unique URL is only reported once
License
[Add your license information here]
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.