Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use DOM::Tiny;
- use WWW;
- my @terms = "list.txt".IO.lines;
- #DOM::Tiny.parse(post(q|https://www.ncbi.nlm.nih.gov/pubmed|, term => q|(Babesiosis AND (("1990/01/01"[PDat] : "1990/12/31"[PDat])))|)).at(q|meta[name="ncbi_resultcount"]|).attr("content").say
- my &term = { q|(| ~ $:term ~ q| AND (("| ~ $:year ~ |/01/01"[PDat] : "| ~ $:year ~ q|/12/31"[PDat])))| };
- for 1990..1993 -> $year { for @terms -> $term { say term :$term, :$year; } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement