Answers for "extract link from text python"

0

extract link from text python

import re
 
with open("path\url_example.txt") as file:
        for line in file:
            urls = re.findall('https?://(?:[-\w.]|(?:%[\da-fA-F]{2}))+', line)
            print(urls)
Posted by: Guest on March-29-2022

Code answers related to "extract link from text python"

Python Answers by Framework

Browse Popular Code Answers by Language