Skip to content

Commit

Permalink
notification news
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKatsoulis committed Apr 29, 2018
1 parent af18770 commit 0abdac0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ def main():
website = website_list[index]
url_slice_no_http = url[:(url.find(":") + 1)]
if url.find(".com") == -1:
url_slice_no_link = url[:(url.find("co.uk") + 5)]
if url.find(".org") == -1:
url_slice_no_link = url[:(url.find("co.uk") + 5)]
else:
url_slice_no_link = url[:(url.find(".org") + 4)]
logger.info('url_slice_no_link is: {}'.format(url_slice_no_link))
else:
url_slice_no_link = url[:(url.find(".com") + 4)]
Expand Down

0 comments on commit 0abdac0

Please sign in to comment.