akrennmair / newsbeuter

Newsbeuter is an open-source RSS/Atom feed reader for text terminals.
http://www.newsbeuter.org/
MIT License
780 stars 97 forks source link

Facebook RSS #11

Closed JohanPretorius closed 13 years ago

JohanPretorius commented 13 years ago

[2011-07-08 01:16:09] USERERROR: Error while retrieving http://www.facebook.com/feeds/notifications.php?id=XXXXXXXXXXX&viewer=XXXXXXXX&key=XXXXXXXXX&format=rss20: unsupported feed format

The url works in another browser without authenication.

JohanPretorius commented 13 years ago

My newsbeuter -v output

newsbeuter 2.4 - http://www.newsbeuter.org/ Copyright (C) 2006-2010 Andreas Krennmair

newsbeuter is free software and licensed under the MIT/X Consortium License. Type `newsbeuter -vv' for more information.

Compilation date/time: Jul 6 2011 21:11:26 System: Linux 2.6.38-gentoo-r6 (i686) Compiler: g++ 4.5.2 ncurses: ncurses 5.7.20081102 (compiled with 5.7) libcurl: libcurl/7.21.4 OpenSSL/1.0.0d zlib/1.2.5 (compiled with 7.21.4) SQLite: 3.7.6.3 (compiled with 3.7.6.3) libxml2: compiled with 2.7.8

akrennmair commented 13 years ago

Do you have a concrete example, like an RSS file or a concrete URL that actually works? I don't know where to get a proper URL.

Regards, Andreas

JohanPretorius commented 13 years ago

I unfortunately cannot provide a url as it is personal per user, but inline is the browser view source from my url. If I do a wget I get binary. ? If you are on facebook click on your notifications popout and click "see all notifications" at bottom. The page that opens will have a RSS link to your own messages at the top.

Thanks

<?xml version="1.0" encoding="utf-8"?> <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:dc="http://purl.org/dc/elements/1.1/"

Johan Pretorius's Facebook Notifications https://www.facebook.com/notifications.php?id=1079807300 Johan Pretorius's Facebook Notifications en-us NotificationSyndicationFeed Facebook Syndicationhttp://www.rssboard.org/rss-specification Fri, 08 Jul 2011 17:28:13 -0100 webmaster@facebook.com www.facebook.com/notification/39330978 Johannes Van Der Steen, Eugene Koen, and 6 other people posted in SKRIFSTUDIE,SKRIF VERKLAAR SKRIF ! http://www.facebook.com/n/?groups%2F208121272555314&aref=39330978&medium=rss <a href="https://www.facebook.com/Fagobien">Johannes Van Der Steen</a>, <a href="https://www.facebook.com/eugene.koen">Eugene Koen</a>, and 6 other people posted in <a href="http://www.facebook.com/n/?groups%2F208121272555314&aref=39330978&medium=rss">SKRIFSTUDIE,SKRIF VERKLAAR SKRIF !</a> Fri, 08 Jul 2011 17:28:13 -0100 www.facebook.com/notification/39356084 Manuel Resende Ferreira posted in Portuguese speaking soldiers in the SADF. http://www.facebook.com/n/?groups%2F113899448642373&id=226810367351280&aref=39356084&medium=rss <a href="https://www.facebook.com/profile.php?id=716532916">Manuel Resende Ferreira</a> posted in <a href="http://www.facebook.com/n/?groups%2F113899448642373&id=226810367351280&aref=39356084&medium=rss">Portuguese speaking soldiers in the SADF</a>. Fri, 08 Jul 2011 13:15:11 -0100 www.facebook.com/notification/39353725 Louie Grobler, Boerenasie Staansaam, and Reint Dykema posted in Foto's verhale video van die OU Suid Afrikaanse Weermag. http://www.facebook.com/n/?groups%2Fousawlede1933&aref=39353725&medium=rss <a href="https://www.facebook.com/profile.php?id=100000566409340">Louie Grobler</a>, <a href="https://www.facebook.com/profile.php?id=100001974717069">Boerenasie Staansaam</a>, and <a href="https://www.facebook.com/reint.dykema1">Reint Dykema</a> posted in <a href="http://www.facebook.com/n/?groups%2Fousawlede1933&aref=39353725&medium=rss">Foto's verhale video van die OU Suid Afrikaanse Weermag</a>. Fri, 08 Jul 2011 13:07:42 -0100 www.facebook.com/notification/39292249 Manuel Resende Ferreira and Deon Steyn posted in Portuguese speaking soldiers in the SADF. http://www.facebook.com/n/?groups%2F113899448642373&aref=39292249&medium=rss <a href="https://www.facebook.com/profile.php?id=716532916">Manuel Resende Ferreira</a> and <a href="https://www.facebook.com/deon.steyn3">Deon Steyn</a> posted in <a href="http://www.facebook.com/n/?groups%2F113899448642373&aref=39292249&medium=rss">Portuguese speaking soldiers in the SADF</a>. Fri, 08 Jul 2011 12:00:18 -0100 www.facebook.com/notification/39350294 Lara Zhivago posted in Dorsland Donkie? http://www.facebook.com/n/?groups%2FDorslandDonkie&id=189087541145358&aref=39350294&medium=rss <a href="https://www.facebook.com/lara.zhivago">Lara Zhivago</a> posted in <a href="http://www.facebook.com/n/?groups%2FDorslandDonkie&id=189087541145358&aref=39350294&medium=rss">Dorsland Donkie?</a> Fri, 08 Jul 2011 07:58:28 -0100 www.facebook.com/notification/39349267 Bert Willering posted in Volkskansel. http://www.facebook.com/n/?groups%2F107093272665104&id=217155628325534&aref=39349267&medium=rss <a href="https://www.facebook.com/profile.php?id=100000971748284">Bert Willering</a> posted in <a href="http://www.facebook.com/n/?groups%2F107093272665104&id=217155628325534&aref=39349267&medium=rss">Volkskansel</a>. Fri, 08 Jul 2011 06:38:05 -0100 www.facebook.com/notification/39317131 Joan Vd Merwe posted in SOUTH AFRICA FROM THE INSIDE!!!! http://www.facebook.com/n/?groups%2F107091805994307&id=217958681574285&aref=39317131&medium=rss <a href="https://www.facebook.com/ozzie.oz1">Joan Vd Merwe</a> posted in <a href="http://www.facebook.com/n/?groups%2F107091805994307&id=217958681574285&aref=39317131&medium=rss">SOUTH AFRICA FROM THE INSIDE!!!!</a> Fri, 08 Jul 2011 05:17:14 -0100 www.facebook.com/notification/39339023 Sanderis Maartens posted in Republiek van Bravoland. http://www.facebook.com/n/?groups%2F2532206120&id=10150242278146121&aref=39339023&medium=rss <a href="https://www.facebook.com/sanderism">Sanderis Maartens</a> posted in <a href="http://www.facebook.com/n/?groups%2F2532206120&id=10150242278146121&aref=39339023&medium=rss">Republiek van Bravoland</a>. Thu, 07 Jul 2011 22:21:12 -0100 www.facebook.com/notification/39337430 Bloed Vlag posted in Ver-Regs Suid-Afrika. http://www.facebook.com/n/?groups%2F145177018880151&id=178771198854066&aref=39337430&medium=rss <a href="https://www.facebook.com/profile.php?id=100002384151935">Bloed Vlag</a> posted in <a href="http://www.facebook.com/n/?groups%2F145177018880151&id=178771198854066&aref=39337430&medium=rss">Ver-Regs Suid-Afrika</a>. Thu, 07 Jul 2011 21:15:58 -0100 www.facebook.com/notification/39284638 Victor Bantjes, Louie Grobler, and 3 other people posted in Foto's verhale video van die OU Suid Afrikaanse Weermag. http://www.facebook.com/n/?groups%2Fousawlede1933&aref=39284638&medium=rss <a href="https://www.facebook.com/profile.php?id=100002136316229">Victor Bantjes</a>, <a href="https://www.facebook.com/profile.php?id=100000566409340">Louie Grobler</a>, and 3 other people posted in <a href="http://www.facebook.com/n/?groups%2Fousawlede1933&aref=39284638&medium=rss">Foto's verhale video van die OU Suid Afrikaanse Weermag</a>. Thu, 07 Jul 2011 16:19:40 -0100 www.facebook.com/notification/39325125 Theo Jacobs posted in Volksraad Verkiesing Kommissie. http://www.facebook.com/n/?groups%2F48129031422&id=10150228077471423&aref=39325125&medium=rss <a href="https://www.facebook.com/profile.php?id=100000159822045">Theo Jacobs</a> posted in <a href="http://www.facebook.com/n/?groups%2F48129031422&id=10150228077471423&aref=39325125&medium=rss">Volksraad Verkiesing Kommissie</a>. Thu, 07 Jul 2011 14:01:38 -0100 www.facebook.com/notification/39260924 Theo Jacobs posted in Ver-Regs Suid-Afrika. http://www.facebook.com/n/?groups%2F145177018880151&id=178567308874455&aref=39260924&medium=rss <a href="https://www.facebook.com/profile.php?id=100000159822045">Theo Jacobs</a> posted in <a href="http://www.facebook.com/n/?groups%2F145177018880151&id=178567308874455&aref=39260924&medium=rss">Ver-Regs Suid-Afrika</a>. Thu, 07 Jul 2011 13:53:29 -0100 www.facebook.com/notification/39261586 Alta Olivier posted in SKRIFSTUDIE,SKRIF VERKLAAR SKRIF ! http://www.facebook.com/n/?groups%2F208121272555314&id=225437540823687&aref=39261586&medium=rss <a href="https://www.facebook.com/profile.php?id=100000809687856">Alta Olivier</a> posted in <a href="http://www.facebook.com/n/?groups%2F208121272555314&id=225437540823687&aref=39261586&medium=rss">SKRIFSTUDIE,SKRIF VERKLAAR SKRIF !</a> Thu, 07 Jul 2011 09:38:43 -0100 www.facebook.com/notification/39272790 Phillip Mills and Leon Peacock posted in Dorsland Donkie? http://www.facebook.com/n/?groups%2FDorslandDonkie&aref=39272790&medium=rss <a href="https://www.facebook.com/profile.php?id=100000841757576">Phillip Mills</a> and <a href="https://www.facebook.com/leon.peacock1">Leon Peacock</a> posted in <a href="http://www.facebook.com/n/?groups%2FDorslandDonkie&aref=39272790&medium=rss">Dorsland Donkie?</a> Thu, 07 Jul 2011 09:22:11 -0100 www.facebook.com/notification/39255000 Nettie Louw and Angela van der Merwe posted in ONS LEIER- JESUS CHRISTUS. http://www.facebook.com/n/?groups%2F114187365266159&aref=39255000&medium=rss <a href="https://www.facebook.com/profile.php?id=100001366958024">Nettie Louw</a> and <a href="https://www.facebook.com/profile.php?id=1408933234">Angela van der Merwe</a> posted in <a href="http://www.facebook.com/n/?groups%2F114187365266159&aref=39255000&medium=rss">ONS LEIER- JESUS CHRISTUS</a>. Thu, 07 Jul 2011 07:08:38 -0100 www.facebook.com/notification/39285091 Bert Willering posted in Volkskansel. http://www.facebook.com/n/?groups%2F107093272665104&id=216704571703973&aref=39285091&medium=rss <a href="https://www.facebook.com/profile.php?id=100000971748284">Bert Willering</a> posted in <a href="http://www.facebook.com/n/?groups%2F107093272665104&id=216704571703973&aref=39285091&medium=rss">Volkskansel</a>. Thu, 07 Jul 2011 07:05:43 -0100 www.facebook.com/notification/39301389 Fernando De La Cuadra likes your comment: "@Maria I live in a mostly white..." http://www.facebook.com/n/?media%2Fset%2F&set=a.337106746257.197390.671336257&aref=39301389&medium=rss <a href="https://www.facebook.com/profile.php?id=100001267776754">Fernando De La Cuadra</a> likes your <a href="http://www.facebook.com/n/?media%2Fset%2F&set=a.337106746257.197390.671336257&aref=39301389&medium=rss&cmntid=10150362945036258">comment</a>: "@Maria I live in a mostly white..." Wed, 06 Jul 2011 18:38:17 -0100 www.facebook.com/notification/39247032 Joan Vd Merwe and Marietjie Kriel Morgan posted in SOUTH AFRICA FROM THE INSIDE!!!! http://www.facebook.com/n/?groups%2F107091805994307&aref=39247032&medium=rss <a href="https://www.facebook.com/ozzie.oz1">Joan Vd Merwe</a> and <a href="https://www.facebook.com/marietjie.krielmorgan">Marietjie Kriel Morgan</a> posted in <a href="http://www.facebook.com/n/?groups%2F107091805994307&aref=39247032&medium=rss">SOUTH AFRICA FROM THE INSIDE!!!!</a> Wed, 06 Jul 2011 05:56:57 -0100 www.facebook.com/notification/39215696 Ben Geldenhuys posted in Volksraad Verkiesing Kommissie. http://www.facebook.com/n/?groups%2F48129031422&id=10150226847656423&aref=39215696&medium=rss <a href="https://www.facebook.com/profile.php?id=679504107">Ben Geldenhuys</a> posted in <a href="http://www.facebook.com/n/?groups%2F48129031422&id=10150226847656423&aref=39215696&medium=rss">Volksraad Verkiesing Kommissie</a>. Tue, 05 Jul 2011 21:33:00 -0100 www.facebook.com/notification/39204141 Phillip Mills posted in Dorsland Donkie? http://www.facebook.com/n/?groups%2FDorslandDonkie&id=187921857928593&aref=39204141&medium=rss <a href="https://www.facebook.com/profile.php?id=100000841757576">Phillip Mills</a> posted in <a href="http://www.facebook.com/n/?groups%2FDorslandDonkie&id=187921857928593&aref=39204141&medium=rss">Dorsland Donkie?</a> Tue, 05 Jul 2011 19:15:19 -0100 www.facebook.com/notification/39260260 Christine Calitz Lemley invited you to the event "Barbara Louw: Ek is ge"hi-jack" en ge"robb", wat nou?" http://www.facebook.com/n/?event.php&eid=159471614124280&aref=39260260&medium=rss <a href="https://www.facebook.com/christine.lemley">Christine Calitz Lemley</a> invited you to the event "<a href="http://www.facebook.com/n/?event.php&eid=159471614124280&aref=39260260&medium=rss">Barbara Louw: Ek is ge"hi-jack" en ge"robb", wat nou?</a>" Tue, 05 Jul 2011 14:56:18 -0100 www.facebook.com/notification/39256169 Marius Brand posted in Koevoet. http://www.facebook.com/n/?groups%2FKoevoet&id=10150223144572035&aref=39256169&medium=rss <a href="https://www.facebook.com/maruis">Marius Brand</a> posted in <a href="http://www.facebook.com/n/?groups%2FKoevoet&id=10150223144572035&aref=39256169&medium=rss">Koevoet</a>. Tue, 05 Jul 2011 12:12:00 -0100 www.facebook.com/notification/39231681 Gert Oosthuizen Pretoria Rsa and John M Riggs posted in GRATIS ADVERTENSIES / CLASSIFIEDS / FREE ADVERTS. http://www.facebook.com/n/?groups%2F120154548003768&aref=39231681&medium=rss <a href="https://www.facebook.com/gert.oosthuizen1">Gert Oosthuizen Pretoria Rsa</a> and <a href="https://www.facebook.com/john.m.riggs">John M Riggs</a> posted in <a href="http://www.facebook.com/n/?groups%2F120154548003768&aref=39231681&medium=rss">GRATIS ADVERTENSIES / CLASSIFIEDS / FREE ADVERTS</a>. Tue, 05 Jul 2011 11:02:24 -0100 www.facebook.com/notification/39254020 Elsa Muller added you to the group Ver-Regs Suid-Afrika. http://www.facebook.com/n/?groups%2F145177018880151&aref=39254020&medium=rss <a href="http://www.facebook.com/n/?profile.php&id=100002140932017&aref=39254020&medium=rss">Elsa Muller</a> added you to the group <a href="http://www.facebook.com/n/?groups%2F145177018880151&aref=39254020&medium=rss">Ver-Regs Suid-Afrika</a>. Tue, 05 Jul 2011 10:30:48 -0100 www.facebook.com/notification/39190021 Gideon von Stade posted in SKRIFSTUDIE,SKRIF VERKLAAR SKRIF ! http://www.facebook.com/n/?groups%2F208121272555314&id=224453184255456&aref=39190021&medium=rss <a href="https://www.facebook.com/gideon.vonstade">Gideon von Stade</a> posted in <a href="http://www.facebook.com/n/?groups%2F208121272555314&id=224453184255456&aref=39190021&medium=rss">SKRIFSTUDIE,SKRIF VERKLAAR SKRIF !</a> Tue, 05 Jul 2011 09:55:27 -0100 www.facebook.com/notification/39199293 Bert Willering posted in Volkskansel. http://www.facebook.com/n/?groups%2F107093272665104&id=215752428465854&aref=39199293&medium=rss <a href="https://www.facebook.com/profile.php?id=100000971748284">Bert Willering</a> posted in <a href="http://www.facebook.com/n/?groups%2F107093272665104&id=215752428465854&aref=39199293&medium=rss">Volkskansel</a>. Tue, 05 Jul 2011 07:21:04 -0100 www.facebook.com/notification/39237753 Ben Geldenhuys invited you to the event "VVK Toer." http://www.facebook.com/n/?event.php&eid=181505138575821&aref=39237753&medium=rss <a href="https://www.facebook.com/profile.php?id=679504107">Ben Geldenhuys</a> invited you to the event "<a href="http://www.facebook.com/n/?event.php&eid=181505138575821&aref=39237753&medium=rss">VVK Toer</a>." Mon, 04 Jul 2011 20:50:57 -0100 www.facebook.com/notification/39226113 Hannes Engelbrecht invited you to the event "Massa-saamtrek vir Selfbeskikking en protes teen aanvalle en moorde." http://www.facebook.com/n/?event.php&eid=230913783599032&aref=39226113&medium=rss <a href="https://www.facebook.com/profile.php?id=1127604864">Hannes Engelbrecht</a> invited you to the event "<a href="http://www.facebook.com/n/?event.php&eid=230913783599032&aref=39226113&medium=rss">Massa-saamtrek vir Selfbeskikking en protes teen aanvalle en moorde</a>." Mon, 04 Jul 2011 13:54:27 -0100 www.facebook.com/notification/39170059 Dino Estevao, Manuel Resende Ferreira, and Alves Antonio Jose posted in Portuguese speaking soldiers in the SADF. http://www.facebook.com/n/?groups%2F113899448642373&aref=39170059&medium=rss <a href="https://www.facebook.com/profile.php?id=100000506261247">Dino Estevao</a>, <a href="https://www.facebook.com/profile.php?id=716532916">Manuel Resende Ferreira</a>, and <a href="https://www.facebook.com/profile.php?id=100000547803055">Alves Antonio Jose</a> posted in <a href="http://www.facebook.com/n/?groups%2F113899448642373&aref=39170059&medium=rss">Portuguese speaking soldiers in the SADF</a>. Mon, 04 Jul 2011 13:41:12 -0100 www.facebook.com/notification/39217022 Ben Geldenhuys posted in Die Verkenners Beweging van Suid-Afrika. http://www.facebook.com/n/?groups%2F101965183175729&id=215968231775423&aref=39217022&medium=rss <a href="https://www.facebook.com/profile.php?id=679504107">Ben Geldenhuys</a> posted in <a href="http://www.facebook.com/n/?groups%2F101965183175729&id=215968231775423&aref=39217022&medium=rss">Die Verkenners Beweging van Suid-Afrika</a>. Mon, 04 Jul 2011 06:09:17 -0100 www.facebook.com/notification/39216912 Jan Beyers updated the group Die Verkenners Beweging van Suid-Afrika. http://www.facebook.com/n/?groups%2F101965183175729&aref=39216912&medium=rss <a href="http://www.facebook.com/n/?profile.php&id=665236114&aref=39216912&medium=rss">Jan Beyers</a> updated the group <a href="http://www.facebook.com/n/?groups%2F101965183175729&aref=39216912&medium=rss">Die Verkenners Beweging van Suid-Afrika</a>. Mon, 04 Jul 2011 06:01:49 -0100 www.facebook.com/notification/39205267 Tokkie van Wyk posted in Suid Afrikaners kom ons netwerk/ South Africans lets Network. http://www.facebook.com/n/?groups%2F107510249282634&id=223614861005505&aref=39205267&medium=rss <a href="https://www.facebook.com/tokkie.vanwyk">Tokkie van Wyk</a> posted in <a href="http://www.facebook.com/n/?groups%2F107510249282634&id=223614861005505&aref=39205267&medium=rss">Suid Afrikaners kom ons netwerk/ South Africans lets Network</a>. Sun, 03 Jul 2011 20:53:40 -0100 www.facebook.com/notification/39128920 Kobus Adendorff posted in SKRIFSTUDIE,SKRIF VERKLAAR SKRIF ! http://www.facebook.com/n/?groups%2F208121272555314&id=223488867685221&aref=39128920&medium=rss <a href="https://www.facebook.com/profile.php?id=100002493362818">Kobus Adendorff</a> posted in <a href="http://www.facebook.com/n/?groups%2F208121272555314&id=223488867685221&aref=39128920&medium=rss">SKRIFSTUDIE,SKRIF VERKLAAR SKRIF !</a> Sun, 03 Jul 2011 07:09:04 -0100
<item>
  <guid isPermaLink="false">www.facebook.com/notification/39106961</guid>
  <title>Manuel Resende Ferreira, Deon Steyn, and 3 other people posted in Portuguese speaking soldiers in the SADF.</title>
  <link>http://www.facebook.com/n/?groups%2F113899448642373&amp;aref=39106961&amp;medium=rss</link>
  <description>&lt;a href=&quot;https://www.facebook.com/profile.php?id=716532916&quot;&gt;Manuel Resende Ferreira&lt;/a&gt;, &lt;a href=&quot;https://www.facebook.com/deon.steyn3&quot;&gt;Deon Steyn&lt;/a&gt;, and 3 other people posted in &lt;a href=&quot;http://www.facebook.com/n/?groups%2F113899448642373&amp;aref=39106961&amp;medium=rss&quot;&gt;Portuguese speaking soldiers in the SADF&lt;/a&gt;.</description>
  <pubDate>Sat, 02 Jul 2011 15:48:34 -0100</pubDate>
</item>
<item>
  <guid isPermaLink="false">www.facebook.com/notification/39158711</guid>
  <title>Joan Vd Merwe posted in SOUTH  AFRICA FROM THE INSIDE!!!!</title>
  <link>http://www.facebook.com/n/?groups%2F107091805994307&amp;id=215318461838307&amp;aref=39158711&amp;medium=rss</link>
  <description>&lt;a href=&quot;https://www.facebook.com/ozzie.oz1&quot;&gt;Joan Vd Merwe&lt;/a&gt; posted in &lt;a href=&quot;http://www.facebook.com/n/?groups%2F107091805994307&amp;id=215318461838307&amp;aref=39158711&amp;medium=rss&quot;&gt;SOUTH  AFRICA FROM THE INSIDE!!!!&lt;/a&gt;</description>
  <pubDate>Sat, 02 Jul 2011 08:26:15 -0100</pubDate>
</item>

akrennmair commented 13 years ago

OK, thanks, I can now reproduce the problem.

The root cause for this is that Facebook does browser sniffing by inspecting the User-Agent string, and if it doesn't match a supported browser, Facebook returns an HTML page saying something like "we're not cool enough to support your browser." You can fix this problem by faking the User-Agent string. In the newsbeuter configuration, just add a line like this:

user-agent "Mozilla/5.001 (windows; U; NT4.0; en-US; rv:1.0) Gecko/25250101"

That should make the Facebook RSS feed work.

Regards, Andreas

JohanPretorius commented 13 years ago

Thanks Andreas

Newsbeuter and Mutt - I like a lot.

Johan