fastily / pwiki Goto Github PK
View Code? Open in Web Editor NEW๐ A Python library for effortlessly interacting with Wikipedia/MediaWiki
License: GNU General Public License v3.0
๐ A Python library for effortlessly interacting with Wikipedia/MediaWiki
License: GNU General Public License v3.0
We use pwiki
to generate pages from our CI/CD server, but our Wiki is located internal.
Therefore a domain-name only is not sufficient for us.
We need, protocol
(http), port
(8081) and path
(mediawiki-1.41.0) to access the wiki.
I've hacked a solution, but I don't thinks that's what you have in mind.
def __init__(self, domain: str = "en.wikipedia.org", url: str = "https://en.wikipedia.org/w", username: str = None, password: str = None, cookie_jar: Path = Path(".")):
...
self.endpoint: str = f"{url}/api.php"
...
Usage:
wiki = Wiki("compiler", "http://compiler:8081/mediawiki-1.41.0", "xxx", "xxx")
Any suggestions?
I am using this library in my automation project. I would like to request a feature that allows users to specify the server IP address for wiki domain resolution. This feature would be similar to modifying the Hosts
file, enabling users to override the default DNS lookup and resolve wiki domains to specific IP addresses.
This functionality would be particularly useful in scenarios where network configurations or security policies restrict access to certain domains, or when testing against specific wiki instances that are not publicly accessible. By providing the ability to specify the server IP address, users can ensure that the library connects to the intended wiki instance without relying on external DNS resolution.
Thank you for considering my request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.