Skip to main content
# The Periscope Firehose!

Provides a class, `PeriscopeFirehose`, that allows you to listen for new Periscope broadcasts published on Twitter simply by overriding the method `on_broadcast`.

### Installation

`$ pip install periscope-firehose`

### Usage

```python
from periscope_firehose import PeriscopeFirehose

class MyFirehose(PeriscopeFirehose):
def on_broadcast(self, broadcast):
print "New Periscope Broadcast published!"
print "- id:", broadcast.id
print "- twitter handle:", broadcast.twitter_screen_name
print "- status:", broadcast.status

firehose = MyFirehose(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET, TWITTER_OAUTH_TOKEN, TWITTER_OAUTH_SECRET)
firehose.listen()
```

Get your Twitter consumer key, consumer secret, oauth token, and oauth secret from the [Twitter Application Management page](https://apps.twitter.com/).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

periscope-firehose-0.0.7.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file periscope-firehose-0.0.7.tar.gz.

File metadata

File hashes

Hashes for periscope-firehose-0.0.7.tar.gz
Algorithm Hash digest
SHA256 78e7d9d06317658e87fa9cb65c8f31755cfdc1db27a65f827ba157a77cbe8608
MD5 9669f7d20bff1ca94e5e61bba20c36a5
BLAKE2b-256 14a861339832ad3b18b0de1fa4cb9915345069d2a73b03be734676bf9ec467ef

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 file

0.0.6

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page