Skip to content

Instantly share code, notes, and snippets.

View sad-electronics's full-sized avatar
😼

Cutie-PHY sad-electronics

😼
  • Europe
  • 22:19 (UTC +02:00)
View GitHub Profile
@divyajyotiuk
divyajyotiuk / get_twitter_bookmarks.py
Last active February 10, 2024 05:40
Python code to get text and link of the bookmarked tweets and save in markdown
import json
import glob
all_bookmarks = []
md_file = open("bookmarks.md", "w+") # saving in markdown file, if no file exists using '+' creates one
files = [file for file in glob.glob("JSONBookmarks/*")] # using glob to read all files from the folder
for file_name in files:
print(file_name)
with open(file_name) as bk: