<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryuichi1208</author_name>
  <author_url>https://blog.hatena.ne.jp/ryuichi1208/</author_url>
  <blog_title>地方エンジニアの学習日記</blog_title>
  <blog_url>https://ryuichi1208.hateblo.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>引数で渡ってきたファイルを読み込んでテキストからURLを抽出する関数。 www.ipentec.com URLって正規表現で取れるんだって思った。htmlなりmarkdownなりtextなりをfindでpythonに渡しつつ実行すれば中のURLだけを抽出して出力することが可能なプログラムが書ける。以下のようなテキストで有効なurlを抽出させることができる。 https://www.google.com &lt;src=https://www.google.com&gt;&lt;/src=https://www.google.com&gt; aaaa: https://www.google.com :bbbb hts:…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2021%2F02%2F27%2F225313&quot; title=&quot;【Python】URLだけを抽出する関数 - 地方エンジニアの学習日記&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>2021-02-27 22:53:13</published>
  <title>【Python】URLだけを抽出する関数</title>
  <type>rich</type>
  <url>https://ryuichi1208.hateblo.jp/entry/2021/02/27/225313</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
