\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k+kn}{from} \PYG{n+nn}{Bio} \PYG{k+kn}{import} \PYG{n}{Entrez}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{Entrez}\PYG{o}{.}\PYG{n}{email} \PYG{o}{=} \PYG{l+s+s2}{\PYGZdq{}A.N.Other@example.com\PYGZdq{}}  \PYG{c+c1}{\PYGZsh{} Always tell NCBI who you are}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{pmid} \PYG{o}{=} \PYG{l+s+s2}{\PYGZdq{}14630660\PYGZdq{}}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{results} \PYG{o}{=} \PYG{n}{Entrez}\PYG{o}{.}\PYG{n}{read}\PYG{p}{(}\PYG{n}{Entrez}\PYG{o}{.}\PYG{n}{elink}\PYG{p}{(}\PYG{n}{dbfrom}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}pubmed\PYGZdq{}}\PYG{p}{,} \PYG{n}{db}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}pmc\PYGZdq{}}\PYG{p}{,}
\PYG{g+gp}{... }                                   \PYG{n}{LinkName}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}pubmed\PYGZus{}pmc\PYGZus{}refs\PYGZdq{}}\PYG{p}{,} \PYG{n+nb}{id}\PYG{o}{=}\PYG{n}{pmid}\PYG{p}{))}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{pmc\PYGZus{}ids} \PYG{o}{=} \PYG{p}{[}\PYG{n}{link}\PYG{p}{[}\PYG{l+s+s2}{\PYGZdq{}Id\PYGZdq{}}\PYG{p}{]} \PYG{k}{for} \PYG{n}{link} \PYG{o+ow}{in} \PYG{n}{results}\PYG{p}{[}\PYG{l+m+mi}{0}\PYG{p}{][}\PYG{l+s+s2}{\PYGZdq{}LinkSetDb\PYGZdq{}}\PYG{p}{][}\PYG{l+m+mi}{0}\PYG{p}{][}\PYG{l+s+s2}{\PYGZdq{}Link\PYGZdq{}}\PYG{p}{]]}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{pmc\PYGZus{}ids}
\PYG{g+go}{[\PYGZsq{}2744707\PYGZsq{}, \PYGZsq{}2705363\PYGZsq{}, \PYGZsq{}2682512\PYGZsq{}, ..., \PYGZsq{}1190160\PYGZsq{}]}
\end{Verbatim}
