Message from @Jacob
Discord ID: 500803152191291392
@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"
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)
```
no longer sends
I don't think this library has email subjects
it's the really basic one
@ThisIsChris perhaps we have some Python experts in IE who could help with this project?
<@&435155896780324864> Is anyone here a Python expert?
@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.
good point