You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-13Lines changed: 12 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,13 @@ This is an example project that shows how to implement TRKD HTTP JSON Client wit
13
13
- trkd_interday.py: An example application that shows how to subscribe the Interday Time-series data from TRKD service
14
14
- trkd_onlinereport.py: An example application that shows how to subscribe the Online Report data from TRKD service
15
15
- trkd_chart.py: An example application that shows how to subscribe and download the Chart image data from TRKD service
16
-
- docs\TRKD_REST_with_Python.docx: A document that describes the trkd_authen.py and trkd_quote.py applications
16
+
- docs\TRKD_REST_with_Python.docx: A document that describes the trkd_authen.py and trkd_quote.py applications
17
17
18
18
19
19
## Prerequisite
20
20
The following softwares are required to use this script
21
21
- Python 2.7.10 or above
22
-
- The [requests](http://docs.python-requests.org/en/master/) library
22
+
- The [requests](http://docs.python-requests.org/en/master/) library
23
23
24
24
The scripts are based on Python 2 but you can modify it to run with Python 3 (see "Optional - How to run with Python 3" section).
25
25
@@ -30,7 +30,7 @@ $>python <application>.py
30
30
```
31
31
32
32
## Optional - How to install requests
33
-
The best way is via the pip package management tool
33
+
The best way is via the pip package management tool
34
34
1. export <Python_folder>\Scripts to your OS PATH environment
35
35
2. call pip command to install requests
36
36
```
@@ -43,22 +43,22 @@ The best way is via the pip package management tool
43
43
```
44
44
## Optional - How to run with Python 3
45
45
You can modify the scripts to run with Python 3 (with requests library installed) by just change the code from "**raw_input()**" to "**input()**" as the following example
46
-
- Python 2
47
-
```
48
-
username = raw_input('Please input username: ')
49
-
```
50
-
- Python 3
51
-
```
52
-
username = input('Please input username: ')
53
-
```
46
+
- Python 2
47
+
```
48
+
username = raw_input('Please input username: ')
49
+
```
50
+
- Python 3
51
+
```
52
+
username = input('Please input username: ')
53
+
```
54
54
55
55
## Release Note
56
56
- Version 1: 6 Sep 2016
57
57
- trkd_authen.py
58
58
- trkd_quote.py
59
59
- Version 1.0.1: 7 Sep 2016
60
60
- trkd_newsheadline.py
61
-
- changed code structure to separate call http request
61
+
- changed code structure to separate call http request
62
62
- Version 1.0.2: 19 Sep 2016
63
63
- trkd_newsstory.py
64
64
- version 1.0.3: 22 Sep 2016
@@ -78,4 +78,3 @@ You can modify the scripts to run with Python 3 (with requests library installed
0 commit comments