Check one of my previous message please. It didn’t work.
Even with the family file dlated
D:\Development\python>python generate_family_file.py
Usage: %s <url> <short name>
This will create the file families/mywiki_family.py
g/wiki/Main_Page ncdb
Please insert a short name (eg: freeciv): ncdb
rg/wiki/Main_Page ncdb
Traceback (most recent call last):
File "generate_family_file.py", line 256, in <module>
FamilyFileGenerator(*sys.argv[1:]).run()
File "generate_family_file.py", line 60, in run
w = Wiki(self.base_url)
File "generate_family_file.py", line 217, in __init__
data = urlopen(fromurl).read()
File "generate_family_file.py", line 21, in urlopen
return urllib2.urlopen(req)
File "D:\Development\python\lib\urllib2.py", line 124, in
urlopen
return _opener.open(url, data, timeout)
File "D:\Development\python\lib\urllib2.py", line 383, in open
response = self._open(req, data)
File "D:\Development\python\lib\urllib2.py", line 401, in
_open
'_open', req)
File "D:\Development\python\lib\urllib2.py", line 361, in
_call_chain
result = func(*args)
File "D:\Development\python\lib\urllib2.py", line 1130, in
http_open
return self.do_open(httplib.HTTPConnection, req)
File "D:\Development\python\lib\urllib2.py", line 1103, in
do_open
r = h.getresponse()
File "D:\Development\python\lib\httplib.py", line 950, in
getresponse
response.begin()
File "D:\Development\python\lib\httplib.py", line 390, in
begin
version, status, reason = self._read_status()
File "D:\Development\python\lib\httplib.py", line 354, in
_read_status
raise BadStatusLine(line)
httplib.BadStatusLine
D:\Development\python>
Please help me.
Sent: Saturday, December 25, 2010 5:18 PM
Subject: Re: [Pywikipedia-l] setting my custom bot for my ncdb
wiki
You
just need to follow directions about running generate_family_files.py its not
that hard, also my custom wiki follows a different setup than yours
Just run
generate family files like you where told:
python generate_family_files.py
URL_TO_YOUR_MAIN_PAGE ncdb
if your run the exact command above but replace
URL_TO_YOUR_MAIN_PAGE with an actual URL it will work
_______________________________________________
Pywikipedia-l mailing
list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l