\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}{id\PYGZus{}list} \PYG{o}{=} \PYG{p}{[}\PYG{l+s+s2}{\PYGZdq{}19304878\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}18606172\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}16403221\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}16377612\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}14871861\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}14630660\PYGZdq{}}\PYG{p}{]}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{search\PYGZus{}results} \PYG{o}{=} \PYG{n}{Entrez}\PYG{o}{.}\PYG{n}{read}\PYG{p}{(}\PYG{n}{Entrez}\PYG{o}{.}\PYG{n}{epost}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}pubmed\PYGZdq{}}\PYG{p}{,} \PYG{n+nb}{id}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{},\PYGZdq{}}\PYG{o}{.}\PYG{n}{join}\PYG{p}{(}\PYG{n}{id\PYGZus{}list}\PYG{p}{)))}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{webenv} \PYG{o}{=} \PYG{n}{search\PYGZus{}results}\PYG{p}{[}\PYG{l+s+s2}{\PYGZdq{}WebEnv\PYGZdq{}}\PYG{p}{]}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{query\PYGZus{}key} \PYG{o}{=} \PYG{n}{search\PYGZus{}results}\PYG{p}{[}\PYG{l+s+s2}{\PYGZdq{}QueryKey\PYGZdq{}}\PYG{p}{]}
\end{Verbatim}
