Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

crawl a folder python

for root, dirs, files in os.walk('/tmp'):
    if os.path.basename(root) != 'modules':
        continue
    data = [parse_file(os.path.join(root,f)) for f in files]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #crawl #folder #python
ADD COMMENT
Topic
Name
7+1 =