Created
January 16, 2015 18:20
-
-
Save anuvrat/29aad0f4564e3f3cc4a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Define here the models for your scraped items | |
# | |
# See documentation in: | |
# http://doc.scrapy.org/en/latest/topics/items.html | |
import scrapy | |
class WhoScoredRatingsItem(scrapy.Item): | |
""" | |
Define the item that will store the player ratings for a team in a match | |
""" | |
match_id = scrapy.Field() | |
venue_name = scrapy.Field() | |
referee_name = scrapy.Field() | |
start_time = scrapy.Field() | |
man_of_the_match = scrapy.Field() | |
competition = scrapy.Field() | |
home_team_id = scrapy.Field() | |
home_team_name = scrapy.Field() | |
home_team_average_age = scrapy.Field() | |
home_team_manager = scrapy.Field() | |
home_team_rating = scrapy.Field() | |
home_team_formation = scrapy.Field() | |
home_team_players = scrapy.Field() | |
home_team_score_halftime = scrapy.Field() | |
home_team_score_fulltime = scrapy.Field() | |
away_team_id = scrapy.Field() | |
away_team_name = scrapy.Field() | |
away_team_average_age = scrapy.Field() | |
away_team_manager = scrapy.Field() | |
away_team_rating = scrapy.Field() | |
away_team_formation = scrapy.Field() | |
away_team_players = scrapy.Field() | |
away_team_score_halftime = scrapy.Field() | |
away_team_score_fulltime = scrapy.Field() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment