Code Monkey home page Code Monkey logo

tweet-search's Introduction

Tweet Search

This sample uses GNIP search to show the activity volume and latest tweets on any given topic. It also renders tweets using Twitter's widgets.js.

As always, when developing on top of the Twitter platform, you must abide by the Developer Agreement & Policy.

Deploy

Requirements

To run this sample code, you can install the required libraries with:

`pip install -r requirements.txt`

Getting Started

  • Create a Twitter App (https://apps.twitter.com/)

  • Specify your API and GNIP credentials in app/settings.py under the following section:

    GNIP_USERNAME = 'YOUR_GNIP_USERNAME' GNIP_PASSWORD = 'YOUR_GNIP_PASSWORD' GNIP_SEARCH_ENDPOINT = 'YOUR_GNIP_SEARCH_ENDPOINT'

  • To initialize your database, run the from the tweet-search directory:

    python manage.py syncdb

  • To start the server, run the following from the tweet-search directory:

    fab start

  • Open a browser and go to http://localhost:9000

Sample Queries

Some sample queries to run:

  • Hashtag search (default AND): #MLB #SFGiants
  • Mention search, no retweets: @TwitterDev -(is:retweet)
  • Search with images/videos: walking dead (has:media)

Advanced Options

In the UI, there is a link to show advanced options. Specifically:

  • Start/end dates. GNIP search allows a variable timeframe to search, with a maximum of 30 days ago.
  • Has media. This appends (has:media) to your query

Related Terms

The GNIP search can also suggest additional related terms to add to your query. Click on the 'related terms' link and a drop-down will appear to suggest (and add) additional terms to your query:

tweet-search's People

Contributors

ryankicks avatar

Watchers

James Cloos avatar Atomic Jets avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.