Misplaced Pages

User talk:Lemmey: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 19:36, 18 February 2008 editLemmey (talk | contribs)2,134 edits Blanked the page← Previous edit Latest revision as of 03:37, 14 February 2023 edit undoMalnadachBot (talk | contribs)11,637,095 editsm Fixed Lint errors. (Task 12)Tag: AWB 
(177 intermediate revisions by 57 users not shown)
Line 1: Line 1:
{{User:MiszaBot/config
|algo = old(24h)
|archive = User talk:Lemmey/Archives
}}

== Open Source ==

LemmeyBOT has gone open source
*] Runs RefHistoryFix on each article in the broken references category
**] Attempt to fix broken references on the specified article by looking at article history
*] Runs RefHistoryFix2 on each article in the broken references category
**] Attempt to fix broken references on the specified article by looking at current versions of linked articles
*] Attempt to fix broken references on the specified article by looking at a specific article or text file
*] A magical replacement of the Misplaced Pages class that doesn't require an editor to login
*] An example bot that uses the whoipedia class. Finally a bot that anyone can edit (with)...
*] A method for posting current events to the proper pages.

== RCP ==

<syntaxhighlight lang=python>
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')

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)
name = nametot
total = nametot

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
total = nametot
style = str(tossupPTag.attrs)

print name, total, style
</syntaxhighlight>

== warning ==

Per at ], I am giving you a warning over . 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. - ]] 03:03, 11 June 2008 (UTC)
#Your post was at WP:AN, not WP:AN/I.
#The bot is already blocked indefinitely. A two week block would effectively unblock the bot after two weeks.
#The comment is not off topic if the topic is expanded by other contributors. i.e. Realm of consideration in criminal law. --] ] 03:15, 11 June 2008 (UTC)
::Thanks for the info. I hadn't kept track of the thread.
::Fortunately, Misplaced Pages is not a criminal court. Cheers, ]] 03:18, 11 June 2008 (UTC)
:::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. --] ] 03:20, 11 June 2008 (UTC)
<div style="clear: both"></div>]'''You have been {{#if:2 weeks||temporarily}} ] from editing Misplaced Pages {{#if:2 weeks|for a period of 2 weeks}} as a result of your {{#if:|disruptive edits to ]|disruptive edits}}.''' You are free to make constructive edits after the block has expired, but please note that ] (including page blanking or addition of ]), ], deliberate misinformation, privacy violations, ]; and repeated, blatant violations of our policies concerning ] and ] will not be tolerated.<!-- Template:Test5 --> I imagine that you're going to appeal, stating that is not a "gratuitous, off-topic comment, or personal attack", but I don't argue semantics with reincarnations of indef blocked users. - ]] 03:27, 11 June 2008 (UTC)

== request ==

{{unblock reviewed|1=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=This does not address your blocking reason, i.e., that you are evading an indefinite block on another account. — <small><span style="border:1px solid black;padding:1px;">]</span></small> 05:50, 11 June 2008 (UTC)}}

== ] ==

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,

] ] 03:43, 18 September 2011 (UTC)

Latest revision as of 03:37, 14 February 2023

Open Source

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 Misplaced Pages 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

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')
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)
		name = nametot
		total = nametot
		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
		total = nametot
		style = str(tossupPTag.attrs)
		print name, total, style

warning

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)

  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)
Thanks for the info. I hadn't kept track of the thread.
Fortunately, Misplaced Pages is not a criminal court. Cheers, BanyanTree 03:18, 11 June 2008 (UTC)
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)

You have been blocked from editing Misplaced Pages 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 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)


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.

Voter ID laws (United States)

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)