Tweepy returns inconsistent and not complete results for realDonaldTrump
问题 import tweepy import csv import json import nltk import re def scrub_text(string): nltk.download('words') words = set(nltk.corpus.words.words()) string=re.sub(r'[^a-zA-Z]+', ' ', string).lower() string=" ".join(w for w in nltk.wordpunct_tokenize(string) if w.lower() in words or not w.isalpha()) return string def get_all_tweets(): with open('twitter_credentials.json') as cred_data: info=json.load(cred_data) consumer_key=info['API_KEY'] consumer_secret=info['API_SECRET'] access_key=info['ACCESS