README formatting
This commit is contained in:
parent
6d72b8aa33
commit
16a70d0240
2 changed files with 28 additions and 28 deletions
|
|
@ -61,22 +61,22 @@ streams. This also exists in large part (read: pretty much in full) thanks to th
|
||||||
Kenneth Reitz.
|
Kenneth Reitz.
|
||||||
|
|
||||||
**Example Usage:**
|
**Example Usage:**
|
||||||
``` python
|
``` python
|
||||||
import json
|
import json
|
||||||
from twython import Twython
|
from twython import Twython
|
||||||
|
|
||||||
def on_results(results):
|
def on_results(results):
|
||||||
"""
|
"""
|
||||||
A callback to handle passed results. Wheeee.
|
A callback to handle passed results. Wheeee.
|
||||||
"""
|
"""
|
||||||
print json.dumps(results)
|
print json.dumps(results)
|
||||||
|
|
||||||
Twython.stream({
|
Twython.stream({
|
||||||
'username': 'your_username',
|
'username': 'your_username',
|
||||||
'password': 'your_password',
|
'password': 'your_password',
|
||||||
'track': 'python'
|
'track': 'python'
|
||||||
}, on_results)
|
}, on_results)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
A note about the development of Twython (specifically, 1.3)
|
A note about the development of Twython (specifically, 1.3)
|
||||||
|
|
|
||||||
28
README.txt
28
README.txt
|
|
@ -61,22 +61,22 @@ streams. This also exists in large part (read: pretty much in full) thanks to th
|
||||||
Kenneth Reitz.
|
Kenneth Reitz.
|
||||||
|
|
||||||
**Example Usage:**
|
**Example Usage:**
|
||||||
``` python
|
``` python
|
||||||
import json
|
import json
|
||||||
from twython import Twython
|
from twython import Twython
|
||||||
|
|
||||||
def on_results(results):
|
def on_results(results):
|
||||||
"""
|
"""
|
||||||
A callback to handle passed results. Wheeee.
|
A callback to handle passed results. Wheeee.
|
||||||
"""
|
"""
|
||||||
print json.dumps(results)
|
print json.dumps(results)
|
||||||
|
|
||||||
Twython.stream({
|
Twython.stream({
|
||||||
'username': 'your_username',
|
'username': 'your_username',
|
||||||
'password': 'your_password',
|
'password': 'your_password',
|
||||||
'track': 'python'
|
'track': 'python'
|
||||||
}, on_results)
|
}, on_results)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
A note about the development of Twython (specifically, 1.3)
|
A note about the development of Twython (specifically, 1.3)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue