MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    又是一个Pixiv的图片API

    使用交流
    8
    23
    5713
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RainChan
      RainChan 摸鱼 last edited by RainChan

      Pixiv图片API服务

      首发于 https://rainchan.win/projects/pximg

      欢迎使用RainChan的图片API!

      图库网站 https://imgs.rainchan.win

      使用如下域名访问API,两个域名都能访问API。最近手上有几台空服务器,未来可能会增加节点。

      Heroku节点
      https://pximg.rainchan.win/
      Glitch节点
      https://rc-pximg.glitch.me/
      香港节点
      https://pximg2.rainchan.win/img
      

      访问/img可以得到一张图片

      使用/img?img_id=图片id&web=true可以得到一张适合Web环境使用的图片

      例如 https://pximg.rainchan.win/img 可以随即返回一张比较小的图片

      使用 https://pximg.rainchan.win/img?img_id=80616033&web=true 可以指定获取某一张图片(前提是它在我的收藏夹内)

      使用 https://pximg.rainchan.win/img?img_id=80616033 可以获取某张图片的原始文件

      关于服务器

      服务器使用的是Heroku和Glitch的Serverless服务,首次使用API需要等待服务启动,所以第一次请求响应时间会非常长

      其中,Heroku节点使用的是Github学生包送的两年Hobby套餐,可以持续保持Web应用在线,欢迎使用。

      新增香港节点,用的是本人的腾讯云轻量服务器,请勿滥用。

      效果图

      Heroku节点

      Heroku节点

      Glitch节点

      Glitch节点

      香港节点

      香港节点

      想要某张图片,但是数据库里没有

      可以在下面留言,我可能会添加

      Orisland 1 Reply Last reply Reply Quote 0
      • 洛
        洛绫华酱 last edited by

        是gc的api,好耶

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User last edited by

          好耶

          1 Reply Last reply Reply Quote 0
          • RainChan
            RainChan 摸鱼 last edited by

            香港节点收到攻击。。。。
            为什么要打我这种公共API,真够无聊的。。。。

            1 Reply Last reply Reply Quote 0
            • StageGuard
              StageGuard last edited by

              是gc的api,好耶

              1 Reply Last reply Reply Quote 0
              • 未来のミライ
                未来のミライ ⭐2021⭐ last edited by

                nice

                1 Reply Last reply Reply Quote 0
                • RainChan
                  RainChan 摸鱼 last edited by RainChan

                  API更新了!支持查询图片源信息和直接随机返回原图了。还有可以返回任意id的图片
                  以及新的主页
                  https://pximg.rainchan.win/
                  https://rc-pximg.glitch.me/
                  https://pximg2.rainchan.win/

                  1 Reply Last reply Reply Quote 0
                  • RainChan
                    RainChan 摸鱼 last edited by

                    新增了一个图库网站 https://imgs.rainchan.win
                    大家试试看速度如何

                    Orisland 1 Reply Last reply Reply Quote 0
                    • Orisland
                      Orisland 摸鱼 @RainChan last edited by

                      @rainchan 自带反代理服务吗٩(๑•ㅂ•)۶
                      我爬了8年的pixiv周榜图大概几万张,可以存数据库吗✧*。٩(ˊᗜˋ*)و✧*。

                      RainChan 1 Reply Last reply Reply Quote 0
                      • RainChan
                        RainChan 摸鱼 @Orisland last edited by

                        @orisland 这只是个proxy服务,不存储任何图片数据。这么多图可以写个脚本添加到我的收藏夹里

                        Orisland 1 Reply Last reply Reply Quote 0
                        • H
                          hundun000 ⭐2021⭐ last edited by

                          好耶,已经用起来了
                          下一步想实现随机索图时保存它的id(以便有需要时进一步取原图),我看了下我用的openfeign的文档和其Response类源码,并没有学会怎么取到重定向后的那个带id的url。各位有什么方法吗?

                          1 Reply Last reply Reply Quote 0
                          • Orisland
                            Orisland 摸鱼 @RainChan last edited by

                            @rainchan 有相关样例吗,目前储存在阿里的oss里,1m小水管ecs访问速度堪忧( •︠ˍ•︡ )

                            RainChan 1 Reply Last reply Reply Quote 0
                            • RainChan
                              RainChan 摸鱼 @Orisland last edited by

                              @orisland 额。。。。你可以像我一样弄个proxy挂到国外serverless大水管上。然后就很舒服了

                              Orisland 1 Reply Last reply Reply Quote 0
                              • Orisland
                                Orisland 摸鱼 @RainChan last edited by

                                @rainchan 哎好的吧……

                                RainChan 1 Reply Last reply Reply Quote 0
                                • RainChan
                                  RainChan 摸鱼 @Orisland last edited by

                                  @orisland 比较好玩的事情是这些serverless有很多都是免费的。你甚至能在这些serverless服务上运行QQbot
                                  https://github.com/mzdluo123/glitch_gocq

                                  Orisland 1 Reply Last reply Reply Quote 0
                                  • Orisland
                                    Orisland 摸鱼 @RainChan last edited by

                                    @rainchan 噗,不知道的事情增加了.jpg
                                    康康康康……

                                    1 Reply Last reply Reply Quote 0
                                    • Orisland
                                      Orisland 摸鱼 @RainChan last edited by

                                      @rainchan 哎,原来网页里会随机出r18吗787D213D-4E06-4433-BA8D-7348373F04CC.jpeg
                                      ( ・᷄ὢ・᷅ )嗯?

                                      RainChan 1 Reply Last reply Reply Quote 1
                                      • RainChan
                                        RainChan 摸鱼 @Orisland last edited by

                                        @orisland 我不知道 别问我

                                        Orisland 1 Reply Last reply Reply Quote 0
                                        • Orisland
                                          Orisland 摸鱼 @RainChan last edited by

                                          @rainchan ꉂꉂ◟(˃᷄ꇴ˂᷅ ૂ๑)༡л̵ʱªʱª✧

                                          1 Reply Last reply Reply Quote 0
                                          • MEYUYU
                                            MEYUYU 摸鱼 last edited by

                                            一个pid包含多张图片,请问如何返回第二张及后面的图片

                                            RainChan 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact