Java 有没有办法在我的网站上获得zestimate,而不是每次都去Zillow

Java 有没有办法在我的网站上获得zestimate,而不是每次都去Zillow,java,php,mysql,api,zillow,Java,Php,Mysql,Api,Zillow,有没有一种方法可以在我的网站上获得与上一个类似的zestimate? 我不想每次都去zillow,每次都复制粘贴zestimate。我尝试在zillow上使用API调用教程,但我觉得学习希腊语会更好。我的数据库中已经有地址城市和州,只想显示zestimate值,而不需要每次搜索它 为什么不使用用python或类似语言编写的web scraper?为什么不使用用python或类似语言编写的web scraper?以下是我为从电气零件网站上获取价格而编写的一些python示例代码: import r

有没有一种方法可以在我的网站上获得与上一个类似的zestimate?
我不想每次都去zillow,每次都复制粘贴zestimate。我尝试在zillow上使用API调用教程,但我觉得学习希腊语会更好。我的数据库中已经有地址城市和州,只想显示zestimate值,而不需要每次搜索它

为什么不使用用python或类似语言编写的web scraper?

为什么不使用用python或类似语言编写的web scraper?

以下是我为从电气零件网站上获取价格而编写的一些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)
重新导入
导入字符串
导入URL库
#"http://store.platt.com/product.aspx?zpid=“+项目编号
#$0.349<

regex=re.compile(“class='ProductPriceOrderBox'>(.*)以下是我为从电气零件网站上获取价格而编写的一些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)
重新导入
导入字符串
导入URL库
#"http://store.platt.com/product.aspx?zpid=“+项目编号
#$0.349<
regex=re.compile(“class='ProductPriceOrderBox'>(.*)”使用API获取特定PropertyID的Zestimate。

使用API获取特定PropertyID的Zestimate