while(page<=500):
tweets=api.GetSearch("#Burma",per_page=100)
Why it gives me so much duplicated result . It give me just one page and repeat it 500 times. It gives me the same tweets as of first page . Can anyone please give me a clue .
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to ask twitter for each page separately; in your loop you keep asking for the same page each time, without passing the page number to the search query:
You don’t need to use a
whileloop either, you can simplify the code by using aforloop instead, combined with thexrange()function: