Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

extract link from text python

import re
 
with open("pathurl_example.txt") as file:
        for line in file:
            urls = re.findall('https?://(?:[-w.]|(?:%[da-fA-F]{2}))+', line)
            print(urls)
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #extract #link #text #python
ADD COMMENT
Topic
Name
3+3 =