Re: [OSM-talk] Twitter bots

2009-08-24 Thread Alexander Klink
Hi,

On Mon, Aug 24, 2009 at 10:51:23AM +0100, Shaun McDonald wrote:
>> a few of us like to use a twitter search for "openstreetmap" to see
>> what humans are saying but recently pretty much all of the tweets we
>> receive for this search are from these bots.
>>
>> Would it be possible to reduce the level of spam - one example could
>> be for the bots to use the shorturl (osm.org) or other short url
>> service instead of the full openstreetmap.org url?
>>
>
> +1
>
> My current search is openstreetmap OR #osm, and it is really annoying to 
> see all these uninsteresting twitters.

Sorry, didn't think about that. I've changed the bot to use
osm.org, my bots will use that right away, I hope the other
bot owners will update as well.

> There currently isn't a shortlink for the browse pages. Instead you'll  
> need to use a third party service.

Hmmm, www.osm.org/browse/changeset/$id seems to work fine for me.
I already use tweak.tk if the tweet is too long, but I like it better
to see the real URL (see the tr.im disaster) if possible.

For the search, -changeset works fine as well (because I guess users
will typically not tweet about changesets).

> Personally I wouldn't want every edit in an area, just a daily or hourly 
> summary of the number of changes.

I was thinking about that as well, I could make it an option. I guess
it would be interesting to see and compare different countries that way
as well.

I'll probably need to do this via the planet.osm diffs, though, I guess,
because it would be a waste to download all the changesets via the API
just to get the number of them.

Using the planet.osm, several statistics bots would be possible as well,
like number of roads added, number of cafés, bus stops, etc.

Cheers,
  Alex


signature.asc
Description: Digital signature
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Twitter bots

2009-08-19 Thread Alexander Klink
Hi everyone,

This weekend, I hacked together a quick twitter bot,
which now tweets all changesets in a certain are (in
my case, Darmstadt, Germany) - see http://twitter.com/osm_darmstadt

I've found it quite useful thus far, on the one hand I write
better changeset comments, because I know they will be on
Twitter, on the other hand, I see what happens in my community.

If you want to run a similar bot, you can find the source
at http://git.alech.de/?p=osm_twitter_bots.git

Alternatively, I can add a bit of code to run more than
one bot at a time and run a few of them for you (until I
hit the Twitter API limits), I'd only need a name and a
bounding box for that.

Cheers,
  Alex


signature.asc
Description: Digital signature
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk