Giter VIP home page Giter VIP logo

pixivnow's Introduction

PixivNow Logo

Pixiv Service Proxy

Deploy with Vercel

免费部署一个一模一样的服务步骤很简单——点上面的按钮然后一直下一步即可。
各位爹不要再爬我的服务了好吗?100GB/h的额度都能被您爬完了,我自己还怎么看色图呢?
好自为之喵,不要怪我骂人喵。

API

您可以使用以下方式传递用户 token 来鉴权:

  • Header 以Authorization传递
  • Cookie 以键名PHPSESSID传递

请求路径 /ajax/* 的返回结果与 https://pixiv.net/ajax/* 的行为完全一致。

以下列举部分 PixivNow 的独特接口:

/api/illust/random

返回随机图片,其实是 /ajax/illust/discovery 的语法糖,也支持直接返回图片。

  • max {number} 返回图片的个数
  • mode {'all' | 'safe' | 'r18'} 其中 r18 只有在登录状态且参数设置允许时才会返回
  • format {'image' | 'json'} 返回的格式,如果 Accept 包含 image 则预设为 image

/api/ranking

/ranking.php 的重定向。

/user

通过传入的 token,以 json 格式返回源站 <meta name="global-data"> 中的用户信息。

图片代理

本站的图片使用 CloudFlare Workers 进行代理,可以直接访问欣赏众多插画。

但是由于遭遇了大量不明流量,因此我们暂时开启了图片代理服务的防盗链。如果您有自行部署整站的需要,可以通过在Vercel环境变量VITE_PXIMG_BASEURL_I中传入反代url(首选),或修改 vercel.json中的对于图片的重定向配置,图片的请求路径与源站完全一致。


For communication and learning only.

All data & pictures from query: ©Pixiv & Illusts' authors

Copyright 2021 PixivNow

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

pixivnow's People

Contributors

alpha5130 avatar asadahimeka avatar dependabot[bot] avatar dragon-fish avatar hoshino-yumetsuki avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pixivnow's Issues

[Bug] vercel.json 中对于图片的重定向配置失效?

我尝试通过Vercel部署,发现无法显示图片,按照Readme所写替换为自己的反代地址,但是仍然被定向至i.pixiv.net.
无标题
无标题2

我的反代应该没有问题,因为当我将域名替换成我的后能够显示出来。
无标题3
麻烦提供一下解决办法谢谢

【公告】死亡倒计时

各位,早上好中午好晚上好:

我们希望通知您,由于 Vercel 在 2024年4月4日 对其定价策略进行了修改,细化了收费指标,这对我们的项目产生了重大影响。特别是,我们的项目在部分指标上的用量已经远超过了免费计划的限额。由于 PixivNow 是一个开源项目,并且到目前为止我们没有任何盈利,我们很难为了这个兴趣使然的项目自掏腰包。

幸运的是,Vercel 为现有的免费计划用户提供了 6 个月的缓冲期,这意味着我们的服务在接下来的六个月内不会受到影响。但是在此之后(大约是 2024年9月),我们的服务有极大概率将被迫中断。

在接下来的几个月里,我们将探索所有可能的解决方案以继续提供服务(前提是尽量不要花钱)。

我们非常感谢您一直以来对 PixivNow 的支持和理解。如果您希望继续支持我们,我们正在考虑接受赞助来帮助维持项目的运行。您可以通过访问我们的赞助页面了解更多信息,并考虑成为我们的赞助者。

Dragon Fish
2024年4月26日

赞助我们(?)

联系我们

QQ 群:1026023666

[提问] 如何在自己电脑上部署本项目?——更便宜的解决方案

电脑有改别人废稿做出的NginxPixiv反代,可以直接开Pixiv(首页较慢),也试着编译过本项目为html(因为不太会Vue,所以以做出api跳转到本地反代失败而告终),因为觉得本项目色图(bushi)推荐机制比原Pixiv更好,而且加载速度也更快,所以想在本地部署一个(有时间的话可能会做出侧栏的插画页面?)

总体来说,就是想让本项目做出本地版,用户通过反代自行部署到机器上(这样也是一种更便宜的解决方案,还不用与某网络环境斗智斗勇)

Api 404 error

I install on my server with this command:

yarn
yarn build

then I configured nginx root directory but when I visit my site's api I get 404 error. Is there anything else I need to configure to get API working?

drop `@fortawesome/*`

PixivNow/src/main.ts

Lines 21 to 27 in 4b85565

// FontAwesome
// https://fontawesome.com/v5.15/icons
import { library } from '@fortawesome/fontawesome-svg-core'
import { fas } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
library.add(fas)
app.component('fa', FontAwesomeIcon)

任选一种方案皆可

  • 换用 @vicons/fa
  • 不换依赖,改成按需导入
  • 也可以找其他方案,比如换成 auto import(好像 NaiveUI 社区有人提出了 @vicons/fa 的 auto import 的脚本)

目前全量导入 fontawesome-svg-core 导致入口文件非常巨大,流量有点扛不住

use `http-only` for token cookie

虽然要求用户自己提供 cookie 本身就已经够不安全了,但我们还是可以让 cookie 保存的稍微安全一点

(这个功能难道不应该先给 BlogNow 做吗 kora)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • axios ^1.6.8
  • date-fns ^3.6.0
  • date-fns-tz ^3.1.3
  • fflate ^0.8.2
  • gif.js ^0.2.0
  • js-cookie ^3.0.5
  • naive-ui ^2.38.1
  • nprogress ^0.2.0
  • pinia ^2.1.7
  • vue ^3.4.23
  • vue-gtag ^2.0.1
  • vue-i18n ^9.13.0
  • vue-router ^4.3.2
  • vue-waterfall-plugin-next ^2.4.3
  • @dragon-fish/sensitive-words-filter ^2.0.1
  • @iconify-json/fa-solid ^1.1.8
  • @prettier/plugin-pug ^3.0.0
  • @types/cookie ^0.6.0
  • @types/gif.js ^0.2.5
  • @types/js-cookie ^3.0.6
  • @types/lodash.escaperegexp ^4.1.9
  • @types/node ^20.12.7
  • @types/nprogress ^0.2.3
  • @vercel/node ^3.0.27
  • @vitejs/plugin-vue ^5.0.4
  • @vue/language-plugin-pug ^1.8.27
  • @vueuse/core ^10.9.0
  • cheerio 1.0.0-rc.12
  • conventional-changelog-cli ^4.1.0
  • cookie ^0.6.0
  • lodash.escaperegexp ^4.1.2
  • picocolors ^1.0.0
  • prettier ^3.2.5
  • pug ^3.0.2
  • sass ^1.75.0
  • tslib ^2.6.2
  • typescript ^5.4.5
  • unplugin-auto-import ^0.17.5
  • unplugin-icons ^0.18.5
  • unplugin-vue-components ^0.26.0
  • vercel ^32.7.2
  • vite ^5.2.9

  • Check this box to trigger a request for Renovate to run again on this repository

手机端ui适配问题

在手机端网页访问的时候图片只会显示一列,是否可以适配成2列
61134fbce2519c02c06b7e6b036affc0-866537205_Screenshot_2023-09-10-23-04-44-155_com quark browser
比如这样子
image

Only 24 images of an artist are shown

Currently when visiting the pixiv.js.org website and browsing trough the posts of an artist, only 24 max are shown and here's no option to show more.

Migrate to Cloudflare Pages

vercel被爬爆了(准确来说 2 天之内使用量 300Gb/hour)
无法承担 vercel 高昂的月租金(20刀/月),预计迁移到 Cloudflare Pages 付费版(5刀/月)

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.