Created
May 9, 2020 17:16
-
-
Save famasoon/d6cde2f939ad9a2923ec1df131f41cdb to your computer and use it in GitHub Desktop.
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 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