simple-api-duckduckgo/README.md
Andros Fenollosa 0a99c45f57 Update
2024-02-09 08:54:48 +01:00

1.4 KiB

Simple API for DuckDuckGo

Simple API for DuckDuckGo that performs searches by scraping.

No money or registration is necessary.

Use 🚀

curl localhost:8000/search/?q=test

Return

[
  {
    "title": "Test - Test de CI Oficial",
    "link": "test-iq-online.com",
    "body": "Test oficial en Francia. 20 preguntas en 20 minutos. La prueba de CI oficial determina su CI y envía resultados certificados.",
    "icon": false
  },
  {
    "title": "Speedtest by Ookla - The Global Broadband Speed Test",
    "link": "www.speedtest.net",
    "body": "Speedtest by Ookla is a global broadband speed test that lets you measure your internet connection speed and performance. You can also access various features and insights on network performance, 5G deployment, and enterprise solutions.",
    "icon": "external-content.duckduckgo.com/ip3/www.speedtest.net.ico"
  },
...
]

Endpoints 🛣️

/search/ - Search for a term.

Params:

  • q - The term to search for.

Requirements 📋

Run 🏃

docker compose up

Roadmap 🗺️

  • Param Query
  • Good testing
  • Param region
  • Param time
  • Pagination

Nerd stuff 🤓

  • Language: Python
  • Architecture: Clean architecture
  • Libraries: FastAPI, requests, beautifulsoup4, uvicorn and pytest.