In gene_query.pl what is the best technique to search (for example), a website like Pubmed (http://www.ncbi.nlm.nih.gov/pubmed/) for all articles involving $gene?

When accessing a huge database like Entrez, the first thing is to look on their site for tools that they may have written to help you out - NCBI knows that there are automated things accessing their site and they've done some things to help you which helps them not get their site swamped. I would pay attention to their "rules of the polite road", e.g. heavy loads after business hours EST.

Take a look at Entrez Programming Utilities. These folks have a special URL for automated stuff and they want you to use it rather than "scraping" their normal human URL pages. Read the previous link carefully, look at their Perl code and I think you will have a lot of success there. Oh, of course also look at their PubMed Home Page.


In reply to Re: CGI to query other websites by Marshall
in thread CGI to query other websites by Shuraski

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.