Welcome to my blog. Help yourself.
I found that the urls to the news of some stocks are not working. After I checked the detail, the 'http://' prefix was repeated. Oops, some changes in the data source caused my bugs.
I just use 'rfind' to get the first '//' and remove all characters before it, including the splitter '//'.
So, test is very important to find bugs and keep the availability of products, especially seft-test and reporting.
To be careful when dealing with data from outside and make the code stronger.