Bugs item #2744221, was opened at 2009-04-08 15:44
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2744221&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Marcin Cieslak (saperski)
Assigned to: Nobody/Anonymous (nobody)
Summary: Get rid of "Checked for running processes. "
Initial Comment:
Whenever the pywikipedia bot is started, or "wikipedia" module imported, one gets the following message:
% python version.py
Checked for running processes. 1 processes currently running, including the current process.
Pywikipedia (r6577 (wikipedia.py), kwi 05 2009, 11:19:22)
Python 2.5.1 (r251:54863, Oct 18 2007, 01:42:40)
[GCC 3.3.2]
This is very annoying when using for example 'pydoc'.
Also I expect my bot running in cron to be quiet when for example no work is to be done.
Enabling logging in the bot does help, and one gets mailed every time when the cron executes the job.
(No, redirecting stderr is not an option since getting mail from cron is useful when things go south).
Can we make this off by default?
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-12 14:30
Message:
I would agree with the idea, the information is not really relevant for
users.
But let's wait for a few more days, for some other opinions, shall we? =)
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-04-12 14:18
Message:
It's annoying me too. Good candidate for verbose output. Any objection /
alternative?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2744221&group_…
Bugs item #2744221, was opened at 2009-04-08 15:44
Message generated for change (Comment added) made by cosoleto
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2744221&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Marcin Cieslak (saperski)
Assigned to: Nobody/Anonymous (nobody)
Summary: Get rid of "Checked for running processes. "
Initial Comment:
Whenever the pywikipedia bot is started, or "wikipedia" module imported, one gets the following message:
% python version.py
Checked for running processes. 1 processes currently running, including the current process.
Pywikipedia (r6577 (wikipedia.py), kwi 05 2009, 11:19:22)
Python 2.5.1 (r251:54863, Oct 18 2007, 01:42:40)
[GCC 3.3.2]
This is very annoying when using for example 'pydoc'.
Also I expect my bot running in cron to be quiet when for example no work is to be done.
Enabling logging in the bot does help, and one gets mailed every time when the cron executes the job.
(No, redirecting stderr is not an option since getting mail from cron is useful when things go south).
Can we make this off by default?
----------------------------------------------------------------------
>Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-04-12 14:18
Message:
It's annoying me too. Good candidate for verbose output. Any objection /
alternative?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2744221&group_…
Revision: 6600
Author: cosoleto
Date: 2009-04-12 12:03:56 +0000 (Sun, 12 Apr 2009)
Log Message:
-----------
Removed a workaround for the Live Search words number problem, useless now and in the future.
Modified Paths:
--------------
trunk/pywikipedia/copyright.py
Modified: trunk/pywikipedia/copyright.py
===================================================================
--- trunk/pywikipedia/copyright.py 2009-04-12 10:21:04 UTC (rev 6599)
+++ trunk/pywikipedia/copyright.py 2009-04-12 12:03:56 UTC (rev 6600)
@@ -1191,11 +1191,7 @@
excl_list = exclusion_list()
-if number_of_words > 22:
- if not config.copyright_google and not config.copyright_yahoo and config.copyright_msn:
- warn("'number_of_words' variable set to 22 as Live Search requires a lower value of %s" % number_of_words, prefix = 'Warning')
- number_of_words = 22
- elif config.copyright_msn:
+if number_of_words > 22 and config.copyright_msn:
warn("Live Search requires a lower value for 'number_of_words' variable "
"(current value is %d, a good value may be 22)." % (number_of_words), prefix = 'Warning')
Revision: 6599
Author: cosoleto
Date: 2009-04-12 10:21:04 +0000 (Sun, 12 Apr 2009)
Log Message:
-----------
Documented -text command line option
Modified Paths:
--------------
trunk/pywikipedia/copyright.py
Modified: trunk/pywikipedia/copyright.py
===================================================================
--- trunk/pywikipedia/copyright.py 2009-04-12 09:18:51 UTC (rev 6598)
+++ trunk/pywikipedia/copyright.py 2009-04-12 10:21:04 UTC (rev 6599)
@@ -33,6 +33,8 @@
-output - Append results to a specified file (default:
'copyright/output.txt')
+-text:input_text - Work on a specified text
+
-file - Work on all pages given in a local text file.
Will read any [[wiki link]] and use these articles.
Argument can also be given as "-file:filename".
@@ -67,6 +69,11 @@
python copyright.py -cat:"Wikipedia featured articles" -maxquery:0
+You can include also the text to examine directly on the command line:
+
+ python copyright.py -text:"
+ ...text...
+ "
"""
#
Revision: 6598
Author: cosoleto
Date: 2009-04-12 09:18:51 +0000 (Sun, 12 Apr 2009)
Log Message:
-----------
Changed default number_of_words variable from 31 to 22.
The variable is utilized to limit number of words sent to search engine and influences the number of queries to execute for pages, as well as the number of results. The previous value was too low to work fine with Live Search, the current one is tested a long time on Italian Wikipedia.
Modified Paths:
--------------
trunk/pywikipedia/copyright.py
Modified: trunk/pywikipedia/copyright.py
===================================================================
--- trunk/pywikipedia/copyright.py 2009-04-12 08:55:59 UTC (rev 6597)
+++ trunk/pywikipedia/copyright.py 2009-04-12 09:18:51 UTC (rev 6598)
@@ -88,7 +88,7 @@
min_query_string_len = 120
# Split the text into strings of a specified number of words.
-number_of_words = 31
+number_of_words = 22
# Try to skip quoted text.
exclude_quote = True
Revision: 6596
Author: cosoleto
Date: 2009-04-11 23:06:50 +0000 (Sat, 11 Apr 2009)
Log Message:
-----------
Fixed SOAPpy URL
Modified Paths:
--------------
trunk/pywikipedia/copyright.py
Modified: trunk/pywikipedia/copyright.py
===================================================================
--- trunk/pywikipedia/copyright.py 2009-04-11 23:05:22 UTC (rev 6595)
+++ trunk/pywikipedia/copyright.py 2009-04-11 23:06:50 UTC (rev 6596)
@@ -15,7 +15,7 @@
and to download/install the SOAPpy module from http://pywebsvcs.sf.net or using
SVN with the following command:
-svn co http://pywebsvcs.svn.sourceforge.net/svnroot/pywebsvcs/trunk/SOAPpy SOAPpy
+svn co http://pywebsvcs.svn.sourceforge.net/svnroot/pywebsvcs/trunk/SOAPpy/SOAPpy SOAPpy
Unlike SOAPpy version 0.12, current SVN version has no problem with Python 2.5.
Revision: 6595
Author: cosoleto
Date: 2009-04-11 23:05:22 +0000 (Sat, 11 Apr 2009)
Log Message:
-----------
Simplified SOAPpy download instructions
Modified Paths:
--------------
trunk/pywikipedia/copyright.py
Modified: trunk/pywikipedia/copyright.py
===================================================================
--- trunk/pywikipedia/copyright.py 2009-04-11 22:02:07 UTC (rev 6594)
+++ trunk/pywikipedia/copyright.py 2009-04-11 23:05:22 UTC (rev 6595)
@@ -11,13 +11,15 @@
Yahoo! search requires pYsearch module from http://pysearch.sourceforge.net
and a Yahoo AppID from http://developer.yahoo.com.
-Windows Live Search requires to install the SOAPpy module from
-http://pywebsvcs.sf.net and get an AppID from http://search.msn.com/developer.
-If you use Python 2.5 and have SOAPpy version 0.12.0, you must edit three
-files (SOAPpy/Client.py, SOAPpy/Server.py, SOAPpy/Types.py) to fix a simple
-syntax error by moving 'from __future__ imports...' line to beginning of the
-code.
+Windows Live Search requires to get an AppID from http://search.msn.com/developer
+and to download/install the SOAPpy module from http://pywebsvcs.sf.net or using
+SVN with the following command:
+svn co http://pywebsvcs.svn.sourceforge.net/svnroot/pywebsvcs/trunk/SOAPpy SOAPpy
+
+Unlike SOAPpy version 0.12, current SVN version has no problem with Python 2.5.
+
+
You can run the bot with the following commandline parameters:
-g - Use Google search engine