These are the two scripts I used to complete my project, with my API tokens removed.