A library for Stack Overflow question notifications.
Project description
A library for Stack Overflow question notifications written in Python.
Installation
You can install stack-watcher using pip. At the moment it only works on Python 3.4:
$ pip install stack-watcher
Usage
Here’s how to follow the most recent questions on Stack Overflow which have the “python” tag:
>>> from stack_watcher import Retriever
>>> retriever = Retriever(tag='python')
>>> for question in retriever.questions():
... print(question.link)
...
http://stackoverflow.com/questions/24127601/uwsgi-request-timeout-in-python
http://stackoverflow.com/questions/24127567/python-traceroute-doesnt-work
http://stackoverflow.com/questions/24127395/web-crawler-url-address-failure
http://stackoverflow.com/questions/24126915/python-logging-handler-dies
http://stackoverflow.com/questions/24126663/how-to-disable-a-nosetest-plugin
http://stackoverflow.com/questions/24126629/fedora-apache-wsgi-python-oracle
This will continue to run and pull in the latest questions until it’s killed. The question objects also have the following attributes:
>>> question.__dict__
{'question_id': 24126663,
'title': 'how to disable a nosetest plugin',
'link': 'http://stackoverflow.com/questions/24126663',
'creation_date': 1402339020,
'tags': ['python', 'nose', 'nosetests'],
'score': 2,
'view_count': 10,
'answered': False,
'owner_display_name': 'ftravers',
'owner_link': 'http://stackoverflow.com/users/408489/ftravers',
'owner_id': 408489,
'owner_reputation': 966,
'owner_accept_rate': 50}
Licence
Copyright © 2014 Matt Deacalion Stevens, released under The MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stack-watcher-0.2.1.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for stack_watcher-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aafea57bcefa31e5477d3d02c0d6dfb1e5f6c584bc3e3708c6ce50e51a02772 |
|
MD5 | a764c41eb73049d86cd8a80d46487e0d |
|
BLAKE2b-256 | d2582dce95606faf3869d72cf4d20222b9d30b2ccc167704ae41d63ef2868813 |