HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.
2.0.0-chaika
Hierarchical Cluster Engine Python language binding
scraper_resource.py
Go to the documentation of this file.
1
"""@package docstring
2
@file scraper_resource.py
3
@author Alexey <developers.hce@gmail.com>
4
@link http://hierarchical-cluster-engine.com/
5
@copyright Copyright © 2013 IOIX Ukraine
6
@license http://hierarchical-cluster-engine.com/license/
7
@package HCE project node API
8
@since 0.1
9
"""
10
11
12
# import json
13
14
15
class
Resource
(object):
16
17
18
def
__init__
(self, resource_set):
19
self.
url
= resource_set[
"url"
]
20
self.
raw_html
= resource_set[
"raw_html"
]
21
self.
site_id
= resource_set[
"siteId"
]
22
self.
res_id
= resource_set[
"resId"
]
23
24
25
def
__str__
(self):
26
return
"%s"
% (self.
url
)
27
28
29
def
__repr__
(self):
30
return
repr((self.
url
, self.
raw_html
))
dc_processor.scraper_resource.Resource.res_id
res_id
Definition:
scraper_resource.py:22
dc_processor.scraper_resource.Resource.__str__
def __str__(self)
Definition:
scraper_resource.py:25
dc_processor.scraper_resource.Resource
Definition:
scraper_resource.py:15
dc_processor.scraper_resource.Resource.__repr__
def __repr__(self)
Definition:
scraper_resource.py:29
dc_processor.scraper_resource.Resource.url
url
Definition:
scraper_resource.py:19
dc_processor.scraper_resource.Resource.raw_html
raw_html
Definition:
scraper_resource.py:20
dc_processor.scraper_resource.Resource.site_id
site_id
Definition:
scraper_resource.py:21
dc_processor.scraper_resource.Resource.__init__
def __init__(self, resource_set)
Definition:
scraper_resource.py:18
sources
hce
dc_processor
scraper_resource.py
Generated on Fri Nov 24 2017 18:53:58 for HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings. by
1.8.13