Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

"Zillow API"

sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager
edited June 2019 in Help
ok this is fun.  Here's pulling home information via the Zillow API into RM for analysis.  Again you will need to create your own Zillow API key (called zws-id).

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="6.3.000">
  <context>
    <input/>
    <output/>
    <macros/>
  </context>
  <operator activated="true" class="process" compatibility="6.3.000" expanded="true" name="Process">
    <process expanded="true">
      <operator activated="true" class="text:create_document" compatibility="6.1.000" expanded="true" height="60" name="Create Document" width="90" x="45" y="30">
        <parameter key="text" value="198 Kerwin Hill Road"/>
      </operator>
      <operator activated="true" class="text:documents_to_data" compatibility="6.1.000" expanded="true" height="76" name="Documents to Data" width="90" x="179" y="30">
        <parameter key="text_attribute" value="address"/>
      </operator>
      <operator activated="true" class="generate_attributes" compatibility="6.3.000" expanded="true" height="76" name="Generate Attributes" width="90" x="313" y="30">
        <list key="function_descriptions">
          <parameter key="citystatezip" value="&quot;Norwich VT 05055&quot;"/>
        </list>
      </operator>
      <operator activated="true" class="web:encode_urls" compatibility="5.3.002" expanded="true" height="76" name="Encode URLs" width="90" x="447" y="30">
        <parameter key="url_attribute" value="address"/>
      </operator>
      <operator activated="true" class="web:encode_urls" compatibility="5.3.002" expanded="true" height="76" name="Encode URLs (2)" width="90" x="581" y="30">
        <parameter key="url_attribute" value="citystatezip"/>
      </operator>
      <operator activated="true" class="web:enrich_data_by_webservice" compatibility="5.3.002" expanded="true" height="60" name="Enrich Data by Webservice" width="90" x="715" y="30">
        <parameter key="query_type" value="XPath"/>
        <list key="string_machting_queries"/>
        <list key="regular_expression_queries"/>
        <list key="regular_region_queries"/>
        <list key="xpath_queries">
          <parameter key="zpid" value="//zpid/text()"/>
          <parameter key="lastSoldDate" value="//lastSoldDate/text()"/>
          <parameter key="lastSoldPrice" value="//lastSoldPrice/text()"/>
          <parameter key="lotSizeSqFt" value="//lotSizeSqFt/text()"/>
        </list>
        <list key="namespaces"/>
        <parameter key="assume_html" value="false"/>
        <list key="index_queries"/>
        <list key="jsonpath_queries"/>
        <parameter key="url" value="http://www.zillow.com/webservice/GetDeepSearchResults.htm?zws-id=ENTER KEY HERE&amp;address=&lt;%address%&gt;&amp;citystatezip=&lt;%citystatezip%&gt;"/>
        <list key="request_properties"/>
      </operator>
      <connect from_op="Create Document" from_port="output" to_op="Documents to Data" to_port="documents 1"/>
      <connect from_op="Documents to Data" from_port="example set" to_op="Generate Attributes" to_port="example set input"/>
      <connect from_op="Generate Attributes" from_port="example set output" to_op="Encode URLs" to_port="example set input"/>
      <connect from_op="Encode URLs" from_port="example set output" to_op="Encode URLs (2)" to_port="example set input"/>
      <connect from_op="Encode URLs (2)" from_port="example set output" to_op="Enrich Data by Webservice" to_port="Example Set"/>
      <connect from_op="Enrich Data by Webservice" from_port="ExampleSet" to_port="result 1"/>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
      <portSpacing port="sink_result 2" spacing="0"/>
    </process>
  </operator>
</process>
Sign In or Register to comment.