Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
ogdeeplearning committed Jun 29, 2022
1 parent dde63a8 commit f47a924
Show file tree
Hide file tree
Showing 5 changed files with 172 additions and 162 deletions.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def emailer(company, results, negative_tweets):
for x in mydoc:
addresses.append(x['email'])
for e in addresses:
yag.send(to=e, subject='Report About {0}'.format(company), contents='Hi! This is the report. Currently, out of the latest 500 tweets scraped and analysed, we found {0} positive tweets, {1} neutral tweets and {2} negative tweets. Attatched below is a CSV file of all negative tweets with username and tweet. Thanks!'.format(positive,neutral,negative), attachments=negative_tweets)
yag.send(to=e, subject='Report About {0}'.format(company), contents='Hi! This is the report. Currently we attempted to scrape 500 of the most recent tweets, we found {0} positive tweets, {1} neutral tweets and {2} negative tweets. Attatched below is a CSV file of all negative tweets with username and tweet. Thanks!'.format(positive,neutral,negative), attachments=negative_tweets)

c=twint.Config()
while True:
queries = collection.distinct("company")
Expand Down
Empty file modified run.sh
100644 → 100755
Empty file.
Loading

0 comments on commit f47a924

Please sign in to comment.