alex9smith / gdelt-doc-api

A Python client for the GDELT 2.0 Doc API
MIT License
91 stars 20 forks source link

Update startdate/enddate to also accept hours, minutes, seconds #34

Open RazvanN7 opened 6 months ago

RazvanN7 commented 6 months ago

The gdelt api accepts hours, minutes, seconds however the python wrapper always assigns them to 0. Given that for articles you are limited to 250 results, this is a good way to enlarge your pool of responses by issuing more queries segmented by non-overlapping time slices (that sum up to your desired interval).

This change would break existing code, so ideally we can add some parameters like hours, minutes, seconds which default to '00', but I leave this decision to the library owner.