I have a database which contains Taxonomy and Taxon ID for each Accession Number. The database already has millions of accession numbers and their corresponding taxonomy and taxon ID. But the database is not complete yet. This database is being used to assign taxonomy to blast results. I am planning to complete the database by collecting the accession numbers which are not found in my local database in each blast search.
Does anyone have any suggestions for me how I can retrieve taxonomy and taxon ID of some accession numbers from NCBI using R or python?