I used angusleigh arXiv scrapper with a few changes to get info on the relative frequency of articles related to epidemiology over the past few years Link to the original arXiv scrapper at https://github.com/angusleigh/arXiv_scraper/blob/master/arXiv.py