<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonのurllib.requestにて，Cookieを利用する方法をメモしておきます．http.cookiejarを利用します．以下，Python3.3で検証しました． 以下のスプリクトは，Cookieが有効な状態で指定されたurlにアクセスし，ファイルをダウンロードします． import urllib.request import http.cookiejar import gzip import sys,os,os.path class Main(): def __init__(self): self.cookiefile = &quot;cookies.txt&quot; self.cj = htt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2013%2F12%2F04%2F232446&quot; title=&quot;Pythonのurllib.requestにてCookieを利用する - みーのぺーじ&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>2013-12-04 23:24:46</published>
  <title>Pythonのurllib.requestにてCookieを利用する</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2013/12/04/232446</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
