dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 722b916da2916b804f3277df172e65c9b60c7233
parent 238cd880d508c97d1068a5b7ceb9be730b92016c
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sat, 18 Aug 2018 21:08:58 -0400

Update github filter

Diffstat:
M.config/urlwatch/hooks.py | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/.config/urlwatch/hooks.py b/.config/urlwatch/hooks.py @@ -87,17 +87,12 @@ class GitHubFilter(filters.FilterBase): def filter(self, data, subfilter=None): soup = BeautifulSoup(data, "html5lib") - releases = soup.select('h1.release-title a') - tags = soup.select('span.tag-name') + releases = soup.select('h4.commit-title a') if releases: results = [rel.text for rel in releases] return '\n'.join(results) - elif tags: - results = [tag.text for tag in tags] - return '\n'.join(results) - else: fallback = soup.select('div.site') return '\n'.join([str(tag) for tag in fallback])