史上最强python twitter爬虫,twitter运营分析必备

最强twitter爬虫,python爬虫工具推荐

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
12
import 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的关注者和被关注者,可以抓取推文等等。使用方便快捷

项目地址——https://github.com/twintproject/twint