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:
$ 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.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for stack_watcher-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ba61fa3d77395d31b680fd2a776041774b3087bfe716d23075af71c04abd090 |
|
MD5 | f752eaff11c749585f69d66d9c5c5710 |
|
BLAKE2b-256 | 332e69858357e0f26906480b7ca0b80c302191a36e9eeddbff2b2faa08c375c6 |