Giter Club home page Giter Club logo

oop_lab13's Introduction

Lab 13. Visitor & Proxy

Java CI with Maven

Description

A simple example of the Visitor and Proxy patterns.

Task

  • Check what is Celery. Run app.py to understand why do we need Celery.
  • Setup Flask-Celery demo from GIT. Use test.http to explore.
  • Check the documentation of Stamping API in Celery. Investigate Stamping API source code.
  • Complete Task 1.
  • Test JSOUP and how to scrape websites.
  • Check how to send raw HTTP requests. Check PDL example.
  • Complete Task 2.
  • Submit a link to GitHub with tests and a GitHub Action file.

Task 1

Implement Stamping API in Java. The goal is to reimplement Stamping API in Java for a simplified framework. The framework consists of:

  • interface Task, an interface of building unit;

  • class Signature that represents the smallest unit in framework and single task invocation;

  • class Group that represents the list of signatures, and when the group is called, the tasks will be applied one after another in the current process.

  • You need to implement Stamping API and Group Stamping in a similar manner as it is done in Celery. When the apply method is called for Group Stamping, there should happen an automatic stamping of the Signature with the groupId. Stamps are stored in the group header.

Task 2

Implement scrapping service for NewHomeSource with Proxy template. If the link is already scrapped extract it from the cache, else run the link again. Use the JDBC library to store links in SQLite DB. Use JSoup to parse HTML, if needed.

License

The MIT License (MIT)

Copyright © 2022. Andrii Yaroshevych

oop_lab13's People

Contributors

andylvua avatar

Watchers

 avatar  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.