{ "info": { "author": "Yoichi Kawasaki", "author_email": "yoichi.kawasaki@microsoft.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Utilities" ], "description": "# TwitterEventHubFeed\nA command line tool that allow to stream feed from Twitter to EventHub. \n\nThis project is a fork of the [TwitterCosmosDBFeed](https://github.com/tknandu/TwitterCosmosDBFeed) by [tknandu](https://github.com/tknandu)\n\n\n## Pre-requisites\n- (1) Registration as a Twitter App\n - You need to register the tool as a new application at . After choosing a name and application for your app, you will be provided with a *twitter_consumer_key*, *twitter_consumer_secret*, *twitter_access_token* and *twitter_access_token_secret* - which need to be filled into *twitter2eh.json* to provide the app programmatic access to Twitter.\n- (2) Create an Event Hub\n - You need to create a namespace for the Event Hubs type, and obtain the management credentials that your application needs to communicate with the event hub. To create a namespace and event hub, follow the procedure in this document - [Create an Event Hubs namespace and an event hub using the Azure portal](https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-create)\n\n\n## Getting Started\n\nInstall the package [twitter2eh](https://test.pypi.org/project/twitter2eh/) using pip:\n```\npip install twitter2eh\nor \nsudo pip install twitter2eh\n```\n\n## Usage\n```\ntwitter2eh -h\n\nusage: twitter2eh [-h] [-v] [--init] [-c CONF] [-s]\n\nThis program streams feed from Twitter to EventHub\n\noptional arguments:\n -h, --help show this help message and exit\n -v, --version show program's version number and exit\n --init Create template client conf twitter2eh.json only if\n there is no existing one\n -c CONF, --conf CONF twitter2eh configuration file. Default:twitter2eh.json\n -s, --silent silent mode - running the tool without displaying tweets json that you are streaming to your Event Hub\n```\n## Configuration file - twitter2eh.json\nIn order to run the tool, you need to configure a configuration file for the tool and specify the file in running the tool. \n```\n{\n \"twitter_consumer_key\" : \"\",\n \"twitter_consumer_secret\" : \"\",\n \"twitter_access_token\" : \"\",\n \"twitter_access_secret\" : \"\",\n \"track_keywords\" : [\n \"\",\n \"\",\n \"\"\n ],\n \"eventhub_namespace\" : \"\",\n \"eventhub_entity\" : \"\",\n \"eventhub_sas_key\" : \"\",\n \"eventhub_sas_value\" : \"\"\n}\n```\n\nPlease refer to [example configuration file](twitter2eh.json.example) and run the tool like this:\n\n```\n% twitter2eh --conf ./twitter2eh.json \n```\n\nOr run with `-s|--silient` option if you want to run the tool without displaying tweets json that you're streaming to your Event Hub\n\n```\n% twitter2eh --conf ./twitter2eh.json --silent\n```\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://pypi.python.org/pypi/twitter2eh", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yokawasa/TwitterEventHubFeed", "keywords": "stream feed twitter azure eventhub", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "twitter2eh", "package_url": "https://pypi.org/project/twitter2eh/", "platform": "any", "project_url": "https://pypi.org/project/twitter2eh/", "project_urls": { "Download": "https://pypi.python.org/pypi/twitter2eh", "Homepage": "https://github.com/yokawasa/TwitterEventHubFeed" }, "release_url": "https://pypi.org/project/twitter2eh/0.2.0/", "requires_dist": [ "argparse", "azure-servicebus", "tweepy (==3.3.0)" ], "requires_python": "", "summary": "Stream feed from Twitter to Azure Event Hub", "version": "0.2.0" }, "last_serial": 3949599, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "acdceaf0dbde13f076d2b36e725a0b81", "sha256": "902f6d9cfb44c3340d05ede2a17abc494b8f1e2001803b932e2d03ffa43e065a" }, "downloads": -1, "filename": "twitter2eh-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "acdceaf0dbde13f076d2b36e725a0b81", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4361, "upload_time": "2018-06-11T09:43:32", "url": "https://files.pythonhosted.org/packages/d7/b0/25850c51dd5263ddd5d18a86cdf98e612392bf02f8942c2fffa4e710c119/twitter2eh-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "55a2aebfd6af3bd606e94fcb1194c3c2", "sha256": "d8b835a59160d86de1a037ce78dadce7750d5fe8c9690c931799c3869c081132" }, "downloads": -1, "filename": "twitter2eh-0.2.0.tar.gz", "has_sig": false, "md5_digest": "55a2aebfd6af3bd606e94fcb1194c3c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4040, "upload_time": "2018-06-11T09:43:33", "url": "https://files.pythonhosted.org/packages/58/7b/9df89e6693d2b5162d77bbaffc81beb1e5388e7adb010e9dc4958c2f5e35/twitter2eh-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "acdceaf0dbde13f076d2b36e725a0b81", "sha256": "902f6d9cfb44c3340d05ede2a17abc494b8f1e2001803b932e2d03ffa43e065a" }, "downloads": -1, "filename": "twitter2eh-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "acdceaf0dbde13f076d2b36e725a0b81", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4361, "upload_time": "2018-06-11T09:43:32", "url": "https://files.pythonhosted.org/packages/d7/b0/25850c51dd5263ddd5d18a86cdf98e612392bf02f8942c2fffa4e710c119/twitter2eh-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "55a2aebfd6af3bd606e94fcb1194c3c2", "sha256": "d8b835a59160d86de1a037ce78dadce7750d5fe8c9690c931799c3869c081132" }, "downloads": -1, "filename": "twitter2eh-0.2.0.tar.gz", "has_sig": false, "md5_digest": "55a2aebfd6af3bd606e94fcb1194c3c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4040, "upload_time": "2018-06-11T09:43:33", "url": "https://files.pythonhosted.org/packages/58/7b/9df89e6693d2b5162d77bbaffc81beb1e5388e7adb010e9dc4958c2f5e35/twitter2eh-0.2.0.tar.gz" } ] }