{"author_name":"ShineSpark","url":"https://shinespark.hatenablog.com/entry/2015/12/05/080000","blog_url":"https://shinespark.hatenablog.com/","published":"2015-12-05 08:00:00","version":"1.0","author_url":"https://blog.hatena.ne.jp/ShineSpark/","type":"rich","categories":["Python"],"image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinespark.hatenablog.com%2Fentry%2F2015%2F12%2F05%2F080000\" title=\"urllib.request.build_opener \u306b User-agent \u3092\u6307\u5b9a\u3059\u308b - \u4eba\u751f\u30b7\u30fc\u30b1\u30f3\u30b9\u30d6\u30ec\u30a4\u30af\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"urllib.request.build_opener \u306b User-agent \u3092\u6307\u5b9a\u3059\u308b","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","height":"190","description":"Python\u3067\u8981\u30ed\u30b0\u30a4\u30f3\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3092\u3059\u308b\u969b\u306b\u306fbuild_opener\u3092\u5229\u7528\u3059\u308b\u304c\u3001User-agent\u3082\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u30b1\u30fc\u30b9\u304c\u3042\u308b\u3002 \u901a\u5e38\u306ebuild_opener # coding: utf-8 import http.cookiejar import yaml from bs4 import BeautifulSoup from urllib import parse, request def main(): # yaml conf = yaml.load(open('conf.yaml').read()) # login opener = request.build\u2026","blog_title":"\u4eba\u751f\u30b7\u30fc\u30b1\u30f3\u30b9\u30d6\u30ec\u30a4\u30af","width":"100%"}