소스 검색

7lou test

zz 4 년 전
부모
커밋
24921a9fd7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ydyspider/spiders/7lou.py

+ 1 - 1
ydyspider/spiders/7lou.py

@@ -13,7 +13,7 @@ class A7louSpider(scrapy.Spider):
 		yield scrapy.Request(url, callback=self.parse)
 
 	def parse(self, response):
-		result = self.json_encode(response.txt)
+		result = self.json_encode(response.text)
 		mysql = msyqlHelper()
 		for item in result['data']:
 			exist = mysql.getByZwSource(item['bid'])