Message from @Jacob
Discord ID: 500799512550440960
It's probably more important to get the other functionalities working, which, for now, includes,
1. Suggesting counterarguments
2. Sending out emails
oh, another issue is that is still occasionally posts duplicates
but that's not too huge of a problem
Yeah. I agree 1 and 2 are more important.
1 is just for you to copy and paste the arguments into a lookup table
2 you can use the `mail` library of the standard library
@ThisIsChris it’s not so much a privacy think - I just don’t want to support them
@Deleted User then yeah startpage pays Google a licensing fee so that's still supporting Google. In that case yeah duckduckgo or bing seem good
You could also try gigablast but they're not really pro-free speech, just different answers than Google
@ThisIsChris How do I use a local email server?
server = smtplib.SMTP('smtp.gmail.com', 587)
Do I just put 'localhost', 25 in here?
would it be better to just use gmail's server?
it is better to use gmails, just make sure to go to your gmail account security settings and enable the "allow 3rd party apps" option
server.login("youremailusername", "password")
do I just put my email address and password here?
or is there some special server log in?
yep that's it. I forget if you put in email address or just username, try both
@Jacob I checked, username should be the full email-address, the port should be 25, the host is smtp.gmail.com
thanks
this example uses 587 as the port
maybe I'll try both
@ThisIsChris
```
smtplib.SMTPNotSupportedError: SMTP AUTH extension not supported by server.
```
I checked "allow less secure apps"
Thanks
okay I got the email server to send out emails
just test emails so far, but we're making progress
yeah sounds awesome!
my next step should be to figure out a way to accumulate a list of posts, and send out an email once it reaches a certain threshold
right now it just spams me every time it finds a comment lol
So, this is the idea I have so far:
> Automate the script to start up once a day
> Scan Reddit for pro-immigration comments until it reaches a certain threshold
> Send out an email with all the comments plus recommended counterarguments for me to copy paste
> Script automatically shuts down after sending out the email to be restarted the next day at a set time
Once this program is finished, it's going to be peak weaponized autism
that's great!
@ThisIsChris we have a weird problem
the emails don't send if they have a link in them
```
for comment in interesting_comments(request.json()):
if comment not in printed:
print('')
#on some computers printing \a is an escape
#sequence that produces a ding sound
print('\a\a\a', flush=True)
#for interesting comments found
#print out a link
#print out the subreddit it was found in
#print out what the comment says
message = comment['permalink'] \
+ '\n' \
+ '\n' \
+ comment['body']
server.sendmail("[email protected]", "email censored pls no dox", message)
server.sendmail("[email protected]", "email censored pls no dox", message)
printed.append(comment)
```
sends fine
```
for comment in interesting_comments(request.json()):
if comment not in printed:
print('')
#on some computers printing \a is an escape
#sequence that produces a ding sound
print('\a\a\a', flush=True)
#for interesting comments found
#print out a link
#print out the subreddit it was found in
#print out what the comment says
message = "Reddit.com" + comment['permalink'] \
+ '\n' \
+ '\n' \
+ comment['body']
server.sendmail("[email protected]", "email censored pls no dox", message)
server.sendmail("[email protected]", "email censored pls no dox", message)
printed.append(comment)
```