4

As of today on Stack Overflow, I have 119 watched tags.

I ran the Deduplicator query from Query to get tags for a user from SEDE. It returns 35 tags, of which many are not in my list of watched tags.

I've written a query to locate interesting posts, but more than half of the 30,000 questions have none of my watched tags. I'd like to add an "ignore posts with no watched tags" step.

Is the data not in SEDE?

1 Answer 1

5

Sorry, the per-user data for watched tags is not in the public schema.

Quoting Shog9's answer to Let me get my favorite tags using data explorer:

You can query Data Explorer for your favorite questions, but favorite tags are not recorded in the public data.

Unfortunately, Shog9's imagination notwithstanding, the Stack Exchange API doesn't expose this information, either.

I did a quick scan on Stack Apps but there doesn't seem to be an app or script that scrapes that info yet. If you do venture into that area, we would love to have your contribution on Stack Apps.

What you can do is manually collect your watched tags and then enter them, semi-colon separated, as a parameter to be included in a query like so:

select p.id [Post Link]
     , p.creationdate
     , p.score
from posts p
inner join posttags pt on pt.postid = p.id
inner join tags t on t.id = pt.tagid
inner join string_split(##watched:string##, ';') w on w.value = t.tagname
where p.closeddate is not null
and p.answercount = 0
and p.score > 0 
and p.creationdate between '2022-01-01'  and getdate()
order by p.score desc
5
  • So if I scraped them, how could I write a SQL to where (post tag in my scraped list of my tags = true) filter? Should I write a new question since this is a secondary question? Commented Aug 28, 2022 at 6:47
  • If you scrape you're on your own. How you deal with the scraped data or how you post process it, is 100% up to you. See stackoverflow.com/questions/tagged/web-scraping. I would personally not go to a database with my scraped data, but just shape and filter while scraping as you have plenty of time between network calls.
    – rene
    Commented Aug 28, 2022 at 7:00
  • To clarify, I would manually copy the tags and have a text list of them. Once that list is in hand could I use a bunch of likes to compare them to the tags on the current post? Commented Aug 28, 2022 at 7:02
  • So after "-- with one of my tags" in data.stackexchange.com/stackoverflow/query/1631537/… ? Commented Aug 28, 2022 at 7:03
  • That sounds more like you need a userscript. I'm a bit time constrained right now but I'll try to ping someone who might have ideas on that.
    – rene
    Commented Aug 28, 2022 at 7:04

You must log in to answer this question.

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