How to change Pycharm Output window size

Answered

I run twitter API code in pycharm but while i'm printing tweets.the output end with (dot)....

Like This

@RailwaySeva @drmmumbaicr Please ensure the ac...
8276 RT @CACCOT1: You travel by road:\n- Police ext...
8277 @RailwaySeva @Sidharth1009 Matter informed to ...
8278 RT @GiraffeLiquid: Don’t miss this #onceinalif...

0
3 comments

Hello,

Could you please attach screenshots with your run configuration and output results? Do you run or debug your application? Does it truncate other output (e.g. from "print" function)?

 

0
Avatar
Permanently deleted user

Thanks buddy....

     i already tried debugging but it won't work...i got the same problem again....

 

My Code ... 

  

import os
import re
import numpy as np
import sys
import pandasql as pdsql
import json
import pandas as pd
from textblob import TextBlob

tweets_data_path='C:/Users/RainDrop/PycharmProjects/Twitter_analysis/out.txt'
reload(sys)
sys.setdefaultencoding('utf8')


def clean(tweet):
thestring = str(tweet)
URLless_string = re.sub(r'\w+:\/{2}[\d\w-]+(\.[\d\w-]+)*(?:(?:\/[^\s/]*))*', '', thestring)
hashtag_string=' '.join(re.sub("(@[A-Za-z0-9]+)|([^0-9A-Za-z \t])|(\w+:\/\/\S+)", " ", URLless_string).split())
return hashtag_string


tweets_data = []
clean_data=[]

tweets_file = open(tweets_data_path, "r")
for line in tweets_file:
try:
tweet = json.loads(line)
tweets_data.append(tweet)
except:
continue

tweets=pd.DataFrame()

tweets['text'] = map(lambda tweet: tweet['text'], tweets_data)


for t in tweets['text']:
clean_data.append(clean(t))

tweets['clean_text']=clean_data

print tweets['clean_text']




0

Could you please share the whole project or at least add "out.txt" file. I couldn't reproduce the issue with provided code part.

0

Please sign in to leave a comment.