添加租金代码
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
import datetime
|
||||
import fangjia
|
||||
import pytz
|
||||
#fangjia.send_dingding_msg("测试")
|
||||
|
||||
import time
|
||||
|
||||
import rent_price.district_map0413 as rentPrice
|
||||
|
||||
def get_weekend(tt):
|
||||
|
||||
from dateutil.parser import parse
|
||||
bb=parse(tt)
|
||||
pacific = pytz.timezone('Asia/Shanghai')
|
||||
return pacific.localize(bb)
|
||||
|
||||
weekend = get_weekend('20180415')
|
||||
|
||||
ct='上海'
|
||||
rl='黄浦'
|
||||
lk='伯爵居'#上海闵行闵浦新苑一村普陀曹杨一村上海
|
||||
#黄浦伯爵居静安泰安里长宁新泾北苑
|
||||
timm=20170430
|
||||
|
||||
timd=20160603
|
||||
a=time.time()
|
||||
rentPrice.save_to_mongo(ct,rl,lk,timd,timm)
|
||||
|
||||
print(time.time()-a)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'''
|
||||
s = time.time()
|
||||
|
||||
ct='上海'
|
||||
rl='浦东'
|
||||
lk='滨江一品苑'
|
||||
|
||||
|
||||
|
||||
#for i in range(0, 100):深圳福田世纪豪庭
|
||||
|
||||
rentPrice.out_put_price(ct, rl, lk, weekend)
|
||||
e = time.time()
|
||||
|
||||
print(e - s)
|
||||
'''
|
||||
|
||||
'''
|
||||
|
||||
|
||||
###
|
||||
import pandas as pd
|
||||
|
||||
a=pd.read_excel('小区调查.xlsx')
|
||||
|
||||
for i in a.index:
|
||||
ct=a['城市'][i]
|
||||
rl=a['区域'][i]
|
||||
lk=a['小区名'][i]
|
||||
sellPrice.out_put_price(ct, rl, lk, weekend)
|
||||
|
||||
'''
|
||||
|
||||
'''
|
||||
|
||||
@fangjia.cache(1000)
|
||||
def sum1(a, b):
|
||||
print(111)
|
||||
return a + b
|
||||
|
||||
|
||||
print(sum1(1,2))
|
||||
'''
|
||||
Reference in New Issue
Block a user