...
Code Block | ||
---|---|---|
| ||
Python 2.7.3 (default, Jan 2 2013, 13:56:14)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from massweb.mass_requests.mass_request import MassRequest
>>> urls_to_fetch = ["http://www.hyperiongray.com", "http://course.hyperiongray.com/vuln1/", "http://course.hyperiongray.com/vuln2/898538a7335fd8e6bac310f079ba3fd1/"]
>>> mr = MassRequest()
>>> mr.get_urls(urls_to_fetch)
>>> for r in mr.results:
... print r
...
('http://www.hyperiongray.com', <Response [200]>)
('http://course.hyperiongray.com/vuln2/898538a7335fd8e6bac310f079ba3fd1/', <Response [200]>)
('http://course.hyperiongray.com/vuln1/', <Response [200]>)
|
...