per page, with , order by , clip by
Results of 1 - 10 of about 44 for urlopen (0.009 sec.)
urllib パッケージを使ってインターネット上のリソースを取得するには — Python 3.14... 13155
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » urllib パッケージを使ってインターネット上のリソースを取得するには テーマ 自動 ライト ダーク | urllib パッケージを使ってインターネット上のリソースを ... は URLs (Uniform Resource Locators) を取得するための Python モジュールです。このモジュールはとても簡単なインターフェースを urlopen 関数の形式で提供しています。また、このモジュールは一般的な状況で利用するためにいくらか複雑なインターフェースも提供していま ... " では "ftp") の URL を、関連するネットワークプロトコル(例えば FTP, HTTP) を利用することで、取得できます。 単純な状況では urlopen はとても簡単に使うことができます。しかし HTTP の URL を開くときにエラーが起きたり、特殊なケースに遭遇すると、 HyperText Tr ... ています。 URL を取得する ¶ urllib.request を利用する最も簡単な方法は以下です: import urllib.request with urllib . request . urlopen ( 'http://python.org/' ) as response : html = response . read () URL によってリソースを取得し、それを一時的な場所に保存して ...
https://man.mtool.work/python/3.14/howto/urllib2.html
urllib パッケージを使ってインターネット上のリソースを取得するには — Python 3.14... 13155
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » urllib パッケージを使ってインターネット上のリソースを取得するには テーマ 自動 ライト ダーク | urllib パッケージを使ってインターネット上のリソースを ... は URLs (Uniform Resource Locators) を取得するための Python モジュールです。このモジュールはとても簡単なインターフェースを urlopen 関数の形式で提供しています。また、このモジュールは一般的な状況で利用するためにいくらか複雑なインターフェースも提供していま ... " では "ftp") の URL を、関連するネットワークプロトコル(例えば FTP, HTTP) を利用することで、取得できます。 単純な状況では urlopen はとても簡単に使うことができます。しかし HTTP の URL を開くときにエラーが起きたり、特殊なケースに遭遇すると、 HyperText Tr ... ています。 URL を取得する ¶ urllib.request を利用する最も簡単な方法は以下です: import urllib.request with urllib . request . urlopen ( 'http://python.org/' ) as response : html = response . read () URL によってリソースを取得し、それを一時的な場所に保存して ...
https://man.mtool.work/python/3.14/howto/urllib2.html
urllib.request --- URL を開くための大規模なライブラリ — Python 3.14.8 ドキュメ... 11741
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » urllib.request --- URL を開くための大規模なライブラリ テーマ 自動 ライト ダーク | urllib.reque ... 、 WebAssembly プラットフォーム を見てください。 The urllib.request module defines the following functions: urllib.request. urlopen ( url , data=None , [ timeout , ] * , context=None ) ¶ Open url , which can be either a string containing a valid, properl ... フォルトでインストールされ、これがプロキシを通してリクエストを処理するようにしています。 Python 2.6 以前のレガシーな urllib.urlopen 関数は廃止されました。 urllib.request.urlopen() が過去の urllib2.urlopen に相当します。 urllib.urlopen において辞書型オブジ ... rDirector のインスタンスを、デフォルトで利用されるグローバルの opener としてインストールします。 opener のインストールは、 urlopen にその opener を使って欲しいとき以外必要ありません。普段は単に urlopen() の代わりに OpenerDirector.open() を利用してくださ ...
https://man.mtool.work/python/3.14/library/urllib.request.html
urllib.request --- URL を開くための大規模なライブラリ — Python 3.14.8 ドキュメ... 11741
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » urllib.request --- URL を開くための大規模なライブラリ テーマ 自動 ライト ダーク | urllib.reque ... 、 WebAssembly プラットフォーム を見てください。 The urllib.request module defines the following functions: urllib.request. urlopen ( url , data=None , [ timeout , ] * , context=None ) ¶ Open url , which can be either a string containing a valid, properl ... フォルトでインストールされ、これがプロキシを通してリクエストを処理するようにしています。 Python 2.6 以前のレガシーな urllib.urlopen 関数は廃止されました。 urllib.request.urlopen() が過去の urllib2.urlopen に相当します。 urllib.urlopen において辞書型オブジ ... rDirector のインスタンスを、デフォルトで利用されるグローバルの opener としてインストールします。 opener のインストールは、 urlopen にその opener を使って欲しいとき以外必要ありません。普段は単に urlopen() の代わりに OpenerDirector.open() を利用してくださ ...
https://man.mtool.work/python/3.14/library/urllib.request.html
What's New in Python 2.6 — Python 3.14.8 ドキュメント 7592
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.6 テーマ 自動 ライト ダーク | What's New in Python 2.6 ¶ 著者 : A.M. Kuchling (amk at amk.ca) This article explains ... ment's .close() method at the end of the block. import urllib , sys from contextlib import closing with closing ( urllib . urlopen ( 'http://www.yahoo.com' )) as f : for line in f : sys . stdout . write ( line ) 参考 PEP 343 - "with" ステートメント PEP ... cting to an external web site: with test_support . TransientResource ( IOError , errno = errno . ETIMEDOUT ): f = urllib . urlopen ( 'https://sf.net' ) ... Finally, check_warnings() resets the warnings module's warning filters and returns an object that ... 訳された docstring に置き換えられるようになりました。 ( bpo-1513695 ) An optional timeout parameter was added to the urllib.urlopen function and the urllib.ftpwrapper class constructor, as well as the urllib2.urlopen function. The parameter specifies a t ...
https://man.mtool.work/python/3.14/whatsnew/2.6.html
What's New in Python 2.6 — Python 3.14.8 ドキュメント 7592
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.6 テーマ 自動 ライト ダーク | What's New in Python 2.6 ¶ 著者 : A.M. Kuchling (amk at amk.ca) This article explains ... ment's .close() method at the end of the block. import urllib , sys from contextlib import closing with closing ( urllib . urlopen ( 'http://www.yahoo.com' )) as f : for line in f : sys . stdout . write ( line ) 参考 PEP 343 - "with" ステートメント PEP ... cting to an external web site: with test_support . TransientResource ( IOError , errno = errno . ETIMEDOUT ): f = urllib . urlopen ( 'https://sf.net' ) ... Finally, check_warnings() resets the warnings module's warning filters and returns an object that ... 訳された docstring に置き換えられるようになりました。 ( bpo-1513695 ) An optional timeout parameter was added to the urllib.urlopen function and the urllib.ftpwrapper class constructor, as well as the urllib2.urlopen function. The parameter specifies a t ...
https://man.mtool.work/python/3.14/whatsnew/2.6.html
contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 7515
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ ... 示的に page を close する必要なしに、次のように書くことができます: from contextlib import closing from urllib.request import urlopen with closing ( urlopen ( 'https://www.python.org' )) as page : for line in page : print ( line ) page を明示的に close する ... ost useful for third party types that don't support context managers. This example is purely for illustration purposes, as urlopen() would normally be used in a context manager. contextlib. aclosing ( thing ) ¶ ブロックの完了時に thing の aclose() メソッ ...
https://man.mtool.work/python/3.14/library/contextlib.html
pprint --- データの整形表示 — Python 3.14.8 ドキュメント 7515
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » pprint --- データの整形表示 テーマ 自動 ライト ダーク | pprint --- データの整形表示 ¶ ソースコード: Lib/pprint.py The pp ... めに、 PyPI からプロジェクトに関する情報を取って来ましょう: >>> import json >>> import pprint >>> from urllib.request import urlopen >>> with urlopen ( 'https://pypi.org/pypi/sampleproject/1.2.0/json' ) as resp : ... project_info = json . load ( resp )[ ' ...
https://man.mtool.work/python/3.14/library/pprint.html
urllib.error --- urllib.request によって送出される例外クラス — Python 3.14.8 ド... 7515
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » urllib.error --- urllib.request によって送出される例外クラス テーマ 自動 ライト ダーク | urlli ... s , fp ) ¶ HTTPError は例外 ( URLError のサブクラス) ですが、同時に例外ではない file-like な戻り値を返す関数でもあります ( urlopen() の戻り値と同じです)。これは、例えばサーバからの認証リクエストのように、変わった HTTP エラーを処理するのに役立ちます。 ur ...
https://man.mtool.work/python/3.14/library/urllib.error.html
10. Brief tour of the standard library — Python 3.14.8 ドキュメント 7515
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf ... ュールは、 URL からデータを取得するための urllib.request と、メールを送るための smtplib です: >>> from urllib.request import urlopen >>> with urlopen ( 'https://docs.python.org/3/' ) as response : ... for line in response : ... line = line . decode () # C ...
https://man.mtool.work/python/3.14/tutorial/stdlib.html
PREV 1 2 3 4 5 NEXT