Skip to content

Instantly share code, notes, and snippets.

@famasoon
Created May 9, 2020 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save famasoon/d6cde2f939ad9a2923ec1df131f41cdb to your computer and use it in GitHub Desktop.
Save famasoon/d6cde2f939ad9a2923ec1df131f41cdb to your computer and use it in GitHub Desktop.
import twint
def get_followers(username):
c = twint.Config()
c.Username = username
c.Profile_full = True
c.Store_csv = True
c.Output = "followers.csv"
twint.run.Followers(c)
def get_recent_tweets(username):
c = twint.Config()
c.Username = username
c.Store_csv = True
c.Output = "tweets.csv"
twint.run.Search(c)
def main():
# ここに任意のスクリーンネームを入力
user_name = ""
get_recent_tweets(user_name)
get_followers(user_name)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment