r/learnpython • • Sep 27 '19

I made a bot that accuses random celebrities of being in 6ix9ine's 'Nine Trey Bloods' gang.

IDK why I did this, but here it is.

Every day, it accuses the most famous person on Famous Birthdays of being in 6ix9ine's 'Nine Trey Bloods'.

Here's how it works:

  • Uses bs4 to scrape Famous Birthdays for celebrity name & picture.

  • Uses Tweepy to search Twitter for the name, returns the most relevant user (if the celeb doesn't have a twitter, it still tags the first result which is kinda funny).

  • Uses Tweepy to attach media & tweet.

Full code.

p@

793 Upvotes

Duplicates