-
Notifications
You must be signed in to change notification settings - Fork 6
/
test_url_factory.py
56 lines (43 loc) · 1.43 KB
/
test_url_factory.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
""" Test class URLFactoryWSJ """
import sys
import os.path
import urllib2
import TerminalColors
tcol = TerminalColors.bcolors()
from stockspotter.lister.TickerLister import TickerLister
from stockspotter.db.SourceWSJ import SourceWSJ
from stockspotter.db.SourceWSJ import URLFactoryWSJ
ob = URLFactoryWSJ( '4333.TYO' ) #Tokyo
print ob.get_url_financials()
print ob.get_url_wsj_profile()
print ob.get_url_income_statement_q()
print ob.get_url_balance_sheet_q()
print ob.get_url_cash_flow_statement_q()
quit()
# ob = URLFactoryWSJ( 'MMM.NYSE' ) #NYSE
# ob = URLFactoryWSJ( 'ZYNE.NASDAQ' ) #NASDAQ
# ob = URLFactoryWSJ( 'FAX.AMEX' ) #AMEX
# print ob.get_url_financials()
# print ob.get_url_wsj_profile()
# print ob.get_url_income_statement_q()
# print ob.get_url_balance_sheet_q()
# print ob.get_url_cash_flow_statement_q()
quit()
ob = URLFactoryWSJ( '2333.HK' )
print ob.get_url_financials()
print ob.get_url_wsj_profile()
print ob.get_url_income_statement()
print ob.get_url_balance_sheet()
print ob.get_url_cash_flow_statement_q()
ob = URLFactoryWSJ( '500280.BSE' )
print ob.get_url_financials()
print ob.get_url_wsj_profile()
print ob.get_url_income_statement()
print ob.get_url_balance_sheet_q()
print ob.get_url_cash_flow_statement_q()
ob = URLFactoryWSJ( 'ADANIPORTS.NSE' )
print ob.get_url_financials()
print ob.get_url_wsj_profile()
print ob.get_url_income_statement_q()
print ob.get_url_balance_sheet_q()
print ob.get_url_cash_flow_statement_q()