annotate bin/wiki @ 11295:0b054ddeff49

<wob_jonas> perl -eopen$i,"<",($f="wisdom/aristotle");$_=<$i>; s/(fifth) kind of vitreous/$1/ or die; if (1) { open$o,">",$f; print$o $_ or die; } print substr$_,200;
author HackBot
date Mon, 01 Jan 2018 18:01:49 +0000
parents 355a1c8028dc
children 6f89145cd692
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10392
355a1c8028dc <oerjan> fetch bin/wiki https://hackego.esolangs.org/get/bin/wiki
HackBot
parents:
diff changeset
1 #!/usr/bin/env python
355a1c8028dc <oerjan> fetch bin/wiki https://hackego.esolangs.org/get/bin/wiki
HackBot
parents:
diff changeset
2 import sys, os.path, urllib
355a1c8028dc <oerjan> fetch bin/wiki https://hackego.esolangs.org/get/bin/wiki
HackBot
parents:
diff changeset
3 if len(sys.argv) <= 1:
355a1c8028dc <oerjan> fetch bin/wiki https://hackego.esolangs.org/get/bin/wiki
HackBot
parents:
diff changeset
4 print "https://esolangs.org/"
355a1c8028dc <oerjan> fetch bin/wiki https://hackego.esolangs.org/get/bin/wiki
HackBot
parents:
diff changeset
5 else:
355a1c8028dc <oerjan> fetch bin/wiki https://hackego.esolangs.org/get/bin/wiki
HackBot
parents:
diff changeset
6 f = os.path.abspath(sys.argv[1])
355a1c8028dc <oerjan> fetch bin/wiki https://hackego.esolangs.org/get/bin/wiki
HackBot
parents:
diff changeset
7 print ("https://esolangs.org/wiki/" +
355a1c8028dc <oerjan> fetch bin/wiki https://hackego.esolangs.org/get/bin/wiki
HackBot
parents:
diff changeset
8 urllib.quote(f))