Giter Club home page Giter Club logo

go-pixiv-proxy's Introduction

排队姬

go-pixiv-proxy

✨ 一个简单易懂的p站图片代理! ✨

license release GoReportCard

下载 · 文档

简介

一个简单易懂的p站图片代理!

使用说明

部署

直接部署

release 下载对应系统的可执行文件直接运行

启动参数

-h: host 默认 127.0.0.1

-p: 端口 默认 18090

-d: 指定域名(用于主页展示示例图片可以不填)

环境变量

注意:环境变量会 默认覆盖 启动参数

GPP_HOST: host

GPP_PORT: 端口

GPP_DOMAIN: 域名

代理图片

提供了两种代理的方法

替换 i.piximg.net 为你的域名

https://i.pximg.net/img-original/img/2022/05/21/22/35/46/98505703_p0.jpg

替换为

http://example.com/img-original/img/2022/05/21/22/35/46/98505703_p0.jpg

url 后接 pid

http://example.com/98505703

图片质量选择

针对 url 后接 pid 的使用方法,提供了图片质量选择的参数

使用方法:添加参数 t

支持

  • original
  • regular
  • small
  • thumb
  • mini

例子: http://example.com/98505703?t=original

代理 api

http://example.com/api/pid

其他示范用例

1. http://example.com/$path
- http://example.com/img-original/img/0000/00/00/00/00/00/12345678_p0.png

2. http://example.com/$pid[/$p][?t=original|regular|small|thumb|mini]
- http://example.com/12345678 (p0)
- http://example.com/12345678/0 (p0)
- http://example.com/12345678/1 (p1)
- http://example.com/12345678?t=small (small image)

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.