Loading...
Loading...
Export Google Scholar paper(s) to Zotero via BibTeX. Gets citation data from Google Scholar's cite dialog, then pushes to Zotero desktop. Supports single or batch export.
npx skill4agent add cookjohn/gs-skills gs-exportTFS2GgoGiNUJTFS2GgoGiNUJ abc123XYZ def456UVWasync () => {
const cid = "DATA_CID_HERE";
const resp = await fetch(
`https://scholar.google.com/scholar?q=info:${cid}:scholar.google.com/&output=cite`,
{ credentials: 'include' }
);
const html = await resp.text();
const doc = new DOMParser().parseFromString(html, 'text/html');
// Extract export links
const links = Array.from(doc.querySelectorAll('#gs_citi a')).map(a => ({
format: a.textContent.trim(),
url: a.href
}));
// Extract citation format texts
const citations = Array.from(doc.querySelectorAll('#gs_citt tr')).map(tr => {
const cells = tr.querySelectorAll('td');
return {
style: cells[0]?.textContent?.trim() || '',
text: cells[1]?.textContent?.trim() || ''
};
});
const bibtexLink = links.find(l => l.format === 'BibTeX');
return { cid, bibtexLink: bibtexLink?.url || '', links, citations };
}mcp__chrome-devtools__navigate_pagebibtexLinkscholar.googleusercontent.comasync () => {
return { bibtex: document.body.innerText || document.body.textContent || '' };
}python "E:/gscholar-skills/.claude/skills/gs-export/scripts/push_to_zotero.py" /tmp/gs_papers.json/tmp/gs_papers.json[
{
"pmid": "",
"title": "The title from BibTeX",
"authors": [
{"lastName": "Smith", "firstName": "John"}
],
"journal": "Journal Name",
"journalAbbr": "",
"pubdate": "2022",
"volume": "14",
"issue": "4",
"pages": "1054",
"doi": "",
"pdfUrl": "https://example.com/paper.pdf",
"abstract": "",
"keywords": [],
"language": "en",
"pubtype": ["Journal Article"]
}
]pdfUrlfullTextUrl/connector/saveAttachment@article{key,itemType: journalArticle@inproceedings{key,itemType: conferencePaper@book{key,itemType: booktitle={...}titleauthor={Last1, First1 and Last2, First2}authorsjournal={...}journalyear={...}pubdatevolume={...}volumenumber={...}issuepages={...}pagespublisher={...}Exported to Zotero from Google Scholar:
Title: {title}
Authors: {authors}
Journal: {journal} ({year})
Data-CID: {dataCid}Exported {count} papers to Zotero from Google Scholar:
1. {title1} ({journal1}, {year1})
2. {title2} ({journal2}, {year2})
...evaluate_scriptnavigate_pageevaluate_scriptbash pythonscholar.googleusercontent.compush_to_zotero.pynavigate_pageback