Skip to content
Snippets Groups Projects
Commit cfb14556 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

Merge branch 'crawler_dev' of gitlab.gwdg.de:bmp-caosdb/caosdb-advanced-user-tools into crawler_dev

parents 875a5472 540a2fae
Branches
Tags
No related merge requests found
...@@ -51,9 +51,10 @@ class AbstractCFood(object): ...@@ -51,9 +51,10 @@ class AbstractCFood(object):
# a match # a match
# instances shall be used to keep track of a match; i.e. entities can be # instances shall be used to keep track of a match; i.e. entities can be
# object variable # object variable
def __init__(self, pattern, use_cache=False): def __init__(self, pattern, use_cache=False, access=lambda x: x):
self.pattern = re.compile(pattern) self.pattern = re.compile(pattern)
self.use_cache = use_cache self.use_cache = use_cache
self.access = access
def treat_match(self, crawled_file, match): def treat_match(self, crawled_file, match):
print(crawled_file) print(crawled_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment