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
''' | |
This file is a helper function to scrape Github for Repo's to add to my website. | |
It can be set to run whenever Gatsby is called in order to add new Repo's as they arrive. | |
Usage: python RepoScraper.py SampleOutput.js | |
''' | |
from sys import argv | |
from github import Github | |
import re |
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 os | |
import re | |
from datetime import datetime | |
import errno | |
def titleToUrl(title): | |
lowerTitle = title.lower() | |
URL = lowerTitle.replace(" ", "-") | |
return "/blog/" + URL + "/" |
NewerOlder