- Drop support for Python 3.8
- Update dependencies
- Add tests for more platforms
- Make user agent mandatory - Issue 63
- This breaks the API since user_agent is now the first parameter.
- Adds support for retrieving all sections with given name - Issue 39
- Namespace could be arbitrary integer - Issue 29
- Adds persistent HTTP connection - Issue 26
- Downloading 50 pages reduced from 13s to 8s => 40% speed up
- Adds namespaces 102 - 105 - Issue 24
- 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