RealTime-TwitterDataAnalysis icon indicating copy to clipboard operation
RealTime-TwitterDataAnalysis copied to clipboard

automate main.py run through tweets written

Open kaustav202 opened this issue 2 years ago • 9 comments

  • I'm submitting a ...

    • [ ] bug report
    • [ ] feature request
    • [x] change/modification
    • [ ] design issue
  • What is the current behavior?

  • What is the expected behavior?

We are currently having two independent steps in running the application

  • run the stream.py to start generating tweets / statuses in tweets.json file fetched from the twitter API
  • once a significant number of tweets are accumulated, run the main.py file

We need to move towards a single entry point, ensuring that the main module is started automatically.

How it can be tackled :

  • count the number of tweets written explicitly and trigger a main file run once a certain no. is reached.
  • keep monitoring the tweets.json file written for no. of lines written (since each status/tweet is written in new line ) using a continuous loop until the desired number is reached then exit and let it continue with execution of the main file

Or if there are better alternatives then please suggest

kaustav202 avatar Oct 03 '22 04:10 kaustav202

Hey @kaustav202 kindly assign this issue to me i would love to add this feature

rexdivakar avatar Oct 03 '22 14:10 rexdivakar

sure.. you can start working on it. all the best

kaustav202 avatar Oct 03 '22 17:10 kaustav202

from PIL import Image

ModuleNotFoundError: No module named 'PIL'

Has the dependency issues been fixed properly ?

rexdivakar avatar Oct 04 '22 01:10 rexdivakar

from PIL import Image

ModuleNotFoundError: No module named 'PIL'

Has the dependency issues been fixed properly ?

No module has that import.. can you tag that line

kaustav202 avatar Oct 04 '22 04:10 kaustav202

image

Yes i have installed all the dependencies and i tried it with another machine too same issue, guess we are missing some import !!

rexdivakar avatar Oct 08 '22 03:10 rexdivakar

image

Yes i have installed all the dependencies and i tried it with another machine too same issue, guess we are missing some import !!

There seems to be an issue with your matplotlib installation @rexdivakar.. PIL is a sub-dependency and typically should be installed along with matplotlib

kaustav202 avatar Oct 08 '22 03:10 kaustav202

You can try to change the version of matplotlib.. update it. If that doesn't work sync your fork and clone it again

kaustav202 avatar Oct 08 '22 03:10 kaustav202

hey can I work on this issue

om-khandwala avatar Dec 07 '22 12:12 om-khandwala

hey can I work on this issue

sure..

kaustav202 avatar Dec 08 '22 03:12 kaustav202