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/).
Metadata
Release files for periscope-firehose 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| periscope-firehose-0.0.7.tar.gz | 3.8 kB | Without provenance | Details for periscope-firehose-0.0.7.tar.gz |
Release files / periscope-firehose-0.0.7.tar.gz
| Download URL | periscope-firehose-0.0.7.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78e7d9d06317658e87fa9cb65c8f31755cfdc1db27a65f827ba157a77cbe8608
|
|
BLAKE2b-256 checksum How to use checksums |
14a861339832ad3b18b0de1fa4cb9915345069d2a73b03be734676bf9ec467ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for periscope-firehose 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.