Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | mtime |
def | modified |
def | set_url |
def | read |
def | parse |
def | can_fetch |
def | __str__ |
Data Fields | |
entries | |
disallow_all | |
allow_all | |
last_checked | |
url | |
path | |
errcode | |
Definition at line 22 of file robotparser.py.
def __init__ | ( | self, | |
url = '' |
|||
) |
Definition at line 23 of file robotparser.py.
def __str__ | ( | self) |
Definition at line 139 of file robotparser.py.
References RobotFileParser.entries, and locale.str().
def can_fetch | ( | self, | |
useragent, | |||
url | |||
) |
using the parsed robots.txt decide if useragent can fetch url
Definition at line 121 of file robotparser.py.
References RobotFileParser.allow_all, RobotFileParser.disallow_all, RobotFileParser.entries, urllib.quote(), and urlparse.urlparse().
def modified | ( | self) |
Definition at line 33 of file robotparser.py.
References RobotFileParser.last_checked.
def mtime | ( | self) |
Definition at line 30 of file robotparser.py.
References RobotFileParser.last_checked.
def parse | ( | self, | |
lines | |||
) |
parse the input lines from a robot.txt file. We allow that a user-agent: line is not preceded by one or more blank lines.
Definition at line 56 of file robotparser.py.
References string.lower(), locale.str(), and string.strip().
def read | ( | self) |
Definition at line 41 of file robotparser.py.
References RobotFileParser.url.
def set_url | ( | self, | |
url | |||
) |
Definition at line 37 of file robotparser.py.
allow_all |
Definition at line 26 of file robotparser.py.
disallow_all |
Definition at line 25 of file robotparser.py.
entries |
Definition at line 24 of file robotparser.py.
errcode |
Definition at line 45 of file robotparser.py.
last_checked |
Definition at line 28 of file robotparser.py.
path |
Definition at line 39 of file robotparser.py.
url |
Definition at line 38 of file robotparser.py.