def _load(self, *args): now = TimestampFactory.make_timestamp() feed_json,since,until = _Load.run(self,*args) since = TimestampFactory.from_seconds(since) until = TimestampFactory.from_seconds(until) while not feed_json["data"] and until < now: args = [until.as_seconds()] feed_json,since,until = _Load.run(self,*args) since = TimestampFactory.from_seconds(since) until = TimestampFactory.from_seconds(until) return FeedFactory.make_feed(feed_json)