GithubHelp home page GithubHelp logo

acrnm-api's Introduction

acrnm-api

这是一个现代、快速、高性能的基于 FastAPI 编写的解析网站为接口的后端.

使用

被解析网址 acrnm.com/index

该项目部署在阿里云 Serverless 后端

目前提供了两个接口://image

/ 接口

返回原网页的商品列表。

响应示例:

[
    {
        "name": "J123A-GT",
        "href": "/J123A-GT_SS24",
        "price": "1,458.00 EUR",
        "variants": [
            {
                "color": "black",
                "size": "XS/S"
            },
            {
                "color": "alpha_green",
                "size": "XS/S/M"
            }
        ]
    },
    ...
]

/image 接口

返回某商品的第一张展示图链接。

使用该接口时应传入该商品的 href

调用示例:

/image/J118-WS_SS24

响应示例:

"https://acrnm.com/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBNWJrQVE9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--40b550a0eb67cefb443dfbd7e639d2d4bfbb490f/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9MWm05eWJXRjBPZ2wzWldKd09oUnlaWE5wZW1WZmRHOWZiR2x0YVhSYkIya0NZQWxwQW1BSk9neGpiMjUyWlhKME93WT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--3d0ae92aa09fe6f90cb74abd0968f1648b3acb0e/J118-DS_1216.jpg"

acrnm-api's People

Contributors

drelf2018 avatar

Watchers

 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.