Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 585 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 585 Bytes

Twitter Crawler 🐦

A simple script for crawling twitter data using snscrape.


How to use

Pre Requirements (Python 3.7.15)

snscrape == 0.3.4
pandas == 1.5.2

How to get result

t = Twitter()

res1 = t.search(
    query="Bitcoin", 
    start="2021-01-01 00:00:00",
    end="2021-05-32 00:00:00", 
    n_tweet=10
)

res2 = t.search_account(
    user_ls=["tim_cook", "BillGates"],
    start="2021-01-01 00:00:00",
    end="2021-05-32 00:00:00",
    n_tweet=10,
)