- Adds tox for testing different Python versions
- Allows modifying API call parameters
- Fixes Issue 16 - hidden categories
- Fixes Issue 21 - summary extraction
- Handles missing sections correctly
- Fixes Issue 20
- Uses HTTPS directly instead of HTTP to avoid redirect
- Correctly extracts text from pages without sections
- Adds support for quoted page titles
api = wikipediaapi.Wikipedia(
language='hi',
)
python = api.article(
title='%E0%A4%AA%E0%A4%BE%E0%A4%87%E0%A4%A5%E0%A4%A8',
unquote=True,
)
print(python.summary)
- Adds support for Python 3.4 by not using f-strings
- Uses code style enforced by flake8
- Increased code coverage
- Uses type annotations => minimal requirement is now Python 3.5
- Adds possibility to use more parameters for request. For example:
api = wikipediaapi.Wikipedia(
language='en',
proxies={'http': 'http://localhost:1234'}
)
- Extends documentation
- Adds support for property Categorymembers
- Adds property
text
for retrieving complete text of the page
- Added support for request timeout
- Add header: Accept-Encoding: gzip
- Added support for property Categories
- Removing
WikipediaLangLink
- Page keeps track of its own language, so it's easier to jump between different translations of the same page
- Rename directory from
wikipedia
towikipediaapi
to avoid collisions
- Handle redirects properly
- Usage method
page
instead ofarticle
inWikipedia
- Added support for property Links
- Added support for property Langlinks
- Use properties instead of functions
- Added support for property Info
- Support for extracting texts with HTML markdown
- Added initial version of unit tests
- It's possible to extract summary and sections of the page
- Added support for property Extracts