Skip to content

Instantly share code, notes, and snippets.

View franprince's full-sized avatar
:octocat:
Focusing

Francisco Prince franprince

:octocat:
Focusing
View GitHub Profile
@franprince
franprince / get_twitter_bookmarks.py
Created February 22, 2021 20:20 — forked from divyajyotiuk/get_twitter_bookmarks.py
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: