Created
November 6, 2015 10:12
-
-
Save IanMulvany/a47afc60d30d22bed33d to your computer and use it in GitHub Desktop.
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
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