\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{}history.user@example.com\PYGZdq{}}  \PYG{c+c1}{\PYGZsh{} Always tell NCBI who you are}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{search\PYGZus{}handle} \PYG{o}{=} \PYG{n}{Entrez}\PYG{o}{.}\PYG{n}{esearch}\PYG{p}{(}\PYG{n}{db}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}nucleotide\PYGZdq{}}\PYG{p}{,}\PYG{n}{term}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}Opuntia[orgn] and rpl16\PYGZdq{}}\PYG{p}{,}
\PYG{g+gp}{... }                               \PYG{n}{usehistory}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}y\PYGZdq{}}\PYG{p}{,} \PYG{n}{idtype}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}acc\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}{search\PYGZus{}handle}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{search\PYGZus{}handle}\PYG{o}{.}\PYG{n}{close}\PYG{p}{()}
\end{Verbatim}
