eliminate black dye from live database
O N yppedia distance scraper finish
- BUGS - Sage fails with a `no possible target' (line 321)
- - copyright and usage info about update-master-info needed
+ copyright and usage info about update-master-info needed
when update rejected print better error message including
broken commodity name
notice commodities deleted from source-info and warn about them
- support Jade and Opal (UTF-8 trouble with Python ?!)
-
WEBSITE
-------
wood 175kg 250l
+client ypp-sc-tools yarrg
+ lastpage
+
+
+#---------- OCEANS ----------
# subscriber oceans
ocean Midnight
ocean Crimson
# International oceans (doubloon oceans)
-# broken due to charset problems
-#ocean Jade
-#ocean Opal
-client ypp-sc-tools yarrg
- lastpage
+ocean Jade
+ Cigüeña
+ Isla Scrimshaw
+ Ibis
+ Isla Kiwara
+ Águila
+ Cayo Escorbuto
+
+ocean Opal
+ Canis
+ Atchafalaya-Insel
+
use DBI;
use Commods;
+$ENV{'LC_CTYPE'}= 'en_GB.UTF-8';
sub full ($) {
my ($ocean) = @_;
from optparse import OptionParser
from BeautifulSoup import BeautifulSoup
+
+# For fuck's sake!
+import codecs
+import locale
+def fix_stdout():
+ sys.stdout = codecs.EncodedFile(sys.stdout, locale.getpreferredencoding())
+ def null_decode(input, errors='strict'):
+ return input, len(input)
+ sys.stdout.decode = null_decode
+# From
+# http://ewx.livejournal.com/457086.html?thread=3016574
+# http://ewx.livejournal.com/457086.html?thread=3016574
+# lightly modified.
+# See also Debian #415968.
+fix_stdout()
+
+
ocean = None
soup = None
opts = None