|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "code",
|
5 |
| - "execution_count": 8, |
| 5 | + "execution_count": null, |
6 | 6 | "metadata": {},
|
7 | 7 | "outputs": [],
|
8 | 8 | "source": [
|
|
11 | 11 | },
|
12 | 12 | {
|
13 | 13 | "cell_type": "code",
|
14 |
| - "execution_count": 9, |
| 14 | + "execution_count": null, |
15 | 15 | "metadata": {},
|
16 |
| - "outputs": [ |
17 |
| - { |
18 |
| - "ename": "ImportError", |
19 |
| - "evalue": "cannot import name 'OAuthHandler'", |
20 |
| - "output_type": "error", |
21 |
| - "traceback": [ |
22 |
| - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
23 |
| - "\u001b[0;31mImportError\u001b[0m Traceback (most recent call last)", |
24 |
| - "\u001b[0;32m<ipython-input-9-2443eb26c1bd>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mtweepy\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mauth\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mOAuthHandler\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", |
25 |
| - "\u001b[0;31mImportError\u001b[0m: cannot import name 'OAuthHandler'" |
26 |
| - ] |
27 |
| - } |
28 |
| - ], |
| 16 | + "outputs": [], |
29 | 17 | "source": [
|
30 | 18 | "from tweepy.auth import OAuthHandler"
|
31 | 19 | ]
|
32 | 20 | },
|
33 | 21 | {
|
34 | 22 | "cell_type": "code",
|
35 |
| - "execution_count": 10, |
| 23 | + "execution_count": null, |
36 | 24 | "metadata": {},
|
37 |
| - "outputs": [ |
38 |
| - { |
39 |
| - "ename": "ImportError", |
40 |
| - "evalue": "cannot import name 'Stream'", |
41 |
| - "output_type": "error", |
42 |
| - "traceback": [ |
43 |
| - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
44 |
| - "\u001b[0;31mImportError\u001b[0m Traceback (most recent call last)", |
45 |
| - "\u001b[0;32m<ipython-input-10-ff3591371680>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mtweepy\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mStream\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", |
46 |
| - "\u001b[0;31mImportError\u001b[0m: cannot import name 'Stream'" |
47 |
| - ] |
48 |
| - } |
49 |
| - ], |
| 25 | + "outputs": [], |
50 | 26 | "source": [
|
51 | 27 | "from tweepy import Stream"
|
52 | 28 | ]
|
53 | 29 | },
|
54 | 30 | {
|
55 | 31 | "cell_type": "code",
|
56 |
| - "execution_count": 11, |
| 32 | + "execution_count": null, |
57 | 33 | "metadata": {},
|
58 |
| - "outputs": [ |
59 |
| - { |
60 |
| - "ename": "ImportError", |
61 |
| - "evalue": "cannot import name 'StreamListener'", |
62 |
| - "output_type": "error", |
63 |
| - "traceback": [ |
64 |
| - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
65 |
| - "\u001b[0;31mImportError\u001b[0m Traceback (most recent call last)", |
66 |
| - "\u001b[0;32m<ipython-input-11-9b0f5bcc7110>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mtweepy\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstreaming\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mStreamListener\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", |
67 |
| - "\u001b[0;31mImportError\u001b[0m: cannot import name 'StreamListener'" |
68 |
| - ] |
69 |
| - } |
70 |
| - ], |
| 34 | + "outputs": [], |
71 | 35 | "source": [
|
72 | 36 | "from tweepy.streaming import StreamListener"
|
73 | 37 | ]
|
74 | 38 | },
|
75 | 39 | {
|
76 | 40 | "cell_type": "code",
|
77 |
| - "execution_count": 12, |
| 41 | + "execution_count": null, |
78 | 42 | "metadata": {},
|
79 | 43 | "outputs": [],
|
80 | 44 | "source": [
|
|
83 | 47 | },
|
84 | 48 | {
|
85 | 49 | "cell_type": "code",
|
86 |
| - "execution_count": 13, |
| 50 | + "execution_count": null, |
87 | 51 | "metadata": {},
|
88 | 52 | "outputs": [],
|
89 | 53 | "source": [
|
|
92 | 56 | },
|
93 | 57 | {
|
94 | 58 | "cell_type": "code",
|
95 |
| - "execution_count": 6, |
| 59 | + "execution_count": null, |
96 | 60 | "metadata": {},
|
97 | 61 | "outputs": [],
|
98 | 62 | "source": [
|
|
105 | 69 | },
|
106 | 70 | {
|
107 | 71 | "cell_type": "code",
|
108 |
| - "execution_count": 7, |
| 72 | + "execution_count": null, |
109 | 73 | "metadata": {},
|
110 |
| - "outputs": [ |
111 |
| - { |
112 |
| - "ename": "NameError", |
113 |
| - "evalue": "name 'StreamListener' is not defined", |
114 |
| - "output_type": "error", |
115 |
| - "traceback": [ |
116 |
| - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
117 |
| - "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", |
118 |
| - "\u001b[0;32m<ipython-input-7-c9f9c1e2544f>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mclass\u001b[0m \u001b[0mTweetsListener\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mStreamListener\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m__init__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcsocket\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mclient_socket\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcsocket\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", |
119 |
| - "\u001b[0;31mNameError\u001b[0m: name 'StreamListener' is not defined" |
120 |
| - ] |
121 |
| - } |
122 |
| - ], |
| 74 | + "outputs": [], |
123 | 75 | "source": [
|
124 | 76 | "class TweetsListener(StreamListener):\n",
|
125 | 77 | "\n",
|
|
176 | 128 | "\n",
|
177 | 129 | " sendData(c)"
|
178 | 130 | ]
|
| 131 | + }, |
| 132 | + { |
| 133 | + "cell_type": "code", |
| 134 | + "execution_count": null, |
| 135 | + "metadata": {}, |
| 136 | + "outputs": [], |
| 137 | + "source": [] |
179 | 138 | }
|
180 | 139 | ],
|
181 | 140 | "metadata": {
|
|
0 commit comments