Make executable on Linux

pages
Terence Eden 2022-11-23 07:17:03 +00:00
rodzic bbef17d3d1
commit 571008ba1c
3 zmienionych plików z 5 dodań i 2 usunięć

3
on_this_day.py 100644 → 100755
Wyświetl plik

@ -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"] )
print( str(status["created_at"])[:16] + " " + BeautifulSoup(status["content"], features="html.parser").get_text() + " - " + status["uri"] )

3
status.py 100644 → 100755
Wyświetl plik

@ -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)
pprint(status)

1
threads.py 100644 → 100755
Wyświetl plik

@ -1,3 +1,4 @@
#!/usr/bin/env python
import config
from mastodon import Mastodon
from treelib import Node, Tree