User talk:MEBot

From BR Bullpen

Does anyone have experience with pywikipediabot?

I downloaded the Python and pywikipediabot software, and created the user-config.py below:

mylang = 'en'
family = 'BR_Bullpen'
usernames['BR_Bullpen']['en'] = 'MEBot'
console_encoding = 'utf-8'

I then created the BR_Bullpen_family.py below:

# -*- coding: utf-8  -*-

import family

# The Baseball-Reference Bullpen, a baseball wiki.

class Family(family.Family):

#Set the family name; this should be the same as in the filename. Put the hostname under self.langs.
    def __init__(self):
        family.Family.__init__(self)
        self.name = 'BR_Bullpen'
        self.langs = {
            'en': 'www.baseball-reference.com/bullpen/',
        }
        
#Specify the project namespace here. Other namespaces will be set to MediaWiki default.
        self.namespaces[4] = {
            '_default': u'BR_Bullpen',
        }

        self.namespaces[5] = {
            '_default': u'BR_Bullpen talk',
        }
        
#The MediaWiki version used. Not very important in most cases.
    def version(self, code):
        return "1.6.7"
    
#The path of index.php
    def path(self, code):
        return '/index.php'

However when ever I try to run the login.py script, I am asked for the bot's password but am unable to enter anything (no letters, numbers, symbols, etc.).

~\pywikipedia>login.py

Checked for running processes. 1 processes currently running, including the curr
ent process.
Password for user MEBot on BR_Bullpen:en: <--THIS IS WHERE I CANNOT ENTER ANYTHING; PRESSING ENTER GIVES ME THE FOLLOWING-->
Logging in to BR_Bullpen:en as MEBot
Traceback (most recent call last):
  File "~\pywikipedia\
login.py", line 218, in ?
    main()
  File "~\pywikipedia\
login.py", line 214, in main
    loginMan.login()
  File "~\pywikipedia\
login.py", line 167, in login
    cookiedata = self.getCookie()
  File "~\pywikipedia\
login.py", line 119, in getCookie
    conn.request("POST", pagename, data, headers)
  File "~\Python24\lib\httplib.py", line 804, in request
    self._send_request(method, url, body, headers)
  File "~\Python24\lib\httplib.py", line 827, in _send_request
    self.endheaders()
  File "~\Python24\lib\httplib.py", line 798, in endheaders
    self._send_output()
  File "~\Python24\lib\httplib.py", line 679, in _send_output
    self.send(msg)
  File "~\Python24\lib\httplib.py", line 646, in send
    self.connect()
  File "~\Python24\lib\httplib.py", line 614, in connect
    socket.SOCK_STREAM):
socket.gaierror: (11001, 'getaddrinfo failed')

So I am stuck. My first though was that either bots are not allowed here or that I cannot login in since MEBot isn't flagged as a bot, can a bureaucrat confirm either? --MichaelEng 23:28, 25 June 2006 (EDT)

Yeah, that part is confusing. Even though you don't see any text being entered, what you type when it asks you to enter a password is being entered, but its invisible text. Just type in the password and hit enter and it should log in. The other way you can do it is adding the extension "-pass:PASSWORD" after login.py, either way works. If you need any other help w/ your bot let me know, I can try to help you. Pinky 14:17, 2 July 2007 (EDT)

Bot status granted. - --Mischa 06:24, 27 June 2006 (EDT)