This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from langchain.agents import Tool | |
from langchain.chains.conversation.memory import ConversationBufferMemory | |
from langchain import OpenAI | |
from langchain.utilities import SerpAPIWrapper | |
from langchain.agents import initialize_agent | |
import os | |
import config | |
# Step 1: Please add environment api keys for SerpAPI and OpenAI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tweepy | |
from googletrans import Translator | |
__author__ = 'assafelovic' | |
''' | |
Run this script carefully! | |
This script will remove all potential bot followers from your twitter account. The bot detection function | |
is very basic mainly for inspiration, but feel free to enhance it or use 3rd party tools. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<title>Automatic Email</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
</head> | |
<body style="margin:0; padding:10px 0 0 0;" bgcolor="#F8F8F8"> | |
<table align="center" border="1" cellpadding="0" cellspacing="0" width="95%%"> |