Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chris #44

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
90 changes: 90 additions & 0 deletions scrapers/apa.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,63 @@
"selector": "//meta[@name='citation_date']",
"attribute": "content"
},
"url": "web.a.ebscohost.com",
"elements": {
"publisher": {
"selector": "//meta[@name='DC.Publisher']",
"attribute": "content"
},

"journal_name": {
"selector": "//meta[@name='citation_journal_title']",
"attribute": "content"
},

"journal_issn": {
"selector": "//meta[@name='citation_issn']",
"attribute": "content"
},

"volume": {
"selector": "//meta[@name='citation_volume']",
"attribute": "content"
},

"issue": {
"selector": "//meta[@name='citation_issue']",
"attribute": "content"
},

"firstpage": {
"selector": "//meta[@name='citation_firstpage']",
"attribute": "content"
},

"title": {
"selector": "//title",
"attribute": "content"
},

"keywords": {
"selector": "//ul[contains(@class, 'kwd-group')]",
"attribute": "text"
},

"author_name": {
"selector": "//meta[@name='citation_author']",
"attribute": "content"
},

"author_institution": {
"selector": "//meta[@name='citation_author_institution']",
"attribute": "content"
},

"date_published": {
"selector": "//*[@id='slugline']/cite/span[1]",
"attribute": "text"
},

"doi": {
"selector": "//meta[@name='citation_doi']",
"attribute": "content"
Expand All @@ -30,19 +87,52 @@
"selector": "//meta[@name='citation_publisher']",
"attribute": "content"
},

"pmid": {
"selector": "//meta[@name='citation_pmid']",
"attribute": "content"
},

"copyright": {
"selector": "//*[@id='copyright-statement-1']",
"attribute": "html"
},

"fulltext_html": {
"selector": "//meta[@name='citation_fulltext_html_url']",
"attribute": "content",
"download": {
"rename": "fulltext.html"
}
},

"fulltext_pdf": {
"selector": "//meta[@name='citation_pdf_url']",
"attribute": "content",
"download": {
"rename": "fulltext.pdf"
}
},

"fulltext_html": {
"selector": "//meta[@name='citation_fulltext_pdf_url']",
"attribute": "content",
"download": {
"rename": "fulltext.html"
}
},

"abstract_html": {
"selector": "//meta[@name='citation_abstract_html_url']",
"attribute": "content",
"download": {
"rename": "abstract.html"
}
},

"competing_interests_html": {
"selector": "//*[contains(@class, 'fn-conflict')]",
"attribute": "text"
}
}
}
25 changes: 25 additions & 0 deletions scrapers/elsevier.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"url": "sciencedirect\\.com",
"elements": {
"title": {
"selector": "//title",
"attribute": "content"
},
"fulltext_html": {
"selector": "//link[contains(@rel, 'canonical')]",
"attribute": "href",
"download": {
"rename": "fulltext.html"
}
},

"fulltext_pdf": {
"selector": "//*[contains(@id, 'pdfLink')]",
"attribute": "href",
"download": {
"rename": "fulltext.pdf"
}
}
}
}

