Giter Site home page Giter Site logo

harvestr-data-archive's Introduction

harvestr-data-archive

Retrieve Harvestr data available in APIs and save them in JSON and into an XLSX sheet

This is a script-like, use one time and throw away program in Scala, but it demoed enough interesting things to share it, hoping it can be useful to others.

And perhaps you, too, need to do some archiving of harvester data, or want to be able to manipulate them in way that Harvestr doesn't let you do.

So, basically that code shows how going from HTTP Rest to XLSX, keeping JSON in the middle.

  • 1/ simple HTTP client with nice Li Haoyi's request library. Just work, no question, ideal for that kind of throw away code

  • 2/ JSON parsing with ZIO Json. It works very well for mapping to scala objects, and aliases are perfect for the kind of JS-or-Python oriented JSON used by Harvestr

  • 3/ creating an XLSX spreadsheet with Apache POI. It seems to be the universal exchange media among !dev, and with Google Sheet it's now an archiving media. That's... Erk. Fractally broken. But well at least you can see how to do that kind of dirty work here.

  • 4/ also showing nice little lib in the middle, like Better files which is such a nice File manipulation lib in Scala, or flexmark-java that is able to convert HTML to markdown and the opposite too (and under the hood, the fabulous JSoup, with the best name ever for what it does).

harvestr-data-archive's People

Contributors

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