What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 144 Stack Exchange communities.

I mean to get back them, really I do. So, how can I view all my unaccepted questions across the StackExchange network?

Searching for user:me hasaccepted:0 works for a single site, but the stackexchange.com search doesn't work the same way (it searches for the text). Is there any way to do this?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Here's some Python code that will run the query on each Stack Exchange site on which you have an account. For me it opens the search on each site in a separate tab (not a separate window), though that may depend on your browser's configuration. You'll need to plug your own username and id into http://stackexchange.com/users/3370439/kuzzooroo?tab=accounts. You can change the days=60 code if you want to change how far back in time this looks. Hat tip to @psubsee2003's answer on my near-duplicate question for constructing a good model query string.

# This code requires the Beautiful Soup library, which doesn't come with Python.
# Depending on your setup you'll need to run something like `pip install beautifulsoup4`
# to get the library.
import datetime
import re
import webbrowser
import urllib2
from bs4 import BeautifulSoup
from urlparse import urlparse

today = datetime.datetime.today().date()
old_day = today - datetime.timedelta(days=60)
date_str = "{}..{}".format(old_day, today)

soup = BeautifulSoup(urllib2.urlopen("http://stackexchange.com/users/3370439/kuzzooroo?tab=accounts"))
sites = set()
for tag_a in soup("a"):
    pr = urlparse(tag_a["href"])
    if re.match("/users/[0-9]", pr.path) and '' != pr.netloc:
for site in sites:
    url = "http://{}/search?q=user%3Ame+hasaccepted%3Ano+answers%3A1+lastactive%3A{}+".format(site, date_str)
share|improve this answer
failing a site-side feature this is great. accepting untested. does this include meta sites? –  d3vid Feb 24 '14 at 8:16
Yes, it does get meta sites. –  kuzzooroo Feb 24 '14 at 12:44
BTW, this code requires the Beautiful Soup library, which doesn't come with Python. Depending on your setup you'll need to run something like pip install beautifulsoup4 to get the library. –  kuzzooroo Feb 27 '14 at 14:52
@kuzzooroo You should add that last comment to the answer. –  gerrit Feb 27 '14 at 22:56
@gerrit, I added a comment at the top of the code. Is that what you had in mind? –  kuzzooroo Feb 28 '14 at 2:12
@kuzzooroo Good. –  gerrit Feb 28 '14 at 4:42
I would not expect the average user on every site to have the technical skill to implement this answer. (Consider cooking.SE). May I ask that people throw their support behind this feature request here? –  Travis Bemrose Apr 13 '14 at 23:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .