from twitter_scraper import get_tweets
import pandas
#sh_username is  csv file having limited no of users (8) [By Muhammad Ghous 59455]
df = pandas.read_csv('sh_username.csv')

import sss
import time
start_time = time.time()#sequential start time [By Muhammad Ghous 59455]

list=[]
for i in range(8):
  usr= df["username"][i]

  
  print("Processing Tweets of : @",usr)
  j=1
  try:
    for tweet in get_tweets(usr, pages=1):
      print(j,end=" ")
      #here we are making csv string which contains username, post, and its polarity giving by the sentiwordnet [By Muhammad Ghous 59455]
      csvstring=usr+','
      post = tweet['text']
      
      csvstring +="\""+post+"\""+','
      #print(post)
      pn = sss.analysis(post)#getting polarity from sentiwordnet [By Muhammad Ghous 59455]
      csvstring +=str(pn)+'\n'
      #print(pn)
      j=j+1
      list.append(csvstring)
    print("")
  except:
    j=1
# printing total time consumed  [By Muhammad Ghous 59455]
print("---Total Time in %s seconds ---" % (time.time() - start_time))

#here we are creating accuracy.csv file so that we can check our accuracy score [By Muhammad Ghous 59455]
#with open('accuracy.csv', 'a') as fd:
  #fd.writelines(list)

95be5801cc85ec54eb2fcaf5c9b7c2faf015397e
<mask token>

<mask token>
for i in range(8):
    usr = df['username'][i]
    print('Processing Tweets of : @', usr)
    j = 1
    try:
        for tweet in get_tweets(usr, pages=1):
            print(j, end=' ')
            csvstring = usr + ','
            post = tweet['text']
            csvstring += '"' + post + '"' + ','
            pn = sss.analysis(post)
            csvstring += str(pn) + '\n'
            j = j + 1
            list.append(csvstring)
        print('')
    except:
        j = 1
print('---Total Time in %s seconds ---' % (time.time() - start_time))

<mask token>
df = pandas.read_csv('sh_username.csv')
<mask token>
start_time = time.time()
list = []
for i in range(8):
    usr = df['username'][i]
    print('Processing Tweets of : @', usr)
    j = 1
    try:
        for tweet in get_tweets(usr, pages=1):
            print(j, end=' ')
            csvstring = usr + ','
            post = tweet['text']
            csvstring += '"' + post + '"' + ','
            pn = sss.analysis(post)
            csvstring += str(pn) + '\n'
            j = j + 1
            list.append(csvstring)
        print('')
    except:
        j = 1
print('---Total Time in %s seconds ---' % (time.time() - start_time))

from twitter_scraper import get_tweets
import pandas
df = pandas.read_csv('sh_username.csv')
import sss
import time
start_time = time.time()
list = []
for i in range(8):
    usr = df['username'][i]
    print('Processing Tweets of : @', usr)
    j = 1
    try:
        for tweet in get_tweets(usr, pages=1):
            print(j, end=' ')
            csvstring = usr + ','
            post = tweet['text']
            csvstring += '"' + post + '"' + ','
            pn = sss.analysis(post)
            csvstring += str(pn) + '\n'
            j = j + 1
            list.append(csvstring)
        print('')
    except:
        j = 1
print('---Total Time in %s seconds ---' % (time.time() - start_time))

from twitter_scraper import get_tweets
import pandas
#sh_username is  csv file having limited no of users (8) [By Muhammad Ghous 59455]
df = pandas.read_csv('sh_username.csv')

import sss
import time
start_time = time.time()#sequential start time [By Muhammad Ghous 59455]

list=[]
for i in range(8):
  usr= df["username"][i]

  
  print("Processing Tweets of : @",usr)
  j=1
  try:
    for tweet in get_tweets(usr, pages=1):
      print(j,end=" ")
      #here we are making csv string which contains username, post, and its polarity giving by the sentiwordnet [By Muhammad Ghous 59455]
      csvstring=usr+','
      post = tweet['text']
      
      csvstring +="\""+post+"\""+','
      #print(post)
      pn = sss.analysis(post)#getting polarity from sentiwordnet [By Muhammad Ghous 59455]
      csvstring +=str(pn)+'\n'
      #print(pn)
      j=j+1
      list.append(csvstring)
    print("")
  except:
    j=1
# printing total time consumed  [By Muhammad Ghous 59455]
print("---Total Time in %s seconds ---" % (time.time() - start_time))

#here we are creating accuracy.csv file so that we can check our accuracy score [By Muhammad Ghous 59455]
#with open('accuracy.csv', 'a') as fd:
  #fd.writelines(list)
