pygnip :: pygnip :: GnipPowerTrack :: Class GnipPowerTrack
[hide private]
[frames] | no frames]

Class GnipPowerTrack

object --+
         |
        GnipPowerTrack

Instance Methods [hide private]
 
__init__(self, account_name=None, username=None, passwd=None, stream_label='prod', data_source='twitter')
x.__init__(...) initializes x; see help(type(x)) for signature
 
_buildRulesURL(self)
 
addRule(self, tag, value)
Adds a rule into a Gnip PowerTrack Stream
 
getRules(self)
Retrieves all rules associated with a PowerTrack Stream
 
removeRule(self, value)
Removes a rule from a Gnip PowerTrack Stream

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, account_name=None, username=None, passwd=None, stream_label='prod', data_source='twitter')
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

addRule(self, tag, value)

 

Adds a rule into a Gnip PowerTrack Stream

Parameters:
  • tag (string) - The tag that identifies the rule
  • value (string) - The rule to be added into the PowerTrack Stream
Returns:
True if succesful. Raises an error otherwise.

getRules(self)

 

Retrieves all rules associated with a PowerTrack Stream

Returns:
A python list containing python dictionaries of the existing rules

removeRule(self, value)

 

Removes a rule from a Gnip PowerTrack Stream

Parameters:
  • value (string) - The value of the rule to be removed
Returns:
True if succesful