In depth Twitter Search API in tweepy -


i wanted search tweets "by keyword" "given screen name."
example, tweets "bbcnews" "weather".

looking tweepy library, found code:

tweepy.cursor(api.search,               q="weather",               rpp=100,               result_type="recent",               include_entities=true,               lang="en") 

however, how gonna filter tweets such bbcnews?

thank in advance.

the list of options can use filter tweets find can found here : https://dev.twitter.com/rest/public/search

you can put them directly in query, without caring tweepy. in case, suggest

tweepy.cursor(api.search,               q="weather from:bbcnews",               rpp=100,               result_type="recent",               include_entities=true,               lang="en") 

you can add -filter:retweets request rid of retweets.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -