Simple API for DuckDuckGo that performs searches by scraping.
Go to file
Andros Fenollosa 0a99c45f57 Update
2024-02-09 08:54:48 +01:00
gateways Remove import and add more commentaries 2024-02-09 08:39:07 +01:00
docker-compose.yaml Update 2024-02-08 12:52:28 +01:00
Dockerfile Update 2024-02-08 12:52:28 +01:00
main.py Remove import and add more commentaries 2024-02-09 08:39:07 +01:00
README.md Update 2024-02-09 08:54:48 +01:00
requirements.txt Update 2024-02-08 12:52:28 +01:00
use_cases.py Remove import and add more commentaries 2024-02-09 08:39:07 +01:00

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.