User talk:Lemmey
Open SourceLemmeyBOT has gone open source
RCPfrom 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
warningPer 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)
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) request
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 log • active blocks • global blocks • contribs • deleted contribs • filter log • creation log • change block settings • unblock • checkuser (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) 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, |