An advanced Twitter scraping & OSINT tool written in Python that doesn’t use Twitter’s API, allowing you to scrape a user’s followers, following, Tweets and more while evading most API limitations.
安装
pip3 install twint
使用1
2
3
4
5
6
7
8
9
10
11
12import twint
c = twint.Config()
c.Username = "noneprivacy"
c.Custom["tweet"] = ["id"]
c.Custom["user"] = ["bio"]
c.Limit = 10
c.Store_csv = True
c.Output = "none"
twint.run.Search(c)
用途
可以抓取twitter的关注者和被关注者,可以抓取推文等等。使用方便快捷