items.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # -*- coding: utf-8 -*-
  2. # Define here the models for your scraped items
  3. #
  4. # See documentation in:
  5. # https://doc.scrapy.org/en/latest/topics/items.html
  6. import scrapy
  7. class HouseSpiderItem(scrapy.Item):
  8. # define the fields for your item here like:
  9. # name = scrapy.Field()
  10. pass
  11. class LianjiaVillageItem(scrapy.Item):
  12. # 链家小区
  13. collection = 'lianjia_village'
  14. id = scrapy.Field()
  15. name = scrapy.Field()
  16. zone = scrapy.Field()
  17. address = scrapy.Field()
  18. latitude = scrapy.Field()
  19. longitude = scrapy.Field()
  20. year = scrapy.Field()
  21. build_type = scrapy.Field()
  22. property_costs = scrapy.Field()
  23. property_company = scrapy.Field()
  24. developers = scrapy.Field()
  25. buildings = scrapy.Field()
  26. total_house = scrapy.Field()
  27. class LianjiaHouseItem(scrapy.Item):
  28. collection = 'lianjia_House'
  29. 房屋Id = scrapy.Field()
  30. 标题 = scrapy.Field()
  31. 售价 = scrapy.Field()
  32. 小区 = scrapy.Field()
  33. 小区ID = scrapy.Field()
  34. 房屋户型 = scrapy.Field()
  35. 所在楼层 = scrapy.Field()
  36. 建筑面积 = scrapy.Field()
  37. 户型结构 = scrapy.Field()
  38. 套内面积 = scrapy.Field()
  39. 建筑类型 = scrapy.Field()
  40. 房屋朝向 = scrapy.Field()
  41. 建筑结构 = scrapy.Field()
  42. 装修情况 = scrapy.Field()
  43. 梯户比例 = scrapy.Field()
  44. 配备电梯 = scrapy.Field()
  45. 产权年限 = scrapy.Field()
  46. 挂牌时间 = scrapy.Field()
  47. 交易权属 = scrapy.Field()
  48. 上次交易 = scrapy.Field()
  49. 房屋用途 = scrapy.Field()
  50. 房屋年限 = scrapy.Field()
  51. 产权所属 = scrapy.Field()
  52. 抵押信息 = scrapy.Field()
  53. 房本备件 = scrapy.Field()