Commit db898502 authored by Samarth Joshi's avatar Samarth Joshi

Decreasing pagesize to 10. coz its returning pagesize*50 results

parent 711b3060
......@@ -9,7 +9,7 @@ while True:
input_tags = input_tags.lower()
filename = "_".join(input_tags.split(' '))
filename_with_extn = filename + '.csv'
result = SITE.fetch('search/advanced', page=1 ,pagesize=50, order="desc", sort="votes", q=input_tags, accepted=True)
result = SITE.fetch('search/advanced', pagesize="10", order="desc", sort="votes", q=input_tags, accepted=True)
with open(filename_with_extn, 'w', newline='') as csvfile:
csvwriter = csv.writer(csvfile, delimiter=',', quoting=csv.QUOTE_MINIMAL)
csvwriter.writerow(csvheader)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment