jayvdb added a comment.
In https://phabricator.wikimedia.org/T76211#2087446, @AbdealiJK wrote: > I need a bit of help here - I notice there is a line `import wikipedia as pywikibot` in `pycolornames` > Which wikipedia library is this exactly ? > > EDIT: > I found `wikipedia.py` and realized it is what is being referred to. I see that currently we're using `pywikibot.comms.http` for http communications. Is this needed ? Can we just use `requests` or something (As I'd like the pypi package to be generic) > > I notice that `pywikibot.comms.http` in pywikibot-core uses `requests` inherently. But adds a layer on top for error handling nicely. These external libraries should not depend on pywikibot, if it can be avoided. Yes, use requests directly. TASK DETAIL https://phabricator.wikimedia.org/T76211 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: AbdealiJK, jayvdb Cc: DrTrigon, Aklapper, jayvdb, valhallasw, pywikibot-bugs-list, Anshoe _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
