A public API for the search-engine-parser library
To extend the application of search-engine-parser to other languages for querying all types of popular search engines on search-engine-parser. The API was built using Fast API.
- Search Engine API
Some of the popular search engines include:
- DuckDuckGo
- GitHub
- StackOverflow
- Baidu
- YouTube
View all supported engines
# install only package dependencies
poetry install
# Installs `pysearch` cli tool
poetry run uvicorn main:app --reload
App is available on http://127.0.0.1:8000/. An Interactive Documentation of API is also available on http://127.0.0.1/docs
poetry run pytest
curl -X GET "http://localhost:8000/search/?query=Preaching%20the%20Choir&engine=google&page=1" -H "accept: application/json"
All Parameters that can be passed to the search
command of the search-engine-parser can be as get paramters
- engine: (Optional: True, default=google). The search engine to use for querying. The full list can be found supported engines
- query: The query string to search
- page: default=1. The page number to return in the results