Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

using glob module to search all html files in current directory in python

import glob
# path of the current directory
path = '.'
curfiles = glob.glob(path + '/*.html')
for file in curfiles:
    print(file)
    
Copy Code
Comment

PREVIOUS NEXT
Code Example
Python :: difference between iglob() and glob() functions in python 
Python :: transfer learning in python with custom dataset 
Python :: Annotation graphique python 
Python :: python ordereddict initialization 
Python :: pandas iloc stack overflow 
Python :: apply WEKA filter on customer dataset 
Python :: Broadcasting with NumPy Arrays Plotting a two-dimensional function Example 
Python :: Python NumPy rollaxis Function Example 
Python :: run all pycharm jupyter notebook 
Python :: conmbination in python 
Python :: differences between Pool.apply, Pool.apply_async, Pool.map and Pool.map_async. 
Python :: Python NumPy ascontiguousarray Function Example Tuple to an array 
Python :: Python NumPy dstack Function Example 02 
Python :: python locateonscreen method 
Python :: how to add to an exsiting value of an index in a list 
Python :: Python __ne__ 
Python :: NumPy resize Example out of bound values [appending zeros] 
Python :: get forex exchange rates in python 
Python :: NumPy unpackbits Syntax 
Python :: http://172.18.0.128:8114/ 
Python :: mock connection sqlalchemy 
Python :: Creating a Dictionary using built-in function dict() 
Python :: add ing to the end of a string or add ly if the string ends with ing python 
Python :: python extract multiple values from a single cell in a dataframe column using pandas 
Python :: how to make a yes or no question in python 
Python :: if no python 
Python :: Flask/Werkzeug, how to return previous page after login 
Python :: KeyError: 0 python 
Python :: ring Do Again Loop 
Python :: for loop the string from reverse order and skipping last element in string python 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =