Permalink
Browse files

adding scheduler code

  • Loading branch information...
1 parent ebba34d commit a9dec9cd7ceeb2ff05ace7871ec6ce87c9d1dcac Jacob Vorreuter committed May 17, 2009
View
@@ -8,7 +8,6 @@ test: all
prove t/*.t
clean:
- (cd templates;$(MAKE) clean)
(cd src;$(MAKE) clean)
rm -rf erl_crash.dump *.boot *.rel *.script ebin/*.beam
View
@@ -1,16 +1,27 @@
-%% excavator is a template driven Erlang data miner
-%%
-%% An example set of template instructions:
-[ assign({url, ?ROOT_URL}, scope),
- assert(scope, has_text),
+== ABOUT ==
+excavator is an Erlang application for ingesting data from various
+sources (APIs, data feeds, web content, etc).
- [ assign({xpath, scope, "//div[@class='track_name']/text()"}, scope), %% returns multiple text elements
- print(scope),
- assert(scope, has_list_items),
-
- each(scope, [
- print(scope),
- assert(scope, has_text)
- ])
- ],
-]
+== LICENSE ==
+%% Copyright (c) 2009 Jacob Vorreuter <jacob.vorreuter@gmail.com>
+%%
+%% Permission is hereby granted, free of charge, to any person
+%% obtaining a copy of this software and associated documentation
+%% files (the "Software"), to deal in the Software without
+%% restriction, including without limitation the rights to use,
+%% copy, modify, merge, publish, distribute, sublicense, and/or sell
+%% copies of the Software, and to permit persons to whom the
+%% Software is furnished to do so, subject to the following
+%% conditions:
+%%
+%% The above copyright notice and this permission notice shall be
+%% included in all copies or substantial portions of the Software.
+%%
+%% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+%% EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+%% OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+%% NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+%% HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+%% WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+%% FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+%% OTHER DEALINGS IN THE SOFTWARE.
View
@@ -3,16 +3,21 @@
dictionary=dict:new(), %% term store
parent, %% state()
fail, %% {Error::tuple(), FailInstructions::list()}
+ request_times = [], %% [seconds()]
configuration=dict:new()
}).
-% -define(INFO_MSG, fun(Format0, Args0) -> io:format(Format0, Args0) end).
-% -define(INFO_REPORT, fun(Args0) -> io:format("~p~n", [Args0]) end).
-% -define(ERR_MSG, fun(Format0, Args0) -> io:format(Format0, Args0) end).
+-define(INFO_MSG, fun(Format0, Args0) -> io:format(Format0, Args0) end).
+-define(INFO_REPORT, fun(Args0) -> io:format("~p~n", [Args0]) end).
+-define(ERR_MSG, fun(Format0, Args0) -> io:format(Format0, Args0) end).
--define(INFO_REPORT, fun(Args0) -> error_logger:info_report(Args0) end).
--define(INFO_MSG, fun(Format0, Args0) -> error_logger:info_msg(Format0, Args0) end).
--define(ERROR_MSG, fun(Format0, Args0) -> error_logger:error_msg(Format0, Args0) end).
+% -define(INFO_REPORT, fun(Args0) -> error_logger:info_report(Args0) end).
+% -define(INFO_MSG, fun(Format0, Args0) -> error_logger:info_msg(Format0, Args0) end).
+% -define(ERROR_MSG, fun(Format0, Args0) -> error_logger:error_msg(Format0, Args0) end).
+
+% -define(INFO_MSG, fun(_, _) -> ok end).
+% -define(INFO_REPORT, fun(_) -> ok end).
+% -define(ERR_MSG, fun(_, _) -> ok end).
-define(STORE, fun ex_util:store/3).
-define(FETCH, fun ex_util:fetch/2).
Oops, something went wrong.

0 comments on commit a9dec9c

Please sign in to comment.