Giter Site home page Giter Site logo

duckduckgo-api's Introduction

DuckDuckGo API

Deploy to Vercel

https://duckduckgo-api0.vercel.app/search?q=啊对对对是什么梗&max_results=3

使用vercel部署的本项目,免费,但是vercel免费用量用完就无了

可点下方按钮部署到自己的Vercel

Deploy to Vercel

  1. 前往 vercel.com
  2. 点击 Login Login
  3. 点击 Continue with GitHub 通过 GitHub 进行登录 Continue with GitHub
  4. 登录 GitHub 并允许访问所有存储库(如果系统这样提示)
  5. Fork 这个仓库
  6. 返回到你的 Vercel dashboard
  7. 选择 Import Project Import Project
  8. 选择 Import a Git Repository Import a Git Repository
  9. 选择 root 并将所有内容保持不变,并且只需添加名为 PAT_1 的环境变量(如图所示),其中将包含一个个人访问令牌(PAT),你可以在这里轻松创建(保留默认,并且只需要命名下,名字随便)
  10. 点击 deploy,这就完成了,查看你的域名就可使用 API 了!
  11. 注意,国内用户还得部署自己的二级域名

Self hosting

git clone https://github.com/alitrack/duckduckgo-api.git
cd duckduckgo-api
python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
uvicorn --host 0.0.0.0 --port 8000 app:app

duckduckgo-api's People

Contributors

alitrack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

leoterry-ulrica

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.