Message from @Jacob

Discord ID: 500803667276857354


2018-10-13 20:45:02 UTC  

You could also try gigablast but they're not really pro-free speech, just different answers than Google

2018-10-13 22:29:18 UTC  

@ThisIsChris How do I use a local email server?

2018-10-13 22:29:41 UTC  

server = smtplib.SMTP('smtp.gmail.com', 587)

Do I just put 'localhost', 25 in here?

2018-10-13 22:29:51 UTC  

would it be better to just use gmail's server?

2018-10-13 22:30:41 UTC  

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

2018-10-13 22:30:59 UTC  

server.login("youremailusername", "password")

2018-10-13 22:31:09 UTC  

do I just put my email address and password here?

2018-10-13 22:31:20 UTC  

or is there some special server log in?

2018-10-13 22:31:39 UTC  
2018-10-13 22:32:23 UTC  

yep that's it. I forget if you put in email address or just username, try both

2018-10-13 22:37:25 UTC  

@Jacob I checked, username should be the full email-address, the port should be 25, the host is smtp.gmail.com

2018-10-13 22:38:08 UTC  

thanks

2018-10-13 22:38:37 UTC  

this example uses 587 as the port

2018-10-13 22:38:41 UTC  

maybe I'll try both

2018-10-13 22:43:16 UTC  

@ThisIsChris
```
smtplib.SMTPNotSupportedError: SMTP AUTH extension not supported by server.
```

2018-10-13 22:43:41 UTC  

I checked "allow less secure apps"

2018-10-13 22:52:55 UTC  

Thanks

2018-10-13 22:54:58 UTC  

okay I got the email server to send out emails

2018-10-13 22:55:11 UTC  

just test emails so far, but we're making progress

2018-10-13 22:55:25 UTC  

yeah sounds awesome!

2018-10-13 22:56:08 UTC  

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

2018-10-13 22:56:16 UTC  

right now it just spams me every time it finds a comment lol

2018-10-13 23:01:16 UTC  

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

2018-10-13 23:01:50 UTC  

Once this program is finished, it's going to be peak weaponized autism

2018-10-13 23:32:57 UTC  

that's great!

2018-10-14 00:07:04 UTC  

@ThisIsChris we have a weird problem

2018-10-14 00:07:11 UTC  

the emails don't send if they have a link in them

2018-10-14 00:07:54 UTC  

```
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)
```

2018-10-14 00:08:04 UTC  

sends fine

2018-10-14 00:08:13 UTC  

```
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)
```

2018-10-14 00:08:16 UTC  

no longer sends

2018-10-14 00:26:10 UTC  

I don't think this library has email subjects

2018-10-14 00:30:27 UTC  

it's the really basic one

2018-10-14 00:40:13 UTC  

@ThisIsChris perhaps we have some Python experts in IE who could help with this project?

2018-10-14 00:41:35 UTC  

<@&435155896780324864> Is anyone here a Python expert?

2018-10-14 00:54:19 UTC  

@Jacob An expert is not going to know the answer to every question about every library off the top of their head, but a lot of these questions can be answered by googling and checking the documentation or stack overflow which are usually the first results.

2018-10-14 00:56:31 UTC  

good point

2018-10-14 00:57:00 UTC  

now I feel like one of those boomers that asks their grandkids how to close a dialog box