Description Usage Arguments Details Value Note See Also Examples
A convenience function designed to wrap the process of running a twitter search and pushing the results to a database. If this is called more than once, the search will start with the most recent tweet already stored.
1 2 | search_twitter_and_store(searchString, table_name = "tweets", lang = NULL,
locale = NULL, geocode = NULL, retryOnRateLimit = 120, ...)
|
searchString |
The search string to use, e.g. as one would in |
table_name |
The database to store the tweets to, see |
lang |
If not |
locale |
If not |
geocode |
If not |
retryOnRateLimit |
If non-zero the search command will block retry up to X times if the rate limit is experienced. This might lead to a much longer run time but the task will eventually complete if the retry count is high enough |
... |
Optional arguments to be passed to |
All arguments but table_name
are being passed directly to searchTwitter
.
This function will check if table_name
exists, and if so will also use a sinceID
of the
most recent ID in the table. The search is performed, the returned tweets are stored
in the database via store_tweets_db
.
The number of tweets stored
Jeff Gentry
register_db_backend
, searchTwitter
, store_tweets_db
1 2 3 4 5 | ## Not run:
register_sqlite_backend("sqlit_file")
n = search_twitter_and_store("#rstats", "rstats_tweets")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.