83 changes: 71 additions & 12 deletions scrapers/sage.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,103 @@
{
"url": ".*sagepub.*\\.com",
"headless": true,
"url": ".*\\.sagepub\\.com",
"elements": {
"publisher": {
"selector": "//meta[@name='DC.Publisher']",
"attribute": "content"
},

"journal_name": {
"selector": "//meta[@name='citation_journal_title']",
"attribute": "content"
},

"journal_issn": {
"selector": "//meta[@name='citation_issn']",
"attribute": "content"
},

"volume": {
"selector": "//meta[@name='citation_volume']",
"attribute": "content"
},

"issue": {
"selector": "//meta[@name='citation_issue']",
"attribute": "content"
},

"firstpage": {
"selector": "//meta[@name='citation_firstpage']",
"attribute": "content"
},

"title": {
"selector": "//meta[@name='DC.Title']",
"selector": "//meta[@name='citation_title']",
"attribute": "content"
},
"authors": {

"keywords": {
"selector": "//ul[contains(@class, 'kwd-group')]",
"attribute": "text"
},

"author_name": {
"selector": "//meta[@name='citation_author']",
"attribute": "content"
},
"date": {
"selector": "//meta[@name='citation_online_date']",

"author_institution": {
"selector": "//meta[@name='citation_author_institution']",
"attribute": "content"
},

"date_published": {
"selector": "//*[@id='slugline']/cite/span[1]",
"attribute": "text"
},

"doi": {
"selector": "//meta[@name='citation_doi']",
"attribute": "content"
},
"issn": {
"selector": "//meta[@name='citation_issn']",

"pmid": {
"selector": "//meta[@name='citation_pmid']",
"attribute": "content"
},

"copyright": {
"selector": "//*[@id='copyright-statement-1']",
"attribute": "html"
},

"fulltext_html": {
"selector": "//meta[@name='citation_fulltext_html_url']",
"attribute": "content",
"download": {
"rename": "fulltext.html"
}
},

"fulltext_pdf": {
"selector": "//meta[@name='citation_pdf_url']",
"attribute": "content",
"download": {
"rename": "fulltext.pdf"
}
},
"fulltext_html": {
"selector": "//meta[@name='citation_fulltext_html_url']",

"abstract_html": {
"selector": "//meta[@name='citation_abstract_html_url']",
"attribute": "content",
"download": {
"rename": "fulltext.html"
"rename": "abstract.html"
}
},

"competing_interests_html": {
"selector": "//*[contains(@class, 'fn-conflict')]",
"attribute": "text"
}
}
}
}
64 changes: 64 additions & 0 deletions scrapers/springer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,38 @@
{
"url": ".*springer.*\\.com",
"headless": true,

"elements": {
"publisher": {
"selector": "//meta[@name='citation_publisher']",
"attribute": "content"
},

"journal_name": {
"selector": "//meta[@name='citation_journal_title']",
"attribute": "content"
},

"journal_issn": {
"selector": "//meta[@name='citation_issn']",
"attribute": "content"
},

"volume": {
"selector": "//meta[@name='citation_volume']",
"attribute": "content"
},

"issue": {
"selector": "//meta[@name='citation_issue']",
"attribute": "content"
},

"firstpage": {
"selector": "//meta[@name='citation_firstpage']",
"attribute": "content"
},

"title": {
"selector": "//meta[@name='citation_title']",
"attribute": "content"
Expand All @@ -18,21 +45,48 @@
"selector": "//meta[@name='citation_online_date']",
"attribute": "content"
},

"author_name": {
"selector": "//meta[@name='citation_author']",
"attribute": "content"
},

"author_institution": {
"selector": "//meta[@name='citation_author_institution']",
"attribute": "content"
},

"date_published": {
"selector": "//meta[@name='citation_cover_date']",
"attribute": "text"
},

"doi": {
"selector": "//meta[@name='citation_doi']",
"attribute": "content"
},

"issn": {
"selector": "//meta[@name='citation_issn']",
"attribute": "content"
},

"fulltext_html": {
"selector": "//meta[contains(@name, 'fulltext_html')]",
"attribute": "content",
"download": {
"rename": "fulltext.html"
}
},

"fulltext_pdf": {
"selector": "//meta[@name='citation_pdf_url']",
"attribute": "content",
"download": {
"rename": "fulltext.pdf"
}
},

"fulltext_html": {
"selector": "//meta[@name='citation_fulltext_html_url']",
"attribute": "content",
Expand All @@ -42,3 +96,13 @@
}
}
}

"abstract_html": {
"selector": "//meta[@name='citation_abstract_html_url']",
"attribute": "content",
"download": {
"rename": "abstract.html"
}
}
}
}
Loading