Skip to content

Sample Python scripts to get started with Twitter's Enterprise Data APIs

Notifications You must be signed in to change notification settings

NikkiGolding/python-enterprise-scripts

 
 

Repository files navigation

Twitter Enterprise Data (Gnip) - Python Library

* Please note that a Gnip console account is needed to access these endpoints *

Welcome to the Twitter Data sample script library for Python.

This library will allow you to access several of our historical and real-time enterprise-level endpoints with Python 3.

To run a script:

1.) Ensure you're using the appropriate version of Python (this library supports Python 3).

2.) In the desired sample script enter your Gnip console credentials towards the top of the file in the UN and PWD fields.

3.) In the base_url field toward the top of the file please replace INSERT_ACCOUNT_NAME_HERE and INSERT_STREAM_LABEL_HERE with your account name and stream label, respectively.

4.) After you've started your virtual environment, run python <<REPLACE_THIS_WITH_THE_SAMPLE_SCRIPT_NAME.py>> in your terminal.

After completing step 4, you should see the results of your script print out in the terminal.

About

Sample Python scripts to get started with Twitter's Enterprise Data APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%