
import scrapy



class MemberofParliament(scrapy.Item):
	"""
	Data structure to define Member of Parliament information
	"""
	mp_id = scrapy.Field()
	mp_name = scrapy.Field()
	mp_constituency = scrapy.Field()
	mp_party = scrapy.Field()
	mp_photo = scrapy.Field()


class RajyaSabhaQuestion(scrapy.Item):
	"""
	Data structure to define a Rajya Sabha question
	"""
	q_no = scrapy.Field()
	q_type = scrapy.Field()
	q_date = scrapy.Field()
	q_ministry = scrapy.Field()
	q_member = scrapy.Field()
	q_subject = scrapy.Field()


class LokSabhaQuestion(scrapy.Item):
	"""
	Data structure to define a Lok Sabha question
	"""
	q_no = scrapy.Field()
	q_session = scrapy.Field()
	q_type = scrapy.Field()
	q_date = scrapy.Field()
	q_ministry = scrapy.Field()
	q_member = scrapy.Field()
	q_subject = scrapy.Field()


import scrapy



class MemberofParliament(scrapy.Item):
	"""
	Data structure to define Member of Parliament information
	"""
	mp_id = scrapy.Field()
	mp_name = scrapy.Field()
	mp_constituency = scrapy.Field()
	mp_party = scrapy.Field()
	mp_photo = scrapy.Field()


class RajyaSabhaQuestion(scrapy.Item):
	"""
	Data structure to define a Rajya Sabha question
	"""
	q_no = scrapy.Field()
	q_type = scrapy.Field()
	q_date = scrapy.Field()
	q_ministry = scrapy.Field()
	q_member = scrapy.Field()
	q_subject = scrapy.Field()


class LokSabhaQuestion(scrapy.Item):
	"""
	Data structure to define a Lok Sabha question
	"""
	q_no = scrapy.Field()
	q_session = scrapy.Field()
	q_type = scrapy.Field()
	q_date = scrapy.Field()
	q_ministry = scrapy.Field()
	q_member = scrapy.Field()
	q_subject = scrapy.Field()
	q_url = scrapy.Field()
	q_annex = scrapy.Field()

Add fields to save question url and annexure links
Add fields to save question url and annexure links

Details of each question is in another link and some questions have annexures
(in English/Hindi), add fields to save all these items

Signed-off-by: Arun Siluvery <66692e34e783869a1e5829b4c5eee5e1a471c4f7@gmail.com>

  
  import scrapy
  
  
  
  class MemberofParliament(scrapy.Item):
  	"""
  	Data structure to define Member of Parliament information
  	"""
  	mp_id = scrapy.Field()
  	mp_name = scrapy.Field()
  	mp_constituency = scrapy.Field()
  	mp_party = scrapy.Field()
  	mp_photo = scrapy.Field()
  
  
  class RajyaSabhaQuestion(scrapy.Item):
  	"""
  	Data structure to define a Rajya Sabha question
  	"""
  	q_no = scrapy.Field()
  	q_type = scrapy.Field()
  	q_date = scrapy.Field()
  	q_ministry = scrapy.Field()
  	q_member = scrapy.Field()
  	q_subject = scrapy.Field()
  
  
  class LokSabhaQuestion(scrapy.Item):
  	"""
  	Data structure to define a Lok Sabha question
  	"""
  	q_no = scrapy.Field()
  	q_session = scrapy.Field()
  	q_type = scrapy.Field()
  	q_date = scrapy.Field()
  	q_ministry = scrapy.Field()
  	q_member = scrapy.Field()
  	q_subject = scrapy.Field()
+ 	q_url = scrapy.Field()
+ 	q_annex = scrapy.Field()
  
Add fields to save question url and annexure links
## Code Before:

import scrapy



class MemberofParliament(scrapy.Item):
	"""
	Data structure to define Member of Parliament information
	"""
	mp_id = scrapy.Field()
	mp_name = scrapy.Field()
	mp_constituency = scrapy.Field()
	mp_party = scrapy.Field()
	mp_photo = scrapy.Field()


class RajyaSabhaQuestion(scrapy.Item):
	"""
	Data structure to define a Rajya Sabha question
	"""
	q_no = scrapy.Field()
	q_type = scrapy.Field()
	q_date = scrapy.Field()
	q_ministry = scrapy.Field()
	q_member = scrapy.Field()
	q_subject = scrapy.Field()


class LokSabhaQuestion(scrapy.Item):
	"""
	Data structure to define a Lok Sabha question
	"""
	q_no = scrapy.Field()
	q_session = scrapy.Field()
	q_type = scrapy.Field()
	q_date = scrapy.Field()
	q_ministry = scrapy.Field()
	q_member = scrapy.Field()
	q_subject = scrapy.Field()

## Instruction:
Add fields to save question url and annexure links
## Code After:

import scrapy



class MemberofParliament(scrapy.Item):
	"""
	Data structure to define Member of Parliament information
	"""
	mp_id = scrapy.Field()
	mp_name = scrapy.Field()
	mp_constituency = scrapy.Field()
	mp_party = scrapy.Field()
	mp_photo = scrapy.Field()


class RajyaSabhaQuestion(scrapy.Item):
	"""
	Data structure to define a Rajya Sabha question
	"""
	q_no = scrapy.Field()
	q_type = scrapy.Field()
	q_date = scrapy.Field()
	q_ministry = scrapy.Field()
	q_member = scrapy.Field()
	q_subject = scrapy.Field()


class LokSabhaQuestion(scrapy.Item):
	"""
	Data structure to define a Lok Sabha question
	"""
	q_no = scrapy.Field()
	q_session = scrapy.Field()
	q_type = scrapy.Field()
	q_date = scrapy.Field()
	q_ministry = scrapy.Field()
	q_member = scrapy.Field()
	q_subject = scrapy.Field()
	q_url = scrapy.Field()
	q_annex = scrapy.Field()
