Jump to content

User talk:Lemmey

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Open Source

[edit]

LemmeyBOT has gone open source

  • LemmeyBOT.py Runs RefHistoryFix on each article in the broken references category
    • RefHistoryFix.py Attempt to fix broken references on the specified article by looking at article history
  • LemmeyBOT2.py Runs RefHistoryFix2 on each article in the broken references category
    • RefHistoryFix2.py Attempt to fix broken references on the specified article by looking at current versions of linked articles
  • RefHistoryFix3.py Attempt to fix broken references on the specified article by looking at a specific article or text file
  • Whoipedia.py A magical replacement of the Wikipedia class that doesn't require an editor to login
  • basic.py An example bot that uses the whoipedia class. Finally a bot that anyone can edit (with)...
  • TheDaily.py A method for posting current events to the proper pages.

RCP

[edit]
from BeautifulSoup import BeautifulSoup
import datetime
import urllib
import wikipedia
import time
import re

##Get soft numbers
url = "http://www.realclearpolitics.com/epolls/maps/obama_vs_mccain/"
tag = "map-legend2"
f=urllib.urlopen(url)
html=f.read()
f.close()
soup = BeautifulSoup(html)
##print soup.prettify()
soup = soup.find(id=tag)

images=soup.findAll('img')
[image.extract() for image in images]

candidates=soup.findAll("div", {"class" : re.compile('^candidate')})

for candidate in candidates:
	if candidate.find("p", {"class" : "candidate-name"}):
		firstPTag, secondPTag = candidate.findAll('p')
		nametot = firstPTag.string
		style = str(firstPTag.attrs[1][1])[len("color:"):]
		name = nametot[:-3]
		total = nametot[len(name):]

		print name, total, style

		solid , leaning = secondPTag .findAll('strong')
		print "Solid:",solid.string
		print "Leaning:",leaning.string
	else:
		tossupPTag = candidate.find('p')
		nametot = tossupPTag.string
		name = nametot[:-3]
		total = nametot[len(name):]
		style = str(tossupPTag.attrs[1][1])[len("color:"):]

		print name, total, style

warning

[edit]

Per my post at WP:AN/I, I am giving you a warning over this. Just because someone else is being an ass doesn't mean it's a good idea. The next gratuitous, off-topic comment, or personal attack, will result in a two week block of you and your bot. You are out of chances. - BanyanTree 03:03, 11 June 2008 (UTC)[reply]

  1. Your post was at WP:AN, not WP:AN/I.
  2. The bot is already blocked indefinitely. A two week block would effectively unblock the bot after two weeks.
  3. The comment is not off topic if the topic is expanded by other contributors. i.e. Realm of consideration in criminal law. --Lemmey talk 03:15, 11 June 2008 (UTC)[reply]
Thanks for the info. I hadn't kept track of the thread.
Fortunately, Wikipedia is not a criminal court. Cheers, BanyanTree 03:18, 11 June 2008 (UTC)[reply]
Not a criminal court? Mind if a quote you on that? With all the hoopla recently excuse me if I became confused. Also you may want to conider restoring my comments as they are WP:obvious satire and Israel is my second favorite nation. --Lemmey talk 03:20, 11 June 2008 (UTC)[reply]

You have been blocked from editing Wikipedia for a period of 2 weeks as a result of your disruptive edits. You are free to make constructive edits after the block has expired, but please note that vandalism (including page blanking or addition of random text), spam, deliberate misinformation, privacy violations, personal attacks; and repeated, blatant violations of our policies concerning neutral point of view and biographies of living persons will not be tolerated. I imagine that you're going to appeal, stating that this is not a "gratuitous, off-topic comment, or personal attack", but I don't argue semantics with reincarnations of indef blocked users. - BanyanTree 03:27, 11 June 2008 (UTC)[reply]

request

[edit]
This user's unblock request has been reviewed by an administrator, who declined the request. Other administrators may also review this block, but should not override the decision without good reason (see the blocking policy).

Lemmey (block logactive blocksglobal blockscontribsdeleted contribsfilter logcreation logchange block settingsunblockcheckuser (log))


Request reason:

cited contrib does not constitute a "gratuitous, off-topic comment, or personal attack" given context of other users comments, blocking statement does not give evidence of other defamatory claims all of which are non-applicable to issue at hand

Decline reason:

This does not address your blocking reason, i.e., that you are evading an indefinite block on another account. —  Sandstein  05:50, 11 June 2008 (UTC)[reply]


If you want to make any further unblock requests, please read the guide to appealing blocks first, then use the {{unblock}} template again. If you make too many unconvincing or disruptive unblock requests, you may be prevented from editing this page until your block has expired. Do not remove this unblock review while you are blocked.

Hey, thought you may be interested. I have created a new article on voter ID laws. It will continue a link to the Supreme Court case, but I want to expand its coverage to history and ongoing political change. 2011 will be an exciting year for developments here, so please, come on in and join in!!

Sincerely,

Screwball23 talk 03:43, 18 September 2011 (UTC)[reply]