Code Monkey home page Code Monkey logo

duckduckgo-api's Introduction

duckduckgo-api

Use vercel

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

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

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

Deploy to Vercel

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

Self host

###use docker

docker run -p 8000:8000 binjie09/duckduckgo-api

then get http://localhost:8000/search?q=啊对对对是什么梗&max_results=3

[
    {
        "body": "TikTok video from 乐萱 (@rachel_5205). 原聲 - 小熊🐻 - 啊对对对.",
        "href": "https://www.tiktok.com/@rachel_5205/video/7117859473565289755",
        "title": "乐萱 (@rachel_5205) 's videos with 原聲 - 小熊🐻 - 啊对对对 | TikTok"
    },
    {
        "body": "很显然,这名主播的目的,是想要凭借\"啊对对对\"这种说法讽刺对方的死鸭子嘴硬,表现出的是一种\"你都已经这样了,那我为什么不顺从你呢?\"但看\"啊对对对\"似乎还能看到表达赞同和认可的那份本意,可将其放到如…",
        "href": "https://www.sohu.com/a/534828306_119620",
        "title": "讽刺摆烂的\"啊对对对\",为何成了\"摆烂圣经\"?_含义_对方_态度"
    },
    {
        "body": "\"啊对对对\"完全不同,在如今这个常用的语境下,当你和对方讲道理或者指责对方希望他能够改正的时候,这句\"啊对对对\"透露的只有藐视和满不在乎。. 也正是这满满的负能量,使得\"啊对对对\"发臭和让人反感的速度要远远快于\"绝绝子\"。. 如果将 ...",
        "href": "https://www.ali213.net/news/html/2022-4/665405_3.html",
        "title": "讽刺摆烂的\"啊对对对\",为何成了\"摆烂圣经\"?(3)_游侠网 Ali213.net"
    }
]

self host

git clone https://github.com/binjie09/duckduckgo-api.git
cd duckduckgo-api
python3 -m venv myenv && source myenv/bin/activate && pip install -r requirements.txt
gunicorn -b 0.0.0.0:8000 app:app

duckduckgo-api's People

Contributors

binjie09 avatar zmh-program avatar zyx-a avatar qi-mooo avatar

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.