0
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

twintを使ってTwitterからスクレイピング

Last updated at Posted at 2021-06-17

twintを使ってTwitterからスクレイピングの例です。
twintとのページ
https://github.com/twintproject/twint

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint
twitter.py
import twint

# Configure
c = twint.Config()

c.Search = ["野鳥"]
#c.Username = ""
#c.Get_replies = False
c.Since = "2020-05-01"
c.Until = "2021-05-19"
c.Store_csv = True
c.Output = "none.csv"
# Run
#c.Debug = True
#c.Retweets=False
#c.Hide_output = True
twint.run.Search(c)
0
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?