Code Monkey home page Code Monkey logo

Comments (1)

MatthieuBizien avatar MatthieuBizien commented on July 28, 2024

Hi. Just tried it -- awesome tool, especially thanks for keeping everything tidy and modular!
My usecase is exporting all Roam Research data into a JSON (I want to use it in other tools), and I was pleased to be able to use your library for that in a very straightforward way :)

Thanks 😃

I've figured none of my suggestions are worthy separate issues so piled under a single one. Hopefully it's ok.

  1. Add export to the repository topics? That way if someone searches for 'roam export' your repository would pop up. ('backup'/'export' are pretty interchangeable)

Done, thanks!

  1. The library logs in stdout, which might be annoying if someone tries to use it with other tools, it's better to log in stderr. I've hacked it in my script, but would be nice to use print(..., file=sys.stderr) throughtout the library instead?

I have added Loguru for logging, you can now just configure it.

  1. The call to patch_pyppeteer -- do you think it makes sense to simply move it inside download_rr_archive? Then could remove the call from main too.

patch_pyppeteer is not really idempotent, and it may be not needed in another version of pypetter (even if it is not maintained), so I'd rather not.

  1. Expose a method to simply return the JSON? E.g scrapping.export_json(...) -> str.
    The JSON contains everything the user potentially needs for exporting notes, and if the library exposes it, the export would be as easy as.
    It requires extracting the json from zip, but zipfile library is standard, so that wouldn't create any extra dependencies. It's just four lines of code. But I'd understand if you'd rather not complicate your module.

That's a good idea, it could be done by making download_rr_archive return a Dict[str, str], so it would not change the quantity of code.

Add username,passwords as arguments for Config?

Why not, if you need it.

Let me know what you think, and I'm happy to contribute the changes you approve!

You're my guest 😃

from roam-to-git.

Related Issues (20)

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.