Runs pubmed7 once a week.
pubmed7 is bit of code that retrieves PubMed entries published within the last seven days.
It was intended to be the base for a Slack bot that would scan for publications with certain keywords or new publications from lab alumni.
Search parameters are defined by the value reldate and the contents of terms.txt.
- Download files.
- Edit the Entrez.email field to comply with NCBI e-utility policies.
Entrez.email = "[email protected]"
- Edit terms.txt.
- Open your terminal and point it to the directory containing the files and run:
python pubmed7.py
- Output will be printed to the terminal.
$ python pubmed7.py
search term
Publication title. ['Author A', 'Author B', 'Author C', 'Author D'] Journal Title. 2021 Mar 30:1-8. doi: nn.nnnn/nnnnnnnn.
- Empty records appear with three question marks; future versions will bypass empty records.
- Duplicate citations appear.
- Future versions should eliminate the square brackets around the author name outputs.