Results of 1 - 1 of about 1 for useragent (0.000 sec.)
- urllib.robotparser --- robots.txt 用のパーサー 9414
- urllib.robotparser --- robots.txt 用のパーサー ソースコード: Lib/urllib/robotparser.py このモジュールは、 robots.txt ファイルを公開しているウェブサイトから、特定のユーザーエージェントが URL を取得してよいかどうかを判定するクラス RobotFilePa
...ます。 read ( ) robots.txt URL を読み出し、パーザに入力します。 parse ( lines ) 引数 lines の内容を解釈します。 can_fetch ( useragent , url ) 解釈された robots.txt ファイル中に記載された規則に従ったとき、 useragent が url を取得してもよい場合には True を返...グラムを実装する際に便利です。 modified ( ) robots.txt ファイルを最後に取得した時刻を現在の時刻に設定します。 crawl_delay ( useragent ) robots.txt から、指定した useragent に対応する Crawl-delay パラメータの値を返します。 パラメータがない、指定した userage...用されない、または robots.txt の該当エントリーの構文が無効な場合は、 None を返します。 Added in version 3.6. request_rate ( useragent ) robots.txt の Request-rate パラメータの内容を、 名前付きタプル RequestRate(requests, seconds) として返します。 パラメータ... - https://man.mtool.work/python/3.14/library/urllib.robotparser.html
PREV
1
NEXT