]> jfr.im git - irc/rizon/acid.git/blob - pyva/src/main/python/esim/api/article.py
.gitignore: Ignore all pyva logs
[irc/rizon/acid.git] / pyva / src / main / python / esim / api / article.py
1 class Article:
2 def __init__(self, a):
3 header = a.getpath(a.xpath("//a[@class='articleTitle']")[0])[:-3]
4
5 self.title = a.xpath(header + "/a[1]//text()")
6 self.writer = a.xpath(header + "/a[2]//text()")
7 self.votes = a.xpath(header + "/div")[1].text.strip()
8 self.subs = a.xpath("//div[@class='bigArticleTab']")[1].text.strip()