#26763: Generate tweets from Metrics news feed -------------------------+-------------------------- Reporter: irl | Owner: irl Type: enhancement | Status: accepted Priority: Medium | Milestone: Component: Metrics/Bot | Version: Severity: Normal | Resolution: Keywords: | Actual Points: Parent ID: | Points: Reviewer: | Sponsor: -------------------------+--------------------------
Comment (by irl): Ok, so I've come up with the following two agents that should consume the RSS feed and create nicely formatted tweets. The formatter should always truncate titles so that tweets are never more than 280 chars. When it does this it should add an ellipsis. {{{ { "schema_version": 1, "name": "tor-metrics", "description": "Pipeline for Tor Metrics events", "source_url": false, "guid": "eebb7901f99b08495379a92d32e11cb5", "tag_fg_color": "#ffffff", "tag_bg_color": "#5bc0de", "icon": "tachometer", "exported_at": "2018-07-31T14:42:06Z", "agents": [ { "type": "Agents::EventFormattingAgent", "name": "Tor Metrics News Tweet Formatter", "disabled": false, "guid": "6afc600330eda3301787876417d9204b", "options": { "instructions": { "message": "News entry added for {{last_updated | date:\"%d %b\"}}: {{title | truncate:200}} https://metrics.torproject.org/news.html", "agent": "{{agent.type}}" }, "matchers": [ ], "mode": "clean" }, "keep_events_for": 0, "propagate_immediately": false }, { "type": "Agents::RssAgent", "name": "Tor Metrics News", "disabled": false, "guid": "a97c03cd19c1b6a4bf9b4e7a2fb109d1", "options": { "expected_update_period_in_days": "10", "clean": "false", "url": "https://metrics.torproject.org/news.atom" }, "schedule": "every_1h", "keep_events_for": 0 } ], "links": [ { "source": 1, "receiver": 0 } ], "control_links": [ ] } }}} hiro: Does this look reasonable to you? I think I'll let it run for a while to see how it updates when we update the feed before plugging the Twitter account into it. -- Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26763#comment:4> Tor Bug Tracker & Wiki <https://trac.torproject.org/> The Tor Project: anonymity online
_______________________________________________ tor-bugs mailing list tor-bugs@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs