문제

I'm trying to get some stats from my Halo character onto my desktop. Right now I have a geektool script that turns a service record page into a .png, and then puts that on my desktop. However, I would like it just to display the div class="summary-details"

What would be the best way to do this? I was thinking of writing some kind of python script that would parse the page, copy the necessary style and content sections, then make a new html document every 15 minutes or so. However, I did some research and learned that parsing with regular expressions is not advised. What should I use to parse the page? I'd prefer using something for python. Thanks.

도움이 되었습니까?

해결책

Beautiful Soup is well suited for parsing HTML. However it's not going to be easy to produce an image of this div as it appears on the website.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top