Ejemplo n.º 1
0
    def antPage(self):
        try:
            # channel
            c = Channel()
            _val = ('http://www.ly.com/scenery/scenerysearchlist_22_0__0_0_0_0_0_0_0.html', 1)
            c.antChannelList(_val)
            channels = c.channel_list
            if channels and len(channels) > 0:
                Common.log('# add channels num: %d' % len(channels))
                self.mysqlAccess.insertTCChannel(channels)
            else:
                Common.log('# not get channels...')

        except Exception as e:
            Common.log('# TCSpotChannel antpage error: %s'%e)
            Common.traceback_log()
Ejemplo n.º 2
0
    def antPage(self):
        try:
            # channel
            c = Channel()
            _val = (
                'http://www.ly.com/scenery/scenerysearchlist_22_0__0_0_0_0_0_0_0.html',
                1)
            c.antChannelList(_val)
            channels = c.channel_list
            if channels and len(channels) > 0:
                Common.log('# add channels num: %d' % len(channels))
                self.mysqlAccess.insertTCChannel(channels)
            else:
                Common.log('# not get channels...')

        except Exception as e:
            Common.log('# TCSpotChannel antpage error: %s' % e)
            Common.traceback_log()
Ejemplo n.º 3
0
 def run_channel(self, msg):
     msg_val = msg["val"]
     c = Channel()
     c.antPage(msg_val)
     # self.items = c.channel_items
     self.run_items(c)
Ejemplo n.º 4
0
 def run_channel(self, msg):
     msg_val = msg["val"]
     c = Channel()
     c.antPage(msg_val)
     #self.items = c.channel_items
     self.run_items(c)