This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pwsp.yaml
140 lines (135 loc) · 5.73 KB
/
pwsp.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
---
sources:
- source: pubmed_api
target_source: pubmed
disabled: false
urls:
- url: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/entrez/eutils/esearch.fcgi
params:
db: pubmed
term: $q
retmode: json
sort: relevance
retmax: $max
usehistory: y
- url: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/entrez/eutils/efetch.fcgi
params:
db: pubmed
retmode: xml
retmax: $max
webenv: "eval(json):json['esearchresult']['webenv']"
query_key: "eval(json):json['esearchresult']['querykey']"
parse:
- item: "pubmedarticleset > pubmedarticle"
id: "first():pubmedarticle > medlinecitation > pmid"
title: "first():pubmedarticle > medlinecitation > article > articletitle"
abstract: "first():pubmedarticle > medlinecitation > article > abstract"
link: 'first():pubmedarticle > medlinecitation > pmid|re.sub(r"^", "https://pubmed.ncbi.nlm.nih.gov/", $)'
details: "first():pubmedarticle > medlinecitation > article > articledate"
- source: pmc_api
target_source: pubmed
disabled: false
urls:
- url: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/entrez/eutils/esearch.fcgi
params:
db: pmc
term: $q
retmode: json
sort: relevance
retmax: $max
usehistory: y
- url: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/entrez/eutils/efetch.fcgi
params:
db: pmc
retmode: xml
retmax: $max
webenv: "eval(json):json['esearchresult']['webenv']"
query_key: "eval(json):json['esearchresult']['querykey']"
parse:
- item: "pmc-articleset > article"
id: "first():article > front > article-meta > article-id[pub-id-type='pmid']"
title: "first():article > front > article-meta > title-group > article-title"
abstract: "first():article > front > article-meta > abstract"
link: 'first():article > front > article-meta > article-id[pub-id-type="pmc"]|re.sub(r"^", "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC", $)'
details: "first():article > front > article-meta > pub-date[pub-type='pmc-release']"
- source: clinvar_api
target_source: pubmed
disabled: false
urls:
- url: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/entrez/eutils/esearch.fcgi
params:
db: clinvar
term: $q
retmode: json
sort: relevance
retmax: $max
usehistory: y
- url: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/entrez/eutils/elink.fcgi
params:
db: pubmed
dbfrom: clinvar
retmode: json
retmax: $max
webenv: "eval(json):json['esearchresult']['webenv']"
query_key: "eval(json):json['esearchresult']['querykey']"
- url: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/entrez/eutils/efetch.fcgi
params:
db: pubmed
retmode: xml
retmax: $max
id: "eval(json):json['linksets'][0]['linksetdbs'][0]['links']"
parse:
- item: "pubmedarticleset > pubmedarticle"
id: "first():pubmedarticle > medlinecitation > pmid"
title: "first():pubmedarticle > medlinecitation > article > articletitle"
abstract: "first():pubmedarticle > medlinecitation > article > abstract"
link: 'first():pubmedarticle > medlinecitation > pmid|re.sub(r"^", "https://pubmed.ncbi.nlm.nih.gov/", $)'
details: "first():pubmedarticle > medlinecitation > article > articledate"
- source: pubmed
target_source: pubmed
disabled: false
url: https://pubmed.ncbi.nlm.nih.gov/
params:
term: $q
size: $max
sort: relevance
parse:
- item: "#search-results > section > div.search-results-chunks > div > article:nth-child(n + 2) > div.docsum-wrap > div.docsum-content"
id: "first():div.docsum-content > div.docsum-citation.full-citation > span:nth-child(5) > span"
title: "first():div.docsum-content > a"
abstract: "first():div.docsum-content > div.docsum-snippet > div.full-view-snippet"
link: 'attr(href):div.docsum-content > a|re.sub(r"^", "https://pubmed.ncbi.nlm.nih.gov", $)'
details: "first():div.docsum-content > div.docsum-citation.full-citation > span.docsum-journal-citation.full-journal-citation"
- item: "#article-details"
id: "first():#full-view-identifiers > li:nth-child(1) > span > strong"
title: "first():#full-view-heading > h1"
abstract: "first():#enc-abstract"
link: 'first():#full-view-identifiers > li:nth-child(1) > span > strong|re.sub(r"^", "https://pubmed.ncbi.nlm.nih.gov/", $)'
details: "first():#full-view-heading > div.article-citation > div.article-source > span.cit"
- source: pmc
target_source: pubmed
disabled: true
url: https://www.ncbi.nlm.nih.gov/pmc/
params:
term: $q
parse:
- item: "#maincontent > div > div:nth-child(5) > div:nth-child(n) > div.rslt"
id: "first():div.rslt > div:nth-child(4) > div > dl > dd"
title: "first():div.rslt > div.title > a"
abstract: null
link: 'attr(href):div.rslt > div.title > a|re.sub(r"^", "https://www.ncbi.nlm.nih.gov", $)'
details: "first():div.rslt > div.supp > div.details"
- source: google scholar
disabled: false
url: https://scholar.google.com/scholar
# query_builder: google_scholar
params:
q: $q
hl: en
parse:
- item: "#gs_res_ccl_mid > div:nth-child(n) > div.gs_ri"
id: "attr(href):div.gs_ri > h3 > a"
title: "first():div.gs_ri > h3 > a"
abstract: "first():div.gs_ri > div.gs_rs"
link: "attr(href):div.gs_ri > h3 > a"
details: "first():div.gs_ri > div.gs_a"