Skip to content

Latest commit

 

History

History
46 lines (23 loc) · 2.7 KB

Useful Links.md

File metadata and controls

46 lines (23 loc) · 2.7 KB

#Helpful Links

##Xpaths and DOM

While there are many complatins about W3Schools, they're section on Xpaths is quite decent. It's focused on XML, but applies equally to HTML.

Five years ago, Adam Crymble wrote a guide for Zotero translators. Much of it is very dated now, but his sections on DOM and Xpath remain excellent (for the latter, instead of the mentioned "Solvent" tool, which no longer works with Firefox) you can simply use Firefox's built-in "Inspect Element."

##Regular Expressions

The page http://www.regular-expressions.info has a good intro as well as a testing tool for javascript regex.

Konrad Lawson wrote a couple of posts for Prof Hacker on regex back in 2012.

If you know the basics of regex, this cheatsheet may still come in handy

##Tools

While you can write Zotero translators without Scaffold, you'd be foolish to do so.

Many sites make POST request to get to citation metadata. HttpFox helps you figure out what to post.

##Zotero Documentation

Documentation for Zotero translators code is here.

Documentation for using Eric Hetzner's Framework is here.

##Examples

  • From the webinar: Demographic Research (GET with RIS)

  • Framework Translator: Boston Review

  • Non-framework Screen Scraper: USPTO

  • Fetch Metadata using GET" FigShare

  • Fetch Metadata using POST: HAPI

  • Rely on Embedded Metadata: Institute of Physics

  • Retrieve custom JSON format from API and import: DPLA

  • Import Translator: MARCXML (Import translators are very ideosyncratic depending on the import format. This one is particularly simple to show the general structure).