'How to use BeautifulSoup to find a tag with particular attribute

Here is the attribute:

data-mw='{"parts":[{"template":{"target":{"wt":"reflist","href":"./Template:Reflist"},"params":{},"i":0}}]}'

data-mw is the tag. Also note that the values of wt, href and params changes.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source