canasdiaz / rsstotwitter

rsstotwitter is a very simple tool to update twitter accounts from RSS feeds. It is written in python and licensed under GPL
2 stars 1 forks source link

It crashes and send repeated messages #3

Closed canasdiaz closed 13 years ago

canasdiaz commented 14 years ago

Find below the error:

/etc/cron.hourly/rsstotwitter_pool: /etc/rsstotwitter/ls-news /etc/rsstotwitter/ls-planet /etc/rsstotwitter/osor-case_studies /etc/rsstotwitter/osor-communities /etc/rsstotwitter/osor-community_blogs send: 'POST /1/statuses/update.json HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 334\r\nHost: api.twitter.com\r\nContent-Type: application/x-www-form-urlencoded\r\nConnection: close\r\nUser-Agent: Python-urllib/2.5\r\n\r\n' send: 'status=Estonia%3A%20Eesti%20vaade%20osor.eu-s%20http%3A%2F%2Ftinyurl.com%2F34axj9c&oauth_version=1.0&oauth_token=46066476-RK1vX4ZZvVYbYpBJ1qG7XPVKJreBQyZEDQAhGum8Y&oauth_nonce=91274851&oauth_timestamp=1288095423&oauth_signature=Z5rhM%2BBsOxKbsPRoVMOfjGQHPBA%3D&oauth_consumer_key=xnGWqlLVTwmzA2ANrqvQQ&oauth_signature_method=HMAC-SHA1' reply: 'HTTP/1.1 403 Forbidden\r\n' header: Date: Tue, 26 Oct 2010 12:16:33 GMT header: Server: hi header: Status: 403 Forbidden header: X-Transaction: 1288095393-85879-43653 header: Last-Modified: Tue, 26 Oct 2010 12:16:33 GMT header: X-Runtime: 0.05545 header: Content-Type: application/json; charset=utf-8 header: Content-Length: 73 header: Pragma: no-cache header: X-Revision: DEV header: Expires: Tue, 31 Mar 1981 05:00:00 GMT header: Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0 header: Set-Cookie: k=193.147.51.200.1288095393500107; path=/; expires=Tue, 02-Nov-10 12:16:33 GMT; domain=.twitter.com header: Set-Cookie: guest_id=12880953938943266; path=/; expires=Thu, 25 Nov 2010 12:16:33 GMT header: Set-Cookie: lang=en; path=/ header: Set-Cookie: _twitter_sess=BAh7CToMY3NyZl9pZCIlODRkYWE1OTNkMzhmMjVmODU0N2Y5NGEwNjU5MjNl%250AMTI6D2NyZWF0ZWRfYXRsKwhv6HfoKwE6B2lkIiVjNjdmYTAyNjlmOGRkNDlh%250ANmJhYjljNDlkNDJjOTYxMSIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6%250ARmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%253D%253D--c5d3f2e100bc3643ff2c065b2aba9011bdde8923; domain=.twitter.com; path=/ header: Vary: Accept-Encoding header: Connection: close Traceback (most recent call last): File "/usr/local/bin/rsstotwitter.py", line 291, in main() File "/usr/local/bin/rsstotwitter.py", line 287, in main sent_messages = s.send() File "/usr/local/bin/rsstotwitter.py", line 131, in send if self.post2twitter(i): File "/usr/local/bin/rsstotwitter.py", line 166, in post2twitter status = self.api.PostUpdate(text) File "/var/lib/python-support/python2.5/twitter.py", line 2158, in PostUpdate

File "/var/lib/python-support/python2.5/twitter.py", line 2943, in _CheckForTwitterError

twitter.TwitterError: Status is a duplicate. /etc/rsstotwitter/osor-events /etc/rsstotwitter/osor-new_projects /etc/rsstotwitter/osor-news /etc/rsstotwitter/osor-project_releases

canasdiaz commented 14 years ago

Here you are the feed:

<?xml version="1.0" encoding="utf-8" ?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns="http://purl.org/rss/1.0/">

Community Blogs http://www.osor.eu ``` Blogs entries done by the OSOR communities ``` ``` daily 1 2009-03-30T22:59:07Z ``` rdf:Seq ``` ```
<item rdf:about="http://www.osor.eu/communities/eupl/blog/is-royalty-free-for-free">
EUPL: Is "royalty-free" for free?

http://www.osor.eu/communities/eupl/blog/is-royalty-free-for-free The EUPL grants « royalty-free » software to recipients. Does it mean that the software must be always licensed “for free”? Does it mean that it cannot implement components or standards that are not royalty-free? dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-10-22T15:29:10Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/estonia/blog/eesti-repositoorium">
Estonia: Eesti repositoorium

http://www.osor.eu/communities/estonia/blog/eesti-repositoorium http://estonia.forge.osor.eu/ dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-10-21T10:31:00Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/estonia/blog/eesti-kogukond-osor.eu-s-kaivitunud">
Estonia: Eesti kogukond osor.eu-s käivitunud

http://www.osor.eu/communities/estonia/blog/eesti-kogukond-osor.eu-s-kaivitunud dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-10-21T10:30:29Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/estonia/blog/eesti-vaade-osor.eu-s">
Estonia: Eesti vaade osor.eu-s

http://www.osor.eu/communities/estonia/blog/eesti-vaade-osor.eu-s ... see on käesolev kogukonna keskkond + virtuaalne repositoorium dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-10-21T10:36:01Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/eupl/blog/a-case-study-on-fair-procurement-for-floss-in-italy">
EUPL: A case study on fair procurement for FLOSS in Italy

