rss icon indicating copy to clipboard operation
rss copied to clipboard

`FeedEntry.id` missing

Open NfNitLoop opened this issue 9 months ago • 1 comments

the type of FeedEntry.id is string, but I was given an entry with an undefined id.

Here's the JSON.stringify representation of the object I did get back:

{
  "dc:creator": [
    "Julianne McShane"
  ],
  "content:encoded": {
    "value": "<p><span class=\"section-lead\">At a&nbsp;rally</span> in Wildwood, New Jersey on Saturday, former President Donald Trump made many questionable comments.</p>\n<p>He <a href=\"https://x.com/atrupar/status/1789436845115216214\">called</a> Manhattan District Attorney Alvin Bragg &#8220;Fat Alvin.&#8221; He <a href=\"https://x.com/atrupar/status/1789440297144922369\">claimed</a> migrant children &#8220;don&#8217;t speak English.&#8221; And he said that, if he&#8217;s re-elected, he will deport pro-Palestinian, antiwar protesters.</p>\n<p>&#8220;When I&#8217;m president, we will not allow our colleges to be taken over by violent radicals, and if you come here from a violent country and try to bring jihadism, or anti-Americanism, or antisemitism to our campuses, we will immediately deport you. You&#8217;ll be out of that school,&#8221; Trump <a href=\"https://www.c-span.org/video/?535068-1/fmr-pres-trump-campaigns-wildwood-nj\">said</a>, to the crowd&#8217;s cheers. (You can <a href=\"https://www.c-span.org/video/?535068-1/fmr-pres-trump-campaigns-wildwood-nj\">watch the full comments</a> for yourself at the 1:30:41 mark.)&nbsp;</p>\n<p>This is not the first time Trump has made&nbsp;similar&nbsp;promises: Back in the fall, he <a href=\"https://www.foxnews.com/politics/trump-calls-ban-us-entry-anyone-wanting-abolish-israel-not-going-get\">said</a> he &#8220;will implement strong ideological screening for all immigrants,&#8221; and that those who &#8220;sympathize with jihadists&#8221; and &#8220;want to abolish Israel&#8230;[are] not coming into our country.&#8221; He added: &#8220;We aren’t bringing in&nbsp;anyone from Gaza.&#8221;&nbsp;</p>\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\">\n<p lang=\"en\" dir=\"ltr\">Trump vows to deport pro-Palestinian college campus protesters <a href=\"https://t.co/lEeZpdHW3l\">pic.twitter.com/lEeZpdHW3l</a></p>\n<p>&mdash; Aaron Rupar (@atrupar) <a href=\"https://twitter.com/atrupar/status/1789434745815732455?ref_src=twsrc%5Etfw\">May 11, 2024</a></p></blockquote>\n<p><script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script></p>\n<p>The&nbsp;comments come amid Republican-led efforts to <a href=\"https://www.motherjones.com/politics/2024/04/mike-johnson-speaker-columbia-student-gaza-palestine-protests/\">brand all anti-war protesters</a> as supporters of terrorism and a continued push to <a href=\"https://www.motherjones.com/politics/2024/05/anti-protest-laws-state-legislatures/\">criminalize</a> protest.&nbsp;</p>\n<p>Last week, Sen. Marco Rubio (R-Fla.)&nbsp;re-upped an <a href=\"https://gonzales.house.gov/_cache/files/7/5/75e028a7-e801-43bc-b300-a8e5a8c429fe/A353D7E9B63F2C82A0B1543EE02ABC69.gontx-075-xml.pdf\">effort</a> he first made last fall to deport protesters who have &#8220;endorsed or espoused the terrorist activities of Hamas” or other anti-Israel terrorist organizations. Rubio <a href=\"https://www.rubio.senate.gov/wp-content/uploads/2024/05/05.08.24-Rubio-Letter-to-Mayorkas-Blinken-re-International-Students-SEVIS.pdf\">wrote a letter</a> to the secretaries of the State and Homeland Security departments to initiate &#8220;expedited deportation proceedings&#8221; for participants in &#8220;antisemitism and pro-Hamas protests.&#8221; Earlier this month, Rep. Beth Van Duyne (R-Tx.) introduced what her office <a href=\"https://vanduyne.house.gov/2024/5/rep-van-duyne-introduces-the-hamas-supporters-have-no-home-here-act-to-deport-aliens-who-participate-in-pro-terrorism-and-antisemitic-mob-gatherings\">calls</a> the &#8220;Hamas Supporters Have No Home Here Act,&#8221; which would amend the <a href=\"https://vanduyne.house.gov/_cache/files/c/f/cf4ecdaf-489a-4b88-ab54-8d1639a72b8f/1FB70ECB82870CC9E822A33585518BB3.bvd---hamas-supporters-have-no-home-here-act.pdf\">Immigration and Nationality Act</a> to allow for the deportation of people &#8220;charged with any crime related to their participation in pro-terrorism or antisemitism rallies or demonstrations.&#8221;&nbsp;</p>\n<p>These efforts seem to ignore the reality on the ground: As my colleagues and I have <a href=\"https://www.motherjones.com/politics/2024/04/mike-johnson-speaker-columbia-student-gaza-palestine-protests/\">reported</a>, many protesters and organizers have said they condemn antisemitism and have insisted that gatherings on campuses—including some in which administrators have called the cops—<a href=\"https://www.motherjones.com/politics/2024/04/nyu-protests-new-york-city-columbia-nypd-mccarthyism/\">have been peaceful</a>.&nbsp;</p>\n<p>Some of those on the right condemning all anti-war protesters have&nbsp;gone beyond calling for enforcement. Last month, Sen. Tom Cotton (R-Ark.) <a href=\"https://twitter.com/TomCottonAR/status/1780039918737121502\">said</a> people &#8220;who get stuck behind the pro-Hamas mobs blocking traffic&#8221; should &#8220;take matters into your own hands to get them out of the way.&#8221; (He later <a href=\"https://www.nbcnews.com/politics/congress/sen-tom-cotton-doubles-comments-urging-people-forcibly-remove-proteste-rcna148083\">claimed</a> he wasn&#8217;t endorsing violence.) And earlier this month, Cotton <a href=\"https://www.cotton.senate.gov/news/press-releases/cotton-colleagues-no-student-loan-bailouts-for-campus-criminals\">introduced</a> a <a href=\"https://www.cotton.senate.gov/imo/media/doc/no_bailouts_bill_text.pdf\">bill</a> called the &#8220;No Bailouts for Campus Criminals Act&#8221; that would make anyone convicted of a crime in connection with a campus protest ineligible for student loan relief.</p>\n<p>It&#8217;s hard not to see these latest measures as more bad faith attempts by the right to criminalize protest, as my colleague nia t. evans has <a href=\"https://www.motherjones.com/politics/2024/05/anti-protest-laws-state-legislatures/\">written</a>, and to&nbsp; <a href=\"https://www.motherjones.com/politics/2024/05/outside-agitators-nypd-eric-adams/\">dismiss participants</a> as &#8220;outside agitators.&#8221; But the real danger this time lies in the fact that the presumptive GOP nominee is also in on it—and that the latest efforts fit squarely within his <a href=\"https://www.motherjones.com/politics/2023/11/trump-stephen-miller-immigration-plan-gives-biden-opportunity-to-do-better/\">extremist anti-immigrant agenda</a>.</p>"
  },
  "post-id": {
    "xmlns": "com-wordpress:feed-additions:1",
    "value": "1057928"
  },
  "title": {
    "value": "Trump Wants to Deport Pro-Palestine Protesters—and GOP Lawmakers Are Filing Bills to Make It Happen"
  },
  "description": {
    "value": "At a&#160;rally in Wildwood, New Jersey on Saturday, former President Donald Trump made many questionable comments. He called Manhattan District Attorney Alvin Bragg &#8220;Fat Alvin.&#8221; He claimed migrant children &#8220;don&#8217;t speak English.&#8221; And he said that, if he&#8217;s re-elected, he will deport pro-Palestinian, antiwar protesters. &#8220;When I&#8217;m president, we will not allow our colleges to [&#8230;]"
  },
  "published": "2024-05-13T19:44:32.000Z",
  "publishedRaw": "Mon, 13 May 2024 19:44:32 +0000",
  "updated": "2024-05-13T19:44:32.000Z",
  "updatedRaw": "Mon, 13 May 2024 19:44:32 +0000",
  "content": {
    "value": "<p><span class=\"section-lead\">At a&nbsp;rally</span> in Wildwood, New Jersey on Saturday, former President Donald Trump made many questionable comments.</p>\n<p>He <a href=\"https://x.com/atrupar/status/1789436845115216214\">called</a> Manhattan District Attorney Alvin Bragg &#8220;Fat Alvin.&#8221; He <a href=\"https://x.com/atrupar/status/1789440297144922369\">claimed</a> migrant children &#8220;don&#8217;t speak English.&#8221; And he said that, if he&#8217;s re-elected, he will deport pro-Palestinian, antiwar protesters.</p>\n<p>&#8220;When I&#8217;m president, we will not allow our colleges to be taken over by violent radicals, and if you come here from a violent country and try to bring jihadism, or anti-Americanism, or antisemitism to our campuses, we will immediately deport you. You&#8217;ll be out of that school,&#8221; Trump <a href=\"https://www.c-span.org/video/?535068-1/fmr-pres-trump-campaigns-wildwood-nj\">said</a>, to the crowd&#8217;s cheers. (You can <a href=\"https://www.c-span.org/video/?535068-1/fmr-pres-trump-campaigns-wildwood-nj\">watch the full comments</a> for yourself at the 1:30:41 mark.)&nbsp;</p>\n<p>This is not the first time Trump has made&nbsp;similar&nbsp;promises: Back in the fall, he <a href=\"https://www.foxnews.com/politics/trump-calls-ban-us-entry-anyone-wanting-abolish-israel-not-going-get\">said</a> he &#8220;will implement strong ideological screening for all immigrants,&#8221; and that those who &#8220;sympathize with jihadists&#8221; and &#8220;want to abolish Israel&#8230;[are] not coming into our country.&#8221; He added: &#8220;We aren’t bringing in&nbsp;anyone from Gaza.&#8221;&nbsp;</p>\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\">\n<p lang=\"en\" dir=\"ltr\">Trump vows to deport pro-Palestinian college campus protesters <a href=\"https://t.co/lEeZpdHW3l\">pic.twitter.com/lEeZpdHW3l</a></p>\n<p>&mdash; Aaron Rupar (@atrupar) <a href=\"https://twitter.com/atrupar/status/1789434745815732455?ref_src=twsrc%5Etfw\">May 11, 2024</a></p></blockquote>\n<p><script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script></p>\n<p>The&nbsp;comments come amid Republican-led efforts to <a href=\"https://www.motherjones.com/politics/2024/04/mike-johnson-speaker-columbia-student-gaza-palestine-protests/\">brand all anti-war protesters</a> as supporters of terrorism and a continued push to <a href=\"https://www.motherjones.com/politics/2024/05/anti-protest-laws-state-legislatures/\">criminalize</a> protest.&nbsp;</p>\n<p>Last week, Sen. Marco Rubio (R-Fla.)&nbsp;re-upped an <a href=\"https://gonzales.house.gov/_cache/files/7/5/75e028a7-e801-43bc-b300-a8e5a8c429fe/A353D7E9B63F2C82A0B1543EE02ABC69.gontx-075-xml.pdf\">effort</a> he first made last fall to deport protesters who have &#8220;endorsed or espoused the terrorist activities of Hamas” or other anti-Israel terrorist organizations. Rubio <a href=\"https://www.rubio.senate.gov/wp-content/uploads/2024/05/05.08.24-Rubio-Letter-to-Mayorkas-Blinken-re-International-Students-SEVIS.pdf\">wrote a letter</a> to the secretaries of the State and Homeland Security departments to initiate &#8220;expedited deportation proceedings&#8221; for participants in &#8220;antisemitism and pro-Hamas protests.&#8221; Earlier this month, Rep. Beth Van Duyne (R-Tx.) introduced what her office <a href=\"https://vanduyne.house.gov/2024/5/rep-van-duyne-introduces-the-hamas-supporters-have-no-home-here-act-to-deport-aliens-who-participate-in-pro-terrorism-and-antisemitic-mob-gatherings\">calls</a> the &#8220;Hamas Supporters Have No Home Here Act,&#8221; which would amend the <a href=\"https://vanduyne.house.gov/_cache/files/c/f/cf4ecdaf-489a-4b88-ab54-8d1639a72b8f/1FB70ECB82870CC9E822A33585518BB3.bvd---hamas-supporters-have-no-home-here-act.pdf\">Immigration and Nationality Act</a> to allow for the deportation of people &#8220;charged with any crime related to their participation in pro-terrorism or antisemitism rallies or demonstrations.&#8221;&nbsp;</p>\n<p>These efforts seem to ignore the reality on the ground: As my colleagues and I have <a href=\"https://www.motherjones.com/politics/2024/04/mike-johnson-speaker-columbia-student-gaza-palestine-protests/\">reported</a>, many protesters and organizers have said they condemn antisemitism and have insisted that gatherings on campuses—including some in which administrators have called the cops—<a href=\"https://www.motherjones.com/politics/2024/04/nyu-protests-new-york-city-columbia-nypd-mccarthyism/\">have been peaceful</a>.&nbsp;</p>\n<p>Some of those on the right condemning all anti-war protesters have&nbsp;gone beyond calling for enforcement. Last month, Sen. Tom Cotton (R-Ark.) <a href=\"https://twitter.com/TomCottonAR/status/1780039918737121502\">said</a> people &#8220;who get stuck behind the pro-Hamas mobs blocking traffic&#8221; should &#8220;take matters into your own hands to get them out of the way.&#8221; (He later <a href=\"https://www.nbcnews.com/politics/congress/sen-tom-cotton-doubles-comments-urging-people-forcibly-remove-proteste-rcna148083\">claimed</a> he wasn&#8217;t endorsing violence.) And earlier this month, Cotton <a href=\"https://www.cotton.senate.gov/news/press-releases/cotton-colleagues-no-student-loan-bailouts-for-campus-criminals\">introduced</a> a <a href=\"https://www.cotton.senate.gov/imo/media/doc/no_bailouts_bill_text.pdf\">bill</a> called the &#8220;No Bailouts for Campus Criminals Act&#8221; that would make anyone convicted of a crime in connection with a campus protest ineligible for student loan relief.</p>\n<p>It&#8217;s hard not to see these latest measures as more bad faith attempts by the right to criminalize protest, as my colleague nia t. evans has <a href=\"https://www.motherjones.com/politics/2024/05/anti-protest-laws-state-legislatures/\">written</a>, and to&nbsp; <a href=\"https://www.motherjones.com/politics/2024/05/outside-agitators-nypd-eric-adams/\">dismiss participants</a> as &#8220;outside agitators.&#8221; But the real danger this time lies in the fact that the presumptive GOP nominee is also in on it—and that the latest efforts fit squarely within his <a href=\"https://www.motherjones.com/politics/2023/11/trump-stephen-miller-immigration-plan-gives-biden-opportunity-to-do-better/\">extremist anti-immigrant agenda</a>.</p>"
  },
  "author": {
    "name": "Julianne McShane"
  },
  "links": [
    {
      "href": "https://www.motherjones.com/politics/2024/05/trump-protesters-gop-marco-rubio-palestine-college-deport/"
    }
  ],
  "categories": [
    {
      "term": "MoJo Wire",
      "label": "MoJo Wire"
    },
    {
      "term": "Politics",
      "label": "Politics"
    },
    {
      "term": "College",
      "label": "College"
    },
    {
      "term": "Donald Trump",
      "label": "Donald Trump"
    },
    {
      "term": "Foreign Policy",
      "label": "Foreign Policy"
    },
    {
      "term": "Israel",
      "label": "Israel"
    },
    {
      "term": "Israel and Palestine",
      "label": "Israel and Palestine"
    },
    {
      "term": "Protests",
      "label": "Protests"
    }
  ]
}

That entry seems to have a post-id record, but its XML guid is empty:

<guid isPermaLink="false"/>

Should probably change the type of id to be possibly undefined to account for that.

(The other alternative is to throw an exception for what seems like a poorly formatted RSS feed. But… I'd like to at least be able to get out what data IS present in that feed…)

NfNitLoop avatar May 14 '24 02:05 NfNitLoop

Ah this is from https://feeds.feedburner.com/motherjones/feed if you want to do any testing. But no guarantees the entry will still be there by the time you get to it. 🤷

NfNitLoop avatar May 14 '24 02:05 NfNitLoop