diff --git a/local/bin/manga_here_rss.py b/local/bin/manga_here_rss.py deleted file mode 100755 index edb9c80..0000000 --- a/local/bin/manga_here_rss.py +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/python - -from pyquery import PyQuery as pq -from pprint import pprint -import sys - -ITEM = """ - - {title} - {description} - {link} -""" - -class Release(object): - - def __init__(self, title, link): - self.title = title - self.link = link - - def __str__(self): - return ITEM.format( - title=self.title, - description="New release: {}".format(self.title), - link=self.link) - - def __contains__(self, string): - return string in self.title or string in self.link - -latest = pq(url="http://www.mangahere.co/latest/") - -print("""\ - - -""") - -for item in map(pq, latest("dd > a")): - release = Release(item.attr("title"), item.attr("href")) - if any(word in release for word in sys.argv): - print(str(release)) - -print(""" - - -""")