save result by given maximum number

You can give the maximum number for saving number of repos.
modify example to show max_num in order for limit the num of result
sample: filtered json file including 100 most popular repo information