mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-01-30 02:44:26 +00:00
* Update settings * Whitespace changes * Comment out merger hooks in gitattributes Corrupt maps would have to be resolved in repo before hooks could be updated * Revert "Whitespace changes" This reverts commitafbdd1d844. * Whitespace again minus example * Gitignore example changelog * Restore changelog merge setting * Keep older dmi hook attribute until hooks can be updated * update vscode settings too * Renormalize remaining * Revert "Gitignore example changelog" This reverts commitde22ad375d. * Attempt to normalize example.yml (and another file I guess) * Try again
16 lines
438 B
Python
16 lines
438 B
Python
from FMLformatter import formatter
|
|
from urllib2 import urlopen
|
|
try:
|
|
from hashlib import md5
|
|
except:
|
|
from md5 import md5
|
|
from save_load import save,load
|
|
import CORE_DATA
|
|
directory = CORE_DATA.directory
|
|
FML = urlopen("http://www.fmylife.com/random")
|
|
formatted = formatter(FML.read().split("\n"))
|
|
for Quote in formatted:
|
|
exact = Quote[:Quote.find("#")]
|
|
# print exact
|
|
save(directory+"fmlquotes/"+md5(exact).hexdigest()+".txt",exact)
|