Comments (1)
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.
- 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!
- 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.
- 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.
- 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)
- readme link broken (erik newhard's guide)
- Security concerns in case a bad-actor scenario happens HOT 3
- Support for end-to-end encrypted graphs HOT 2
- Repo is larger than 100 mb, and this seems to break roam-to-git HOT 3
- Git process is terminated before it finishes pushing the repository HOT 5
- Consistent backup error (resolved) HOT 1
- Change Branch Master to Main HOT 1
- Exceeded the maximum execution time of 15 minutes. HOT 6
- Backup consistently failing because page title is too long HOT 9
- Issue with "Remote End Closed Connection..." HOT 3
- Process completed with exit code 1. HOT 16
- Instructions for GitLab
- Frequent (95% of the time) "Cannot find context with specified id" pyppeteer error during "Run backup" GitHub action step HOT 3
- Backup failing since ~ 3 days ago with "connection unexpectedly closed" after filling in the email HOT 2
- Error: Process completed with exit code 1. HOT 18
- How can you call roam-to-git from another python script? HOT 2
- 1911zongqinglin
- Intermittent selenium.common.exceptions.TimeoutException
- Bug: element x is not clickable at point because another element obscures it
- Unable to locate element: input[name='email'] (starting ~2 days ago) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roam-to-git.