imageuncat has an argument -yesterday that fetches uploads from the previous day. this functionality should be provided by a command line argument provided by pagegenerators, so that any script can use this.
pagegenerators supports -logevents:upload to fetch uploads. This command line argument allows selecting by username, and/or a maximum number to fetch, but there is no way to select a time period.
(Note the maximum number to fetch should be deprecated: T128981: -logevents command line argument syntax allows specifying limit, however -limit exists for that purpose)
Somehow, we need to allow the user to specify a time period of log events they are interested in.