iwant use pyquery to do this.
for example:
html='<div>arya stark<img src="1111"/>ahahah<img src="2222"/></div>'
a=PyQuery(html)
i want to modify the html to
<div>arya stark<img src="aaaa"/>ahahah<img src="bbbb"/></div>
in other words, just need change img element's src attribute, and get the modified html.
any ideas?or any other method?
thanks