<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>satojkovic</author_name>
  <author_url>https://blog.hatena.ne.jp/satojkovic/</author_url>
  <blog_title>stMind</blog_title>
  <blog_url>https://stmind.hatenablog.com/</blog_url>
  <categories>
    <anon>programming</anon>
    <anon>scraping</anon>
  </categories>
  <description>perlの勉強として以前作ったJSPORTSのプレミアリーグ放送予定をスクレイピングするスクリプトを修正して、検索キーワードと放送形態（生放送、初回放送、同日録画）を指定できるようにした。今回修正する上で一つだけつまづいたのがURLエンコードのための文字コード変換。スクリプトの入力はUTF8で、JSPORTSのURLエンコードはShift-JISなので、スクリプト内で文字コードをShift-JISに変換してやる必要があった。そこでEncodeのfrom_toを使って、 my $uri = URI-&gt;new('http://www.jsports.co.jp/search/sys/kensaku…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fstmind.hatenablog.com%2Fentry%2F20080207%2F1202401736&quot; title=&quot; from_toとencode, decode - stMind&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-02-07 01:28:56</published>
  <title> from_toとencode, decode</title>
  <type>rich</type>
  <url>https://stmind.hatenablog.com/entry/20080207/1202401736</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
