ta.TwitterAnalysis.words_analysis_files¶
-
TwitterAnalysis.words_analysis_files(path, startDate_filter=None, endDate_filter=None, arr_edges=None, arr_ht_edges=None)[source]¶ Creates words frequency files. Frequency text file, wordcloud, and barcharts. The data comes from the mongoDB database and is filtered based on the parameters.
- Parameters
path – the path where the files should be saved
startDate_filter ((Optional)) – filter by a certain start date
endDate_filter ((Optional)) – filter by a certain end date
arr_edges ((Optional)) – and array of concatenated edges that will be used to filter certain connection only. the method concat_edges can be used to create that array.
arr_ht_edges ((Optional)) – and array of concatenated hashtag edges that will be used to filter certain ht connection only. the method concat_edges can be used to create that array.
Examples
Save words frequency files into path:
>>> words_analysis_files( >>> 'D:\Data\MyFiles', >>> startDate_filter='09/20/2020 19:00:00', >>> endDate_filter='03/04/2021 00:00:00')