http://www.osor.eu/communities/eupl/blog/a-case-study-on-fair-procurement-for-floss-in-italy The Autonomous Region of Sardinia (Italy) has published specifications allowing evaluators to provide a (small) advantage to the providers of “reusable” and free/open source solutions provided under the European Union Public Licence. dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-10-15T09:15:39Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/eupl/blog/a-bug-in-the-european-license-1">
EUPL: A bug in the European license?

http://www.osor.eu/communities/eupl/blog/a-bug-in-the-european-license-1 An advisor of the Dutch administration (Sr consultant at Ministry of Home affairs – ICT) recently questioned the efficiency of the EUPL copyleft in the case a covered work would be hidden in a “Software as a service” application, after being re-licensed under the GNU GPLv2. dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-10-14T19:41:52Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/eupl/blog/the-estonian-interoperability-framework-adopts-the-european-licence-1">
EUPL: The Estonian Interoperability Framework adopts the European Licence

http://www.osor.eu/communities/eupl/blog/the-estonian-interoperability-framework-adopts-the-european-licence-1 Compiled in 2010 by the Department of State Information Systems (RISO) of the Ministry of Economic Affairs and Communications of Estonia, the Information Society Yearbook reports that software developments done for the government or produced by the government in Estonia will be distributed under the EUPL licence. dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-09-28T15:10:59Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/openoffice-in-public-authorities/blog/leuven-university-and-the-quest-for-accessibility">
OpenOffice.org in public authorities: Leuven University and the quest for accessibility

http://www.osor.eu/communities/openoffice-in-public-authorities/blog/leuven-university-and-the-quest-for-accessibility KULeuven releases second ODT converter. dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-08-06T20:36:19Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/eupl/blog/matija-suklje-coordinator-of-the-fsfe-fellowship-group-slovenia-analyses-the-licence">
EUPL: Matija Šuklje, coordinator of the FSFE Fellowship group Slovenia analyses the licence

http://www.osor.eu/communities/eupl/blog/matija-suklje-coordinator-of-the-fsfe-fellowship-group-slovenia-analyses-the-licence Matija Šuklje, founder and coordinator of the FSFE Fellowship group Slovenia analyses the EUPL licence in the Linux Magazine dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-07-28T15:24:41Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/eupl/blog/the-eu-open-source-license-allows-for-easy-licensing-of-open-source-software-under-an-eu-legal-framework-said-neelie-kroes-ec-vice-president">
EUPL: The EU open source license allows for easy licensing of open source software under an EU legal framework, said Neelie Kroes, EC Vice President

http://www.osor.eu/communities/eupl/blog/the-eu-open-source-license-allows-for-easy-licensing-of-open-source-software-under-an-eu-legal-framework-said-neelie-kroes-ec-vice-president The EUPL allows for easy licensing of open source software under an EU legal framework, said Neelie Kroes, Vice President of the European Commission and European Digital Agenda Commissioner, in her 12 July Youtube broadcasted speech dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-07-20T09:49:13Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/eupl/blog/the-government-of-malta-distributes-oss-government-solutions-under-the-european-union-public-licence">
EUPL: The Government of Malta distributes OSS government solutions under the European Union Public Licence

http://www.osor.eu/communities/eupl/blog/the-government-of-malta-distributes-oss-government-solutions-under-the-european-union-public-licence The 1st June 2010 directive of the Government of Malta enables, where appropriate, the distribution of its public sector software under the EUPL. dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-08-11T13:21:44Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/osor/improving-you-search-with-microformats-operator-and-ubiquity">
Communities: Improving you search with Microformats, Operator and Ubiquity

http://www.osor.eu/communities/osor/improving-you-search-with-microformats-operator-and-ubiquity Improving interactivity with microformats while adding search functionalities dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-05-18T16:50:37Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/osor/osor.eu-website-improvements">
Communities: OSOR.eu website improvements

http://www.osor.eu/communities/osor/osor.eu-website-improvements dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-04-28T08:52:35Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/osor/planned-maintenance-on-april-27th">
Communities: Planned maintenance on April 27th

http://www.osor.eu/communities/osor/planned-maintenance-on-april-27th dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-04-26T10:18:36Z/dc:date dc:typeBlog Entry/dc:type

<item rdf:about="http://www.osor.eu/communities/eupl/blog/impact-of-the-spanish-royal-decree-4-2010-of-8-january-2010-1">
EUPL: Recommended licence in Spanish Royal Decree 4/2010 of 8 January 2010

http://www.osor.eu/communities/eupl/blog/impact-of-the-spanish-royal-decree-4-2010-of-8-january-2010-1 On 8 January 2010, Spain has adopted the Royal Decree 4/2010 which implements the National Interoperability Framework planned in the eGovernment Law 11/2007.

The framework has been developed with the participation of all Public Administrations (General State, Regional and Local governments - represented by one hundred experts) and of the ICT Industry professional associations. It provides that the EUPL will be provided for public sector software distribution.

The Decree includes important provisions, especially Articles 16 and 17 related to the reuse of Public Sector software, the applicable licensing condition and the use of software repositories or forges. dc:publisherNo publisher/dc:publisher
dc:rights/dc:rights dc:date2010-07-08T15:24:11Z/dc:date dc:typeBlog Entry/dc:type

/rdf:RDF

canasdiaz commented 13 years ago

Fixed in 0.2.3