Giter Site home page Giter Site logo

supersimplemediawiki's Introduction

My random scripting projects, kept under version control.
Most of them might have some sort of explanation at my blog, http://crazeness.wordpress.com/
Enjoy!

supersimplemediawiki's People

Contributors

hello71 avatar legoktm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pune-lug hello71

supersimplemediawiki's Issues

Example-script not working

Hi,

I wanted to use supersimplemediawiki โ€“ since it is exactly what I needed, but I'm getting an Keyerror when running has_new_messages.py:

Traceback (most recent call last):
  File "uploadimg.py", line 26, in <module>
    enwp.login(settings.username, settings.password)
  File "/home/michi/git/fremde/supersimplemediawiki/mw.py", line 60, in login
    r2 = requests.post(self.api, params=data, headers=self.headers, cookies=r1.cookies)
  File "/usr/lib/python3.3/site-packages/requests/api.py", line 88, in post
    return request('post', url, data=data, **kwargs)
  File "/usr/lib/python3.3/site-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3.3/site-packages/requests/sessions.py", line 327, in request
    self.cookies = cookiejar_from_dict(cookies, cookiejar=self.cookies, overwrite=False)
  File "/usr/lib/python3.3/site-packages/requests/cookies.py", line 410, in cookiejar_from_dict
    cookiejar.set_cookie(create_cookie(name, cookie_dict[name]))
  File "/usr/lib/python3.3/site-packages/requests/cookies.py", line 256, in __getitem__
    return self._find_no_duplicates(name)
  File "/usr/lib/python3.3/site-packages/requests/cookies.py", line 311, in _find_no_duplicates
    raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
KeyError: "name=Cookie(version=0, name='enwikiSession', value='0d4310fef7701c6aca7de88e4c49437a', port=None, port_specified=False, domain='en.wikipedia.org', domain_specified=False, domain_initial_dot=False, path='/', path_specified=True, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={'HttpOnly': None}, rfc2109=False), domain=None, path=None"

Any ideas whats going wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.