https://bugzilla.wikimedia.org/show_bug.cgi?id=70682
Bug ID: 70682
Summary: Implement extracts in Pywikibot
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: maarten(a)mdammers.nl
Web browser: ---
Mobile Platform: ---
Mediawiki has the extracts api function. It should be implemented in Pywikibot
too.
* prop=extracts (ex) *
Returns plain-text or limited HTML extracts of the given page(s)
https://www.mediawiki.org/wiki/Extension:TextExtracts#API
This module requires read rights
Parameters:
exchars - How many characters to return, actual text returned
might be slightly longer.
The value must be no less than 1
exsentences - How many sentences to return
The value must be between 1 and 10
exlimit - How many extracts to return
No more than 20 (20 for bots) allowed
Default: 1
exintro - Return only content before the first section
explaintext - Return extracts as plaintext instead of limited HTML
exsectionformat - How to format sections in plaintext mode:
plain - No formatting
wiki - Wikitext-style formatting == like this ==
raw - This module's internal representation (section
titles prefixed with <ASCII 1><ASCII 2><section level><ASCII 2><ASCII 1>
One value: plain, wiki, raw
Default: wiki
excontinue - When more results are available, use this to continue
exvariant - Convert content into this language variant`
Example:
Get a 175-character extract:
api.php?action=query&prop=extracts&exchars=175&titles=Therion
https://nl.wikipedia.org/w/api.php?action=query&prop=extracts&exchars=175&t…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55133
Web browser: ---
Bug ID: 55133
Summary: Parsing error for Link instances
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/1643/
Reported by: xqt
Created on: 2013-07-14 14:07:44.612000
Subject: Parsing error for Link instances
Original description:
I get a parsing error for Link.parse() e.g. for the following statements:
>>> import pwb; import pywikibot as wp
>>> l = wp.Link(u'w:de:Foo')
>>> l
Traceback (most recent call last):
File "<pyshell#135>", line 1, in <module>
l
File "pywikibot\page.py", line 2931, in __repr__
return "pywikibot.page.Link(%r, %r)" % (self.title, self.site)
File "pywikibot\page.py", line 3101, in title
self.parse()
File "pywikibot\page.py", line 3007, in parse
% self._text)
Error: Improperly formatted interwiki link 'w:de:Foo'
using wikipedia: instead of w: the Link is wrong:
>>> l = wp.Link(u'wikipedia:de:Foo')
>>> l
pywikibot.page.Link(u'De:Foo', Site("de", "wikipedia"))
>>>
It works right for wikt: and wiktionary:
>>> l = wp.Link(u'wikt:de:Foo')
>>> l
pywikibot.page.Link(u'Foo', Site("de", "wiktionary"))
>>>
>>> l = wp.Link(u'wikt:de:Foo')
>>> l
pywikibot.page.Link(u'Foo', Site("de", "wiktionary"))
>>>
>>> l = wp.Link(u'wiktionary:de:Foo')
>>> l
pywikibot.page.Link(u'Foo', Site("de", "wiktionary"))
>>>
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71089
Bug ID: 71089
Summary: Add the -mysqlquery option to pagegenerators.py
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: pagegenerators
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: maarten(a)mdammers.nl
Web browser: ---
Mobile Platform: ---
pagegenerators.py should be modified so that you can give -mysqlquery:"<some
query" at the commandline.
The query should be passed to def MySQLPageGenerator(query, site=None):
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70983
Bug ID: 70983
Summary: wikidataquery tests win32 py3 error
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: ---
This only appeared on a warm cache
======================================================================
FAIL: testQueryApiGetter (tests.wikidataquery_tests.TestApiSlowFunctions)
Test that we can actually retreive data and that caching works.
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\pywiki\gerrit\tests\wikidataquery_tests.py", line 240, in
testQueryAp
iGetter
self.assertFalse(os.path.exists(cacheFile))
AssertionError: True is not false
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70977
Bug ID: 70977
Summary: win32 py2 xmlreader test error
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: Windows XP
Status: NEW
Severity: normal
Priority: Unprioritized
Component: tests
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
This only occurs on win32 py3 (not py2)
======================================================================
ERROR: test_XmlDumpRedirect (tests.xmlreader_tests.XmlReaderTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\pywiki\core\tests\xmlreader_tests.py", line 51, in
test_XmlDumpRedirect
"article-pyrus.xml")).parse()]
File "c:\pywiki\core\tests\xmlreader_tests.py", line 49, in <listcomp>
pages = [r for r in
File "c:\pywiki\core\pywikibot\xmlreader.py", line 129, in parse
for event, elem in context:
File "c:\Python34\lib\xml\etree\ElementTree.py", line 1302, in __next__
data = self._file.read(16 * 1024)
File "c:\Python34\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 3344:
character maps to <undefined>
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55072
Web browser: ---
Bug ID: 55072
Summary: delete.py should accept pageids
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/231/
Reported by: mike_lifeguard
Created on: 2009-11-17 13:22:27
Subject: delete.py should accept pageids
Original description:
It is apparently possible to delete invalid titles using the API by specifying
the pageid. delete.py should therefore accept pageids to delete, rather than
titles. This should be possible with the -pageid:1234 parameter, or
-file:/whatever -pageid if the file is a list of pageids rather than titles.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55069
Web browser: ---
Bug ID: 55069
Summary: Adding titles to external links
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/236/
Reported by: Anonymous user
Created on: 2010-01-09 16:56:40
Subject: Adding titles to external links
Original description:
Hi all. It would be nice a script \(based in reflinks.py\) that put titles to
external links that don't have.
For example: "\[http://en.wikipedia.org\]" → "\[http://en.wikipedia.org
Wikipedia, the free encyclopedia\]"
I ask for a script that makes the same as reflinks.py \(or a fix to reflinks to
allow that\), but not only for external links in references.
Thanks in advance.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55043
Web browser: ---
Bug ID: 55043
Summary: welcom.py
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/294/
Reported by: reza1615
Created on: 2011-11-10 13:54:49
Subject: welcom.py
Original description:
in welcome.py bot in -random case
Is it possible to add sign name which is chosen as random in Edit summary?
now in Special:Contributions it is not possible to find which signs is used\!
for example:
Edit summary==> welcome\! \(bye user:reza1615 sign\)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55048
Web browser: ---
Bug ID: 55048
Summary: Add roman.py to framework
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/285/
Reported by: binbot
Created on: 2011-04-30 12:05:25
Subject: Add roman.py to framework
Original description:
I wrote a new script, see at
http://hu.wikipedia.org/wiki/Szerkeszt%C5%91:BinBot/roman.py
It transforms any Arabic number to Roman and Romans to Arabic from 1 to 3999
\(the largest regular Roman number\) and has a list comprehension function as
well.
I would like to have it in the framework, because TOCbot
\(http://hu.wikipedia.org/wiki/Szerkeszt%C5%91:Bin%C3%A1ris/TOCbot\) will need
it. Please help to supply a version number.
--
You are receiving this mail because:
You are the assignee for the bug.