Created
May 26, 2012 07:28
-
-
Save orangeclover/2792771 to your computer and use it in GitHub Desktop.
GroovyでEvernoteをごにょごにょする方法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Grab('org.xerial:sqlite-jdbc:[3.7.2,)') | |
| @GrabConfig(systemClassLoader=true) | |
| import groovy.sql.Sql | |
| Class.forName("org.sqlite.SQLite") | |
| sql = Sql.newInstance("jdbc:sqlite:C:/Users/orangeclover/AppData/Local/Evernote/Evernote/Databases/orangeclover.exb", "org.sqlite.JDBC") | |
| sql.eachRow("SELECT title,source_url FROM note_attr WHERE notebook COLLATE NOCASE LIKE '201204' AND (tags LIKE '%Groovy%' OR tags LIKE '%G*%');"){ | |
| println "[ ${it.source_url}:title=${it.title}]" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment