JustAnotherArchivist / snscrape

A social networking service scraper in Python
GNU General Public License v3.0
4.31k stars 698 forks source link

Can I search using a list or is that not a feature? #971

Closed MazenTayseer closed 1 year ago

MazenTayseer commented 1 year ago

If I have a list of ['Cristiano', 'Messi', 'Dybala'], and I provided that as keyword.

Does it search for each one individually? And is there's such a thing as searching for multiple keywords at once?

JustAnotherArchivist commented 1 year ago

For a Twitter search, you can do something like snscrape twitter-search 'Cristiano OR Messi OR Dybala'. Don't use too many keywords combined like this at once; Twitter's search becomes even less reliable with that than it already is anyway.

MazenTayseer commented 1 year ago

@JustAnotherArchivist Do you suggest using the OR keyword or searching each keyword individually?

JustAnotherArchivist commented 1 year ago

I would recommend individual searches since it's less likely to break on Twitter's side.

MazenTayseer commented 1 year ago

Thank You!