Skip to content

Instantly share code, notes, and snippets.

import json, random
from osgeo import ogr
if __name__ == "__main__":
word_file = "/usr/share/dict/american-english"
WORDS = open(word_file).read().splitlines()
### SHP
f1 = ogr.Open("~/addresses_wgs84.shp")
shape = f1.GetLayer(0)
@salvah22
salvah22 / kaggle.ipynb
Created April 7, 2022 13:16
kaggle.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
"""
S1: https://www.crummy.com/software/BeautifulSoup/
S2: https://stackoverflow.com/questions/2610395/python-script-to-check-website-for-a-tag
"""
import os, time
from urllib.request import urlopen
from bs4 import BeautifulSoup
"""
Author: Salvador Hernández
Create a txt from all your exported Google Keep notes (from Google Takeout) using the JSON files, with python.
Google Keep is a great on the cloud tool, but it is always nice to backup things locally, with google Takeout
(https://takeout.google.com/settings/takeout) you can download everything from Keep, this will include some HTML files,
JSON files, attachments and other files, it is bulky and those are not very handy sometimes.
The script creates a txt file for each of your valuable google keep notes (using only the .JSON files), with