Check out https://gabrielsroka.github.io/getHNFavorites.js or to view the source code, see JS: https://github.com/gabrielsroka/gabrielsroka.github.io/blob/... or Python: https://github.com/gabrielsroka/gabrielsroka.github.io/blob/...
Previous discussion, other tools and more info:
https://news.ycombinator.com/item?id=22788236
Maybe I should add a SQL interface ;)
select * from favorites where username = 'amzpix' and title like '%SQL%';