【问题标题】:Is there a way to get a zestimate on my site, without going to Zillow everytime有没有办法在我的网站上获得一个评价,而不是每次都去 Zillow
【发布时间】:2010-12-26 04:36:32
【问题描述】:

有没有办法在我的网站上获得类似于http://chattanoogapropertyliquidators.com/p/6656 上的热情? 我不想每次都去 zillow 并且每次都复制和粘贴 zestimate。我尝试在 zillow 上使用 API 调用教程,但我觉得学习希腊语会更好。我的数据库中已经有地址城市和州,只想显示 zestimate 值而不是每次都搜索它。

【问题讨论】:

    标签: java php mysql api zillow


    【解决方案1】:

    这是我编写的一些示例 Python 代码,用于从电气零件网站上获取价格:

    import re
    import string
    import urllib
    
    #"http://store.platt.com/product.aspx?zpid=" + item_number
    #<span class='ProductPriceOrderBox'>$0.349<
    
    regex = re.compile("class='ProductPriceOrderBox'>(.*?)<")
    
    def scrape_price(item_number):
        content = urllib.urlopen("http://store.platt.com/product.aspx?zpid={0}".format(item_number)).read()
        m = regex.search(content)
        if m:
            price = m.group(1)
        return string.strip(price)
    
    print scrape_price(62408)
    

    【讨论】:

      【解决方案2】:

      为什么不使用用 python 或类似语言编写的网络爬虫?

      【讨论】:

        【解决方案3】:

        使用GetZestimate API 获取特定 PropertyID 的 Zestimate。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2014-06-03
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2021-02-19
          • 2020-07-30
          • 1970-01-01
          • 2019-12-23
          相关资源
          最近更新 更多