Skip to content

bisohns/search-engine-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

search-engine-api

A public API for the search-engine-parser library


Build Status License: MIT


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.

Popular Supported Engines

Some of the popular search engines include:

  • Google
  • DuckDuckGo
  • GitHub
  • StackOverflow
  • Baidu
  • YouTube

View all supported engines

Installation

    # 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

Running the tests

    poetry run pytest

Usage

Curl

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

Parameter

  • 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

About

A public API for the search-engine-parser library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages