Skip to content

Instantly share code, notes, and snippets.

@IanMulvany
Created November 6, 2015 10:12
Show Gist options
  • Save IanMulvany/a47afc60d30d22bed33d to your computer and use it in GitHub Desktop.
Save IanMulvany/a47afc60d30d22bed33d to your computer and use it in GitHub Desktop.
from elifetools import parseJATS as parser
import glob
articles = glob.glob("elife-articles/*.xml")
def data_components(articles):
for article in articles:
soup = parser.parse_document(article)
print parser.media(soup)
def titles(articles):
"""
print titles of all of our articles
"""
for article in articles:
soup = parser.parse_document(article)
print parser.title(soup)
data_components(articles)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment