1 Star 3 Fork 1

Jasonsimhone/lianjia-scrawler

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
scrawl.py 708 Bytes
一键复制 编辑 原始数据 按行查看 历史
huangxuefeng01 提交于 2018-12-05 19:57 . fix format issue
import core
import model
import settings
def get_communitylist(city):
res = []
for community in model.Community.select():
if community.city == city:
res.append(community.title)
return res
if __name__ == "__main__":
regionlist = settings.REGIONLIST # only pinyin support
city = settings.CITY
model.database_init()
core.GetHouseByRegionlist(city, regionlist)
core.GetRentByRegionlist(city, regionlist)
# Init,scrapy celllist and insert database; could run only 1st time
core.GetCommunityByRegionlist(city, regionlist)
communitylist = get_communitylist(city) # Read celllist from database
core.GetSellByCommunitylist(city, communitylist)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/jasonsimhone/lianjia-scrawler.git
git@gitee.com:jasonsimhone/lianjia-scrawler.git
jasonsimhone
lianjia-scrawler
lianjia-scrawler
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385