Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Fetching html files from local directories
Post: Fetching html files from local directories

import os import urllib.request # the path where the html is located path = r"C:\Users\The Capricorn\Documents\Html" for filename in os.listdir(path): # Now we have to find the full path nam...
shiva General Coding Help 3 3,415 Mar-20-2018, 12:48 PM
    Thread: Different Output of findall and search in re module
Post: Different Output of findall and search in re modul...

link = '<a href="http://www.google.com">Google</a>'re.search('<a[^>]+href=["\'](.*?)["\']',link,re.IGNORECASE).group()This code gives the output '<a href="http://www.google.com"' ...
shiva Web Scraping & Web Development 1 2,303 Mar-12-2018, 06:20 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020