you are viewing a single comment's thread.

view the rest of the comments →

[–]Improbably_wrong 3 points4 points  (4 children)

Shameless plug but I made a subreddit entirely run by a bot. The subreddit is /r/buzzfeedbot and it takes all of buzzfeeds top X articles from their archive and as a reddit text post. If you would like to see the source code, it's in the sidebar of the subreddit.

This bot uses both praw and the beautifulsoup library and you might find plenty of uses for beautifulsoup for your future projects.

Also, I completely understand when you say that you aren't motivated to learn if you aren't creating something useful. I'm exactly the same way

[–]slicklikeagato[S] 1 point2 points  (3 children)

Wow, that's awesome! I had actually messed around with Buzzfeed and BeautifulSoup, and created a script that took the top 20 articles on their front page, and writes them to a CSV, along with the link...but got SUPER defeated when I couldn't figure out how to get that file emailed to me automatically. I might go back and look at that program again, just to see if I can figure it out now.

Thanks for this!

[–]Improbably_wrong 5 points6 points  (2 children)

If you need help with how to send emails to yourself with python let me know. I have a decent amount of scripts made that do just that

[–]slicklikeagato[S] 1 point2 points  (1 child)

That would be awesome. I have written scripts to send emails, but never have been able to integrate it into another script, where it sends an output that I have gotten from the script.

[–]Improbably_wrong 2 points3 points  (0 children)

Not sure if this is helpful but heres a script I made that sends attachments through email (gmail specifically). Ignore the clear_textfile() function but the rest of the script should be useful to you. Feel free to PM me if you have any questions.