Skip to content

cdmoyer/twitter-search-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Generic array filtering, and twitter specific search filtering functions.

Example:
var tweets = [
	{text: 'fooby blech'},
	{text: 'arrgghy goodness'}
];

print("Orig----");
for (i in tweets) print(tweets[i].text);

print("");
var searches = ["e", "e -good"];

for (s in searches) {
	print("Searching: " + searches[s] + "   ------");
	results = twitterSearch.filterArray(tweets, searches[s]);
	for (i in results) {
		print(results[i].text);
	}
	print("");
}

var arraySearchFilter = makeSearchFilter();
var animals = ["dog","cat","fishy fish"];
var results = arraySearchFilter.filterArray(ar, '"y fish"')
for (i in results) {
	print(results[i]);
}

About

JavaScript based search filter for Twitter, matching the syntax of Twitter's existing search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%