https://bugzilla.wikimedia.org/show_bug.cgi?id=72065
Bug ID: 72065
Summary: Pywikibot: Implement support for OAuth
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: krinklemail(a)gmail.com
Web browser: ---
Mobile Platform: ---
I'd like to have my bots on Tool Labs only contain a file with a token. That
way I don't have to store passwords there and in worst case scenario, someone
can make a few edits (as opposed to logging in and changing e-mail address,
password etc.), with a token I can revoke any time.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55192
Web browser: ---
Bug ID: 55192
Summary: Rewrite Performance (multiple API request)
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1470/
Reported by: xqt
Created on: 2012-06-21 13:44:27
Subject: Rewrite Performance (multiple API request)
Original description:
There are multiple user info queries which slows down the performance:
c:\Pywikipedia\rw>pwb.py basic.py user:xqt/Test -simulate -v
Pywikipediabot r10326 2012-06-08 12:08:53Z
Python 2.7.3 \(default, Apr 10 2012, 23:24:47\) \[MSC v.1500 64 bit \(AMD64\)\]
Retrieving 1 pages from wikipedia:de.
Starting 1 threads...
API action query: userinfo
Found 1 wikipedia:de processes running, including this one.
>>> Benutzer:Xqt/Test <<<
\- Test
\+ Test Test
Comment: Bot: Ändere ...
Do you want to accept these changes? \(\[y\]es, \[N\]o\) y
API action query: userinfo
API action query: userinfo
Cosmetic changes for wikipedia-de enabled.
API action query: siteinfo|userinfo
API action query: userinfo
API action edit:
SIMULATION: edit action blocked.
Page \[\[Benutzer:Xqt/Test\]\] saved without any changes.
Page \[\[Benutzer:Xqt/Test\]\] saved
Dropped throttle\(s\).
Waiting for threads to finish...
All threads finished.
Dropped throttle\(s\).
c:\Pywikipedia\rw>
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69370
Bug ID: 69370
Summary: Unexpected CircularRedirect exception
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: redirect.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Web browser: ---
Mobile Platform: ---
redirect.py get an unexpected CircularRedirect exception:
>>> User:EvanBlass/sandbox <<<
Links to: [[Draft:Evan Blass]].
Links to: [[Evan Blass]].
- #REDIRECT [[Draft:Evan Blass]]
+ #REDIRECT [[Evan Blass]]
.Page [[User:EvanBlass/sandbox]] saved
..Traceback (most recent call last):
File "C:\pwb\core\pwb.py", line 171, in <module>
run_python_file(fn, argv, argvu)
File "C:\pwb\core\pwb.py", line 69, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "C:\pwb\core\scripts\redirect.py", line 820, in <module>
main()
File "C:\pwb\core\scripts\redirect.py", line 817, in main
bot.run()
File "C:\pwb\core\scripts\redirect.py", line 726, in run
self.fix_double_redirects()
File "C:\pwb\core\scripts\redirect.py", line 535, in fix_double_redirects
for redir_name in self.generator.retrieve_double_redirects():
File "C:\pwb\core\scripts\redirect.py", line 305, in
retrieve_double_redirects
for redir_page in gen:
File "C:\pwb\core\scripts\redirect.py", line 365, in
get_moved_pages_redirects
redirectsOnly=True):
File "C:\pwb\core\pywikibot\page.py", line 770, in getReferences
content=content
File "C:\pwb\core\pywikibot\site.py", line 1997, in pagereferences
namespaces=namespaces, step=step, content=content),
File "C:\pwb\core\pywikibot\site.py", line 1946, in pagebacklinks
if redir.getRedirectTarget() == page:
File "C:\pwb\core\pywikibot\page.py", line 1322, in getRedirectTarget
return self.site.getredirtarget(self)
File "C:\pwb\core\pywikibot\site.py", line 1800, in getredirtarget
raise pywikibot.CircularRedirect(target_title)
pywikibot.exceptions.CircularRedirect: Page User talk:Belam is a circular
redire
ct.
<class 'pywikibot.exceptions.CircularRedirect'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70970
Bug ID: 70970
Summary: use DeprecationWarning system
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
pywikibot includes a lot of deprecation methods and parameters to support old
code. The deprecation messages are logged using the normal python logging
system, but are not routed through warnings.DeprecationWarning, which allows
command line control over whether they are displayed (and defaults to not being
displayed)
https://docs.python.org/2/library/warnings.html#warnings.warn
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70702
Bug ID: 70702
Summary: claimit and harvest_template - add another value for
one property
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
Some items needs to have two values for one property.
typical example is p31
instance of castle + instance of cultural monument
harvest_template and claimit should
- check, if this property exists
- if no
-- add property with new value
- if yes
-- check value
-- if same
--- skip
--if another
--- add another value
(claimit -pagegenerator P31 Q123)
Additionally these script should be able to replace one value with another
(P123: Q123 -> Q456)
(claimit -pagegenerator P31 Q456 -overwrite:Q123)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55002
Web browser: ---
Bug ID: 55002
Summary: claimit.py sample: add option to allow checking for
identical statement (same property with same value)
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/344/
Reported by: apac1
Created on: 2013-08-29 03:55:55.886000
Subject: claimit.py sample: add option to allow checking for identical
statement (same property with same value)
Original description:
Currently statements are not created if there is already an existing statement
with the same property.
A new option could allow to add statement if the same property, but different
values.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=67284
Bug ID: 67284
Summary: claimit.py should add another value but not duplicate
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
When some item have P12=Q1234, claimit.py does not change this value
when using -exists:ptq, script will add new value, but also can create
duplicate statement with same value
https://www.wikidata.org/w/index.php?title=Q11723060&diff=141220723&oldid=8…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55889
Web browser: ---
Bug ID: 55889
Summary: Thread-safe versions of the Generators
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: crangasi2001(a)yahoo.com
Classification: Unclassified
Mobile Platform: ---
Currently, the generators functions use yield, which is not tread-safe. PWB
should offer a thread-safe version using one of the many interesting
suggestions from http://www.dabeaz.com/generators/Generators.pdf (or any other
method :P)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72290
Bug ID: 72290
Summary: tilde in argument to -dir causes exception
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
If the directory ~/.pywikibot2 doesnt exist
/path/to/current/dir/ $ python pwb.py -dir:~/.pywikibot2 version
NOTE: ~/.pywikibot2/user-config.py was not found
Please follow the prompts to create it:
Traceback (most recent call last):
File "pwb.py", line 149, in <module>
run_python_file(path, [path], [path.decode('ascii')])
File "pwb.py", line 69, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "generate_user_files.py", line 19, in <module>
import pywikibot
File "pywikibot/__init__.py", line 29, in <module>
from pywikibot import config2 as config
File "pywikibot/config2.py", line 209, in <module>
_base_dir = get_base_dir()
File "pywikibot/config2.py", line 195, in get_base_dir
raise RuntimeError("Directory '%s' does not exist." % base_dir)
RuntimeError: Directory '/path/to/current/dir/~/.pywikibot2' does not exist.
(that path.decode('ascii') looks defective too)
--
You are receiving this mail because:
You are the assignee for the bug.