Skip to main content

A library for Stack Overflow question notifications.

Project description

https://travis-ci.org/Matt-Stevens/Stackoverflow-Watcher.svg?branch=master

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


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)

Uploaded Source

Built Distribution

stack_watcher-0.2-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page