Posted on Oct 22, 2012 by
Massive Bird
adding 'end_time' : 'nt' enable to search for post older than a date : ATOM_ARGS = { 'start_time' : 'ot', 'end_time' : 'nt', 'order' : 'r', 'exclude_target' : 'xt', 'count' : 'n', 'continuation' : 'c', 'client' : 'client', 'timestamp' : 'ck', }
example: timestamp = int(time.time() - 2419200 ) # 2505600=29 days xmlfeed = gr.get_feed(exclude_target=CONST.ATOM_STATE_READ, end_time=timestamp, count=300) for entry in xmlfeed.get_entries() : print "late for reading: %s %s" % (entry['title'], entry['original_id'] )
Status: New