<xml xmlns="https://developers.google.com/blockly/xml">
  <variables>
    <variable id="lh7iVuL!MBmF[=r:|~Jz">html</variable>
    <variable id="LJrNqhv9xIxpVGe`-Kd2">zipcode</variable>
  </variables>
  <block type="webtypeanything" id=":EAJOfIh_2AbLnteb`i2" x="-782" y="-370">
    <value name="stuff">
      <shadow type="textinline" id=";Ra^]^sb`X:$))}uT^PH">
        <field name="text">import urllib.request</field>
      </shadow>
    </value>
    <next>
      <block type="variables_set" id="!{VZp[I{U#mw!^c24UMn">
        <field name="VAR" id="LJrNqhv9xIxpVGe`-Kd2">zipcode</field>
        <field name="NAME">=</field>
        <value name="varset">
          <shadow type="textinline" id="QYdp7a2lcP.JW-vuTl2l">
            <field name="text">0</field>
          </shadow>
          <block type="input_web" id="Pkff]ds$GY3v.G^x7umZ">
            <value name="NAME">
              <shadow type="stringinline" id="K]pQA2vsd~/p3fIR+/{a">
                <field name="text">郵便番号：</field>
              </shadow>
            </value>
          </block>
        </value>
        <next>
          <block type="webtypeanything" id="H:s#dQz*E#uCVHT?0pK5">
            <value name="stuff">
              <shadow type="textinline" id="rX8S?)oFnW:{h`vvRcnY">
                <field name="text">zipcode.replace("-", "")</field>
              </shadow>
            </value>
            <next>
              <block type="webtypeanything" id="FSOwWo(c{7:dJ3qEYrGL">
                <value name="stuff">
                  <shadow type="textinline" id="7D;y]L940N}Q2F7Ot]so">
                    <field name="text">res = urllib.request.urlopen("http://zipcloud.ibsnet.co.jp/api/search?zipcode=" + zipcode)</field>
                  </shadow>
                </value>
                <next>
                  <block type="webtypeanything" id="c0QXL7I`~:V,fVZ:@;#5">
                    <value name="stuff">
                      <shadow type="textinline" id="Ye}+,+i%MBUS#[4x^|k(">
                        <field name="text">html = res.read()</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="webvarprint" id="b=6v0H)}4gZEY{#%*jP8">
                        <value name="var">
                          <shadow type="textinline" id="*-_~{|FZ$3vplEJ+N1,$">
                            <field name="text">html</field>
                          </shadow>
                          <block type="variables_get" id="}dh/s,x{TBA=;)U/Y7jE">
                            <field name="VAR" id="lh7iVuL!MBmF[=r:|~Jz">html</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </next>
  </block>
</xml>