This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |