# Path: crawler/gather/items.py
# class ChannelItem(Item):
#     office_id = Field()
#     short = Field()
#     name = Field()
#     image = Field()
#     url = Field()
# 
# class RoomItem(Item):
#     office_id = Field()
#     name = Field()
#     image = Field()
#     url = Field()
#     online = Field()
#     host = Field()
#     channel = Field()
#     followers = Field()
#     description = Field()
#     announcement = Field()
#     start_time = Field()


from scrapy import Spider, Request
from ..items import ChannelItem, RoomItem
import json
# -*- coding: utf-8 -*-




class ZhanqiSpider(Spider):
    name = 'zhanqi'
    allowed_domains = ['zhanqi.tv']
    start_urls = [
        'https://www.zhanqi.tv/api/static/game.lists/300-1.json'
    ]
    custom_settings = {
        'SITE': {
            'code': 'zhanqi',

# Path: crawler/gather/items.py
# class ChannelItem(Item):
#     office_id = Field()
#     short = Field()
#     name = Field()
#     image = Field()
#     url = Field()
# 
# class RoomItem(Item):
#     office_id = Field()
#     name = Field()
#     image = Field()
#     url = Field()
#     online = Field()
#     host = Field()
#     channel = Field()
#     followers = Field()
#     description = Field()
#     announcement = Field()
#     start_time = Field()


# Path: crawler/gather/spiders/zhanqi.py
from scrapy import Spider, Request
from ..items import ChannelItem, RoomItem
import json

# -*- coding: utf-8 -*-




class ZhanqiSpider(Spider):
    name = 'zhanqi'
    allowed_domains = ['zhanqi.tv']
    start_urls = [
        'https://www.zhanqi.tv/api/static/game.lists/300-1.json'
    ]
    custom_settings = {
        'SITE': {
            'code': 'zhanqi',

            'name': '战旗',