>>> from scancode import api
>>> api.get_urls('test.txt')
{'urls': [{'url': 'https://sk.wikipedia.org/wiki/Administrativne_clenenie_Slovenska', 'start_line': 1, 'end_line': 1}, {'url': 'https://ru.wikipedia.org/wiki', 'start_line': 2, 'end_line': 2}]}
>>>
Description
I just stumbled upon some files which have links in the following format:
Running this file through the URL detection yields https://sk.wikipedia.org/wiki/Administrativne_clenenie_Slovenska and https://ru.wikipedia.org/wiki, which both do not match the input.
How To Reproduce
Save the above code snippet as
test.txt.Open the interactive Python console and run:
System configuration