Пример #1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" soccer bet main function file """

__author__ = 'hanss401'

import spider
import portfoliomodel
import time
import sys
import os

reload(sys)
sys.setdefaultencoding('utf8')

m_match_ids = spider.crawl_match_list()

for m_match_id in m_match_ids:
    print m_match_id
    #m_match = spider.get_match(m_match_id)
    #m_match.display()
    #for i in range(663188,663198):
    for i in range(687512, 687522):
        os.system('python TestHABsSel.py ' + str(i))
        time.sleep(1)
Пример #2
0
# -*- coding: utf-8 -*-

""" soccer bet main function file """

__author__ = 'ggstar'

import sys
import spider
import portfoliomodel
import time


def test():
    args = sys.argv
    if len(args) == 1:
        print 'Hello, world!'
    elif len(args) == 2:
        print 'Hello, %s!' % args[1]
    else:
        print 'Too many arguments!'

m_match_ids = spider.crawl_match_list()

for m_match_id in m_match_ids:
    m_match = spider.get_match(m_match_id)

    portfolio = portfoliomodel.best_portfolio(m_match)

    m_match.display()
    portfolio.display()
    time.sleep(4)