python-simplemediawiki icon indicating copy to clipboard operation
python-simplemediawiki copied to clipboard

add user-agent and login to available code samples

Open fhocutt opened this issue 11 years ago • 2 comments

Improve the available code samples by demonstrating use of the user-agent function and including a sample that demonstrates use of login/cookies to make edits to a wiki.

fhocutt avatar Jul 08 '14 01:07 fhocutt

The usage of user agent, cookies and login is clear from the docs, I don't see what is missing here. As for the edits, you'll need to handle tokens, which brings us to #17.

lahwaacz avatar Jul 08 '14 07:07 lahwaacz

It's great that the docs mention abstractly how to use user agent and login/cookies. Many new users of a library benefit from also seeing concrete examples -- see http://www.crummy.com/software/BeautifulSoup/bs4/doc/ for how one library does that. Maybe label this issue "enhancement"?

brainwane avatar Jul 10 '14 00:07 brainwane