Git Product home page Git Product logo

cliptalk's Introduction

一、安装

1.1 克隆代码

git clone https://github.com/disingn/cliptalk.git

1.2 构建程序

cd cliptalk
export GOOS=linux                                                             
export GOARCH=amd64
go build -o cliptalk

1.3 配置文件

cp config.yaml.example config.yaml

修改配置文件

App:
  #Gemini 的 apikey
  GeminiKey:
    - key1
    - key2
  #浏览器的 UserAgent 用来解析抖音链接
  UserAgents:
    - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.2.15
    - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.66
#服务器配置
Sever:
    Port: 3100
    Host: localhost

# #代理配置 用代理( http|https|socks5://ip:port ) 
# Proxy:
#     Protocol: socks5://192.168.1.10:3200

#代理配置 不用代理 
Proxy:
    Protocol: 

嫌麻烦可以直接用实例的配置文件

1.4 启动程序

./cliptalk

1.5 配置Nginx反代

这个自己使用宝塔或者 1panel 都可以,这里就不多说了

二、使用

2.1 接口

抖音去水印接口请求方式 POST 请求 请求地址:/remove 示例如下:

curl --location --request POST 'localhost:3100/remove' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url":"https://v.douyin.com/iLYNG8vA/"
}'

返回的 json 参数:

{
    "finalUrl": "去除水印的视频链接",
    "message": "success",
    "title": "视频标题"
}

抖音视频转文本接口请求方式 POST 请求 请求地址:/video 示例如下:

curl --location --request POST 'localhost:3100/video' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url":"https://v.douyin.com/iLYNG8vA/"
}'

返回的 json 参数:

{
    "finalUrl": "去除水印的视频链接",
    "message": "success",
    "title": "视频标题",
    "desc": "视频文本"
}

docker 部署:

1.1准备工作

安装 docker 和 docker-compose (这里建议使用 docker-compose)

1.2 部署

cd cliptalk
docker-compose up -d

三、其他

其他的就都和上面的一样了,如果有问题可以加群讨论

QQ: 814702872

cliptalk's People

Contributors

disingn avatar mingyue0094 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.