3 ms·
for this task I need to rescan the pages often, in order to check if the post got flagged. There is no way to know, if or when they rescan the submissions with
by MichaelMoser123 5y ago
for this task I need to rescan the pages often, in order to check if the post got flagged. There is no way to know, if or when they rescan the submissions with the HN api.
- WalterGR 5y agoThanks for your responses. 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.py#L257 https://github.com/MoserMichael/flagged-hn/blob/master/crawl...
- MichaelMoser123 5y agoThanks for your feedback, it is very much appreciated! 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.
- mattowen_uk 5y agoUsers with enough Karma can 'vouch' for a flagged entry, and effectively de-flag it if they think the flagging is erroneous. Flagging isn't a one-way street.