From 571008ba1c6f75471d26c9f75fc8acc1f8635203 Mon Sep 17 00:00:00 2001 From: Terence Eden Date: Wed, 23 Nov 2022 07:17:03 +0000 Subject: [PATCH] Make executable on Linux --- on_this_day.py | 3 ++- status.py | 3 ++- threads.py | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 100755 on_this_day.py mode change 100644 => 100755 status.py mode change 100644 => 100755 threads.py diff --git a/on_this_day.py b/on_this_day.py old mode 100644 new mode 100755 index e6a464b..ae56d97 --- a/on_this_day.py +++ b/on_this_day.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python from datetime import datetime, timedelta from mastodon import Mastodon from bs4 import BeautifulSoup @@ -37,4 +38,4 @@ while (year_counter >= year_joined ) : all_statuses = mastodon.fetch_remaining(statuses) # Print the date and URl for status in all_statuses : - print( str(status["created_at"])[:16] + " " + BeautifulSoup(status["content"], features="html.parser").get_text() + " - " + status["uri"] ) \ No newline at end of file + print( str(status["created_at"])[:16] + " " + BeautifulSoup(status["content"], features="html.parser").get_text() + " - " + status["uri"] ) diff --git a/status.py b/status.py old mode 100644 new mode 100755 index b241eec..e1691e2 --- a/status.py +++ b/status.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python import config from mastodon import Mastodon from urllib.parse import urlparse @@ -29,4 +30,4 @@ mastodon = Mastodon( api_base_url=config.instance, access_token=config.access_to # Get the status status = mastodon.status(status_id) -pprint(status) \ No newline at end of file +pprint(status) diff --git a/threads.py b/threads.py old mode 100644 new mode 100755 index daaea75..791ea4a --- a/threads.py +++ b/threads.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python import config from mastodon import Mastodon from treelib import Node, Tree