Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: wisecracker
Forum: Programming 03-08-2020
2,913
Posted By wisecracker
If you are using one line it HAS to be: ...
If you are using one line it HAS to be:
MYURL=str(pattern.search(script.text).group(0)); MYURL=str.replace(MYURL, '\u002D', '-'); print(MYURL)
Forum: Programming 03-08-2020
2,913
Posted By wisecracker
Hi bob123... Which version of python 3.x.x are...
Hi bob123...
Which version of python 3.x.x are you using, OS, and machine...

--- Post updated at 11:41 PM ---

I hope this does not attach itself to the previous...
It looks like you are using...
Forum: Programming 03-08-2020
2,913
Posted By wisecracker
Hi bob123... I don't use BeautifulSoup but...
Hi bob123...

I don't use BeautifulSoup but you could try putting it into a variable, untested:
MYURL=str(pattern.search(script.text).group(0))
print(MYURL)
Showing results 1 to 3 of 3

 

Featured Tech Videos

All times are GMT -4. The time now is 09:07 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy