SHARE
TWEET

Untitled

a guest Nov 11th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. keywordsList = []
  2.  
  3. def compute_tweets(tweets,keywords):
  4.     try:
  5.         done = False
  6.  
  7.         tweets = open("tweets.txt","r")
  8.         keywords = open("keywords.txt","r")
  9.  
  10.         while not done:
  11.             keys = keywords.readline().strip('\n')
  12.             keywordsList.append(keys)
  13.  
  14.     except IOError:
  15.         print("file does not exist")
  16.  
  17.     finally:
  18.         tweets.close()
  19.         keywords.close()
  20.  
  21.  
  22. compute_tweets(tweets=str,keywords=str)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top