-
Notifications
You must be signed in to change notification settings - Fork 0
/
salvando_la_navidad.py
24 lines (17 loc) · 1.7 KB
/
salvando_la_navidad.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from amazonComprehend import get_weights_sentiment_analysis
from colectorTuits import generate_file_content_tuits
from colectorTuitsHttps import get_tweets_from_html
#name_file_es = "anne_with_an_e"
#print(generate_file_content_tuits(name_file_es, query = "Anne%20with%20an%20E", mode = 'w+'))
#print(generate_file_content_tuits(name_file_es, query = "Anne%20Netflix", mode = 'a'))
name_dest_file = "generated_files_from_html/saving_christmas"
get_tweets_from_html("https_downloaded/saving_christmas/Pelicula _Saving Christmas_ - Búsqueda de Twitter _ Twitter1.html", name_dest_file, mode="w+")
get_tweets_from_html("https_downloaded/saving_christmas/Pelicula _Saving Christmas_ - Búsqueda de Twitter _ Twitter2.html", name_dest_file, mode="a")
get_tweets_from_html("https_downloaded/saving_christmas/Pelicula _Saving Christmas_ - Búsqueda de Twitter _ Twitter3.html", name_dest_file, mode="a")
get_tweets_from_html("https_downloaded/saving_christmas/Pelicula _Saving Christmas_ - Búsqueda de Twitter _ Twitter4.html", name_dest_file, mode="a")
get_tweets_from_html("https_downloaded/saving_christmas/Pelicula _salvando la navidad _ - Búsqueda de Twitter _ Twitter5.html", name_dest_file, mode="a")
get_tweets_from_html("https_downloaded/saving_christmas/Pelicula _salvando la navidad _ - Búsqueda de Twitter _ Twitter6.html", name_dest_file, mode="a")
get_tweets_from_html("https_downloaded/saving_christmas/Pelicula _salvando la navidad _ - Búsqueda de Twitter _ Twitter7.html", name_dest_file, mode="a")
get_tweets_from_html("https_downloaded/saving_christmas/Pelicula _salvando la navidad _ - Búsqueda de Twitter _ Twitter8.html", name_dest_file, mode="a")
print()
print(get_weights_sentiment_analysis(name_dest_file, "es"))