<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bonlife</author_name>
  <author_url>https://blog.hatena.ne.jp/bonlife/</author_url>
  <blog_title>bonlife</blog_title>
  <blog_url>https://bonlife.hatenadiary.org/</blog_url>
  <categories>
    <anon>IT</anon>
    <anon>勉強</anon>
    <anon>Python</anon>
  </categories>
  <description>会社ではPerlで使い捨てスクリプトを書いたり、書かなかったりしているbonlifeです。id:nullpobugさんのパスワード生成スクリプトを参考にさせていただき、Pythonの標準モジュール「optparse」を使うサンプルを書いてみました。使い慣れておいて、ちょっとしたツールを作る時にサッと使いたいところですね。ということで、早速スクリプトです。(色々と追記してしまったので、ちょっとだけ長めです。) gen_passwd.py import sys import string import random from optparse import OptionParser allowed…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbonlife.hatenadiary.org%2Fentry%2F20070704%2F1183565508&quot; title=&quot; パスワード生成スクリプトをきっかけにoptparseを使ってみました - bonlife&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>2007-07-04 01:11:48</published>
  <title> パスワード生成スクリプトをきっかけにoptparseを使ってみました</title>
  <type>rich</type>
  <url>https://bonlife.hatenadiary.org/entry/20070704/1183565508</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
