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
No related branches found
No related tags found
No related merge requests found
......@@ -51,9 +51,10 @@ class AbstractCFood(object):
# a match
# instances shall be used to keep track of a match; i.e. entities can be
# 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.use_cache = use_cache
self.access = access
def treat_match(self, crawled_file, match):
print(crawled_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment