Coder Social home page Coder Social logo

potykion / w2w-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 439 KB

Парсер страничек с Lamoda шмотками и не только

Home Page: https://hub.docker.com/r/potykion/lamoda-parser

Dockerfile 0.50% Python 14.04% HTML 85.46%
lamoda requests-html parsing

w2w-server's Introduction

lamoda-parser

Парсер страничек с Lamoda шмотками

Как пользоваться

Собираем и запускаем Docker-образ:

docker build -t myimage .
docker run -d --name mycontainer -p 80:80 myimage

Передаем ссылку на шмотку, например такую в urlencoded-виде:

http://127.0.0.1/?url=https%3A%2F%2Fwww.lamoda.ru%2Fp%2Fhe002emklgv2%2Fclothes-hebymango-futbolka%2F

Получаем JSON-инфу по шмотке:

{
    "title": "CHERLO",
    "brand": "Mango Man",
    "type": "Футболка",
    "images": [
        "https://a.lmcdn.ru/img600x866/H/E/HE002EMKLGV2_11830317_2_v1.jpg",
        "https://a.lmcdn.ru/img600x866/H/E/HE002EMKLGV2_11830318_3_v1.jpg",
        "https://a.lmcdn.ru/img600x866/H/E/HE002EMKLGV2_11830316_1_v1.jpg"
    ]
}

w2w-server's People

Contributors

potykion avatar

Watchers

 avatar  avatar

w2w-server's Issues

Загрузка картинок на серв и в цдн

Задачки:

  • апи для загрузки в цдн
  • хендлер, который дергает апишку, принимает файл на вход, отдает ссылку
  • хендлер, который дергает апишку, принимает ссылку на вход, отдает ссылку
  • чтение .env файла

Ссылкота:

Файл как параметр:

Загрузка файлов в цдн:

Работа с .env:

Создание шмотки

 @POST("/clothing/create")
  Future<Clothing> createClothing(
    @Part() String title,
    @Part() String type,
    @Part() String color,
    @Part() List<String> imageUrls,
    @Part() List<File> imageFiles,
  );

Обновление шмотки

 @POST("/clothing/create")
  Future<Clothing> updateClothing(
    @Part() int id,
    @Part() String title,
    @Part() String type,
    @Part() String color,
    @Part() List<String> imageUrls,
    @Part() List<File> imageFiles,
  );

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.