# Path: robograph/datamodel/base/graph.py
# class Graph:
#     def __init__(self, name, nodes=None):
#     def root_node(self):
#     def nodes(self):
#     def edges(self):
#     def nxgraph(self):
#     def name(self):
#     def add_node(self, node):
#     def add_nodes(self, sequence_of_nodes):
#     def remove_node(self, node):
#     def remove_nodes(self, sequence_of_nodes):
#     def connect(self, node_from, node_to, output_label):
#     def has_isles(self):
#     def execute(self, result_label="result"):
#     def reset(self):
#     def __repr__(self):
#     def __len__(self):
# 
# Path: robograph/datamodel/nodes/lib/files.py
# class File(node.Node):
# class TextFile(File):
# class TextFileReader(TextFile):
# class BinaryFileReader(File):
# class TextFileWriter(TextFile):
# class BinaryFileWriter(File):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
# 
# Path: robograph/datamodel/nodes/lib/value.py
# class Value(node.Node):
#     def output(self):
# 
# Path: robograph/datamodel/nodes/lib/http.py
# class HttpClient(node.Node):
# class StatusCode(node.Node):
# class StatusCodeOk(node.Node):
# class RawGet(HttpClient):
# class Get(RawGet):
# class RawPost(HttpClient):
# class Post(RawPost):
# class RawPut(HttpClient):
# class Put(RawPut):
# class RawDelete(HttpClient):
# class Delete(RawDelete):
#     DEFAULT_TIMEOUT_SECS = 3
#     def _encode_payload(self, response, mime_type):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):


from robograph.datamodel.base import graph
from robograph.datamodel.nodes.lib import files, value, http
# Downloads an image from a remote HTTP server and saves it to a local file



def scraper_image(img_url, target_path):
    url = value.Value(value=img_url)
    client = http.Get(mime_type='image/png', )
    writer = files.BinaryFileWriter(filepath=target_path)


# Path: robograph/datamodel/base/graph.py
# class Graph:
#     def __init__(self, name, nodes=None):
#     def root_node(self):
#     def nodes(self):
#     def edges(self):
#     def nxgraph(self):
#     def name(self):
#     def add_node(self, node):
#     def add_nodes(self, sequence_of_nodes):
#     def remove_node(self, node):
#     def remove_nodes(self, sequence_of_nodes):
#     def connect(self, node_from, node_to, output_label):
#     def has_isles(self):
#     def execute(self, result_label="result"):
#     def reset(self):
#     def __repr__(self):
#     def __len__(self):
# 
# Path: robograph/datamodel/nodes/lib/files.py
# class File(node.Node):
# class TextFile(File):
# class TextFileReader(TextFile):
# class BinaryFileReader(File):
# class TextFileWriter(TextFile):
# class BinaryFileWriter(File):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
# 
# Path: robograph/datamodel/nodes/lib/value.py
# class Value(node.Node):
#     def output(self):
# 
# Path: robograph/datamodel/nodes/lib/http.py
# class HttpClient(node.Node):
# class StatusCode(node.Node):
# class StatusCodeOk(node.Node):
# class RawGet(HttpClient):
# class Get(RawGet):
# class RawPost(HttpClient):
# class Post(RawPost):
# class RawPut(HttpClient):
# class Put(RawPut):
# class RawDelete(HttpClient):
# class Delete(RawDelete):
#     DEFAULT_TIMEOUT_SECS = 3
#     def _encode_payload(self, response, mime_type):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):
#     def output(self):


# Path: sample_graphs/scrape_image.py
from robograph.datamodel.base import graph
from robograph.datamodel.nodes.lib import files, value, http

# Downloads an image from a remote HTTP server and saves it to a local file



def scraper_image(img_url, target_path):
    url = value.Value(value=img_url)
    client = http.Get(mime_type='image/png', )
    writer = files.BinaryFileWriter(filepath=target_path)


    g = graph.Graph('scrape_image', [url, client, writer])