Show HN: Page and crawler that show flagged HN submissions only
mosermichael.github.io
mosermichael.github.io
On the other side: it makes this site a bit less interesting. I am sorry for having caused this, i had the best of intentions.
Now i need to find another toy to tinker with. (My wife says that all of my projects are essentially useless, as they don't yield much in terms of money. Well, she has a point... :-( ) Here is a list of my projects: https://github.com/MoserMichael
(I don't have the nerve to run the crawler and page generator on a daily basis; the page has instructions on how to install and run the script)
On the other hand: they gave me an idea. I can structure the crawler differently. Right now, I am now following the next page (apparently there is a limit on the number of 'next' pages). Instead, it is possible to get the maximum item id, then just decrement the item id down and down again.
So you have to check the HTML (substring search) to see if a story is flagged?
Edit: Answered my own question: yes: https://github.com/MoserMichael/flagged-hn/blob/master/crawl...
yes, it's part of the table row that includes the title, but if you take the text within the link tag only, then you don't get that indication - I think that's what the HN api might be doing.
Example:
<td class="title"> [flagged] <a href="https://www.dailywire.com/news/mcauliffe-education-plan-could-lead-to-1970s-style-busing" class="titlelink">McAuliffe Plan: Giving Parents a ‘Choice’ Leads to ‘Segregation’</a><span class="sitebit comhead"> (<a href="from?site=dailywire.com"><span class="sitestr">dailywire.com</span></a>)</span></td>
Actually if you ask me, I don't know why they are using this 'flagging' thing over here, they might have just moved a submission some pages away from the front pages, if they don't like it.