diff --git a/README.md b/README.md index 5281515..a6cccee 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ def main(): cf = CloudFlare.CloudFlare(raw=True) page_number = 0 while True: + page_number += 1 raw_results = cf.zones.get(params={'per_page':5,'page':page_number}) zones = raw_results['result'] @@ -112,7 +113,6 @@ def main(): print zone_id, zone_name total_pages = raw_results['result_info']['total_pages'] - page_number += 1 if page_number == total_pages: break