Skip to content

A simple script for crawling twitter data using snscrape.

Notifications You must be signed in to change notification settings

HamidRezaAttar/twitter_crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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,
)

About

A simple script for crawling twitter data using snscrape.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages