예제 #1
0
파일: 2.py 프로젝트: tatar1nro/KKM_Trash
	arPrice = rePrice.findall(s)
	arTime = reTime.findall(s)
	arOrg = reOrg.findall(s)
	arAdress = reAdress.findall(s)


	for i in range(len(arId)):

		sId = arId[i]
		sPrice = arPrice[i]
		sTime = arTime[i]
		sNameOrg = arName[i]
		sNameRus = getRus(arName[i])
		sOrg = arOrg[i]
		sAdress = arAdress[i]
		sRegId = getRegion(sAdress)
		

		
		fileData = 1
		
		
		sSite = "sberbank-ast.ru"
		sLink = "http://sberbank-ast.ru/purchaseview.aspx?id="  + sId
		
		
		# ###############################################
		# # Внутренности
		# ###############################################

		f = urllib.urlopen("http://sberbank-ast.ru/purchaseview.aspx?id="  + sId)
예제 #2
0
파일: 3.py 프로젝트: tatar1nro/KKM_Trash
				sPrice = "" 
			#################################		
			
			
			
			#################################
			try:
				sReg = bText
				sReg = sReg.split("Данные о процедуре")
				sReg = sReg[1] 
				sReg = sReg.split("secondary")
				sReg = sReg[0]
			except:
				sReg = "" 
				
			sRegId = getRegion(sReg)	
			#################################	
			
			
			
			#################################
			sCat = "N\A"
			#################################


			#################################
			sTime = "N\A"
			#################################	
			
			
			#################################
예제 #3
0
파일: 1.py 프로젝트: tatar1nro/KKM_Trash
				###############################################
				req2 = urllib2.Request("http://zakupki.gov.ru/pgz/public/action/orders/info/common_info/show?notificationId="  + sId, None, {'User-agent': 'Mozilla/5.0'})
				e = urllib2.urlopen(req2).read()
				
			
				if e.find("Недопустимый номер извещения") != -1 :
					print " \x1b[1;31m##### NO RESPONDING \x1b[0m" 
				else:
					# Регион
					try :
						eReg = e
						eReg = eReg.split("Общая информация о заказе")
						eReg = eReg[1]
						eReg = eReg.split("icePnlBrdrSouth")
						eReg = eReg[0]
						sRegId = getRegion(eReg)
					except :
						sRegId = ""
						
					sAdress = ""	
						
					# Полный адресс
					sAdress = e
					sAdress = sAdress.split("Адрес места нахождения")
					sAdress = sAdress[1]
					sAdress = sAdress.split("class=\"iceOutTxt\">")
					sAdress = sAdress[1]
					sAdress = sAdress.split("</span>") 
					sAdress = sAdress[0]
					re.sub("^\s+|\n|\r|\s+$", '', sAdress)