This file contains 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
import pandas as pd | |
import json | |
zoteroExportFile = "zoteroExport.csv" ## Contains the csv exported from zotero | |
folder = "zoteroExport/" | |
t = pd.read_csv(zoteroExportFile) | |
for i in range(len(t["Title"])): | |
with open(folder+t["Key"][i] +".json", "w") as outfile: |
This file contains 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
### pytho exportAnnotations.py test.pdf | |
### Outputs notes and highlights in the pdf as html | |
### Requires: markdown2, PyPDF2, pdfannots | |
from PyPDF2 import PdfFileReader | |
import subprocess | |
from pathlib import Path | |
import markdown2 | |
import sys |
This file contains 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
### Usage: Copy a web url and run this script | |
### Optional: Create a keyboard shortcut | |
### Dependencies: xclip(apt install xclip), sumy(pip install sumy) | |
sumy lex-rank –length=10 –url="$(xclip -o)" | xclip -selection c && notify-send "copied to clipboard" |