<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dplusplus</author_name>
  <author_url>https://blog.hatena.ne.jp/dplusplus/</author_url>
  <blog_title>LazyLife@Diary</blog_title>
  <blog_url>https://dplusplus.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>tweepyのテスト用に自分のアカウントのaccess_tokenを取得したかったのだが、 Windows機だとPythonの環境構築が面倒 Ubuntu Server機だとブラウザ入ってない*1 ということで、tweepy+mechanizeでPINコード取ってaccess_tokenを取得するコードをぼちぼち書いてみた。用意するもの： twitterアプリのconsumer_key, consumer_secret*2 情報を読み書きしたいtwitterアカウントのid/password import re import tweepy import mechanize br = mecha…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdplusplus.hatenablog.com%2Fentry%2F20130720%2Fp1&quot; title=&quot;tweepyとmechanizeでaccess_token取得 - LazyLife@Diary&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-07-20 00:00:00</published>
  <title>tweepyとmechanizeでaccess_token取得</title>
  <type>rich</type>
  <url>https://dplusplus.hatenablog.com/entry/20130720/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
