Skip to content

Commit

Permalink
deploy: e49a78f
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-E-Rose committed Apr 22, 2024
1 parent 7950dea commit d0b9aa6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion _modules/pubmed_parser/pubmed_web_parser.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,13 @@ <h1>Source code for pubmed_parser.pubmed_web_parser</h1><div class="highlight"><
<span class="n">doi</span> <span class="o">=</span> <span class="n">doi</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">text</span>
<span class="k">except</span> <span class="ne">IndexError</span><span class="p">:</span>
<span class="n">doi</span> <span class="o">=</span> <span class="kc">None</span>


<span class="n">pii</span> <span class="o">=</span> <span class="n">tree</span><span class="o">.</span><span class="n">xpath</span><span class="p">(</span><span class="s1">&#39;//elocationid[@eidtype=&quot;pii&quot;]&#39;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">pii</span> <span class="o">=</span> <span class="n">pii</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">text</span>
<span class="k">except</span> <span class="ne">IndexError</span><span class="p">:</span>
<span class="n">pii</span> <span class="o">=</span> <span class="kc">None</span>

<span class="n">language</span> <span class="o">=</span> <span class="n">tree</span><span class="o">.</span><span class="n">xpath</span><span class="p">(</span><span class="s2">&quot;//language&quot;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">language</span> <span class="o">=</span> <span class="n">language</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">text</span>
Expand All @@ -230,6 +236,7 @@ <h1>Source code for pubmed_parser.pubmed_web_parser</h1><div class="highlight"><
<span class="s2">&quot;authors&quot;</span><span class="p">:</span> <span class="n">authors_text</span><span class="p">,</span>
<span class="s2">&quot;keywords&quot;</span><span class="p">:</span> <span class="n">keywords</span><span class="p">,</span>
<span class="s2">&quot;doi&quot;</span><span class="p">:</span> <span class="n">doi</span><span class="p">,</span>
<span class="s2">&quot;pii&quot;</span><span class="p">:</span> <span class="n">pii</span><span class="p">,</span>
<span class="s2">&quot;year&quot;</span><span class="p">:</span> <span class="n">year</span><span class="p">,</span>
<span class="s2">&quot;language&quot;</span><span class="p">:</span> <span class="n">language</span>
<span class="p">}</span>
Expand Down

0 comments on commit d0b9aa6

Please sign in to comment.