kopia lustrzana https://codeberg.org/edent/Mastodon_Tools
Make executable on Linux
rodzic
bbef17d3d1
commit
571008ba1c
|
@ -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"] )
|
||||
|
|
|
@ -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,3 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
import config
|
||||
from mastodon import Mastodon
|
||||
from treelib import Node, Tree
|
||||
|
|
Ładowanie…
Reference in New Issue