I supports the XPATH and ATOM stuff, but not CSS selectors, etc, since
I don't know of a PHP library for that. All this code does is take an
array (hard-coded just now) of service => username pairs, and extract
the data. Then it iterpolates it using the HTML template from the
YAML. Small piece of code suddenly has lots of services it can handle!
> I supports the XPATH and ATOM stuff, but not CSS selectors, etc, since > I don't know of a PHP library for that. All this code does is take an > array (hard-coded just now) of service => username pairs, and extract > the data. Then it iterpolates it using the HTML template from the > YAML. Small piece of code suddenly has lots of services it can handle!
> > I supports the XPATH and ATOM stuff, but not CSS selectors, etc, since > > I don't know of a PHP library for that. All this code does is take an > > array (hard-coded just now) of service => username pairs, and extract > > the data. Then it iterpolates it using the HTML template from the > > YAML. Small piece of code suddenly has lots of services it can handle!
Big thanks to MT guys for most of the YAML (added last.fm stream,
edited flickr and youtube to display thumbnails) and all of the CSS/
icons and inspiration!
I hereby dual-license this plugin MIT and BSD (or compatible).
And, fancy de-duping!
Any scrapers that use HTML will not work. These seem to be for more
obscure sites.
Digg seems to block the wp_remote_fopen user agent. Blah.
To install, just untar in plugins/
Go to Users > Action Stream
If you have a url(s) (from standard or diso-profile enhanced profile)
that match a supported service, they are added automagically. You can
add more.
A preview of you actionstream is shown right on the page.
To add elsewhere the template tag is actionstream_render(); (you
can pass an optional userid or user name, and number of items to
display, default 10)
Enjoy!
On Mar 8, 7:19 pm, "Stephen Paul Weber" <singpol...@gmail.com> wrote:
> > > I supports the XPATH and ATOM stuff, but not CSS selectors, etc, since
> > > I don't know of a PHP library for that. All this code does is take an
> > > array (hard-coded just now) of service => username pairs, and extract
> > > the data. Then it iterpolates it using the HTML template from the
> > > YAML. Small piece of code suddenly has lots of services it can handle!
> Big thanks to MT guys for most of the YAML (added last.fm stream, > edited flickr and youtube to display thumbnails) and all of the CSS/ > icons and inspiration!
> I hereby dual-license this plugin MIT and BSD (or compatible).
> And, fancy de-duping!
> Any scrapers that use HTML will not work. These seem to be for more > obscure sites. > Digg seems to block the wp_remote_fopen user agent. Blah.
> To install, just untar in plugins/ > Go to Users > Action Stream
> If you have a url(s) (from standard or diso-profile enhanced profile) > that match a supported service, they are added automagically. You can > add more.
> A preview of you actionstream is shown right on the page.
> To add elsewhere the template tag is actionstream_render(); (you > can pass an optional userid or user name, and number of items to > display, default 10)
> Enjoy!
> On Mar 8, 7:19 pm, "Stephen Paul Weber" <singpol...@gmail.com> wrote: >> Not yet -- right now it doesn't even cache the data -- WP integration >> is the next step
>> On Sat, Mar 8, 2008 at 4:46 PM, Steve Ivy <steve...@gmail.com> wrote:
>>> Wow, Stephen, this is great! I wish I had half your time for this >>> stuff. :-) Good work. Is this a WP plugin yet?
>>> On Sat, Mar 8, 2008 at 2:06 PM, Singpolyma <singpol...@gmail.com> >>> wrote:
>>>> I've knocked up a basic implementation of action streams based on >>>> the >>>> MT YAML file and a PHP YAML parser.
>>>> I supports the XPATH and ATOM stuff, but not CSS selectors, etc, >>>> since >>>> I don't know of a PHP library for that. All this code does is >>>> take an >>>> array (hard-coded just now) of service => username pairs, and >>>> extract >>>> the data. Then it iterpolates it using the HTML template from the >>>> YAML. Small piece of code suddenly has lots of services it can >>>> handle!
> Big thanks to MT guys for most of the YAML (added last.fm stream,
> edited flickr and youtube to display thumbnails) and all of the CSS/
> icons and inspiration!
> I hereby dual-license this plugin MIT and BSD (or compatible).
> And, fancy de-duping!
> Any scrapers that use HTML will not work. These seem to be for more
> obscure sites.
> Digg seems to block the wp_remote_fopen user agent. Blah.
> To install, just untar in plugins/
> Go to Users > Action Stream
> If you have a url(s) (from standard or diso-profile enhanced profile)
> that match a supported service, they are added automagically. You can
> add more.
> A preview of you actionstream is shown right on the page.
> To add elsewhere the template tag is actionstream_render(); (you
> can pass an optional userid or user name, and number of items to
> display, default 10)
> Enjoy!
> On Mar 8, 7:19 pm, "Stephen Paul Weber" <singpol...@gmail.com> wrote:
> > Not yet -- right now it doesn't even cache the data -- WP integration
> > is the next step
> > On Sat, Mar 8, 2008 at 4:46 PM, Steve Ivy <steve...@gmail.com> wrote:
> > > Wow, Stephen, this is great! I wish I had half your time for this
> > > stuff. :-) Good work. Is this a WP plugin yet?
> > > On Sat, Mar 8, 2008 at 2:06 PM, Singpolyma <singpol...@gmail.com> wrote:
> > > > I've knocked up a basic implementation of action streams based on the
> > > > MT YAML file and a PHP YAML parser.
> > > > I supports the XPATH and ATOM stuff, but not CSS selectors, etc, since
> > > > I don't know of a PHP library for that. All this code does is take an
> > > > array (hard-coded just now) of service => username pairs, and extract
> > > > the data. Then it iterpolates it using the HTML template from the
> > > > YAML. Small piece of code suddenly has lots of services it can handle!
Thoughts on more de-duping. Right now it just de-dupes /inside/ a
service... but if someone adds their tumblr or something and has
twitter in tumblr, etc, you don't want the same update displaying
twice.
Can we safely just do something like:
$done = array();
foreach($items as $item)
if(in_array($item, $done)) continue;
? or do the other services often change it a fair bit? Should that
be handled by cleanup inline (ie, facebook adds 'is twittering' - but
twitter adds 'username: ' and that gets detected and removed, so the
other could be as well...)
I think either way, detected dupes should be handled as current
"dupes" are - output the node anyway, but hide it (for scrapers, they
see the whole lifestream with all nodes)
On Mar 9, 10:38 pm, Pras Sarkar <pras.sar...@gmail.com> wrote:
> > Big thanks to MT guys for most of the YAML (added last.fm stream,
> > edited flickr and youtube to display thumbnails) and all of the CSS/
> > icons and inspiration!
> > I hereby dual-license this plugin MIT and BSD (or compatible).
> > And, fancy de-duping!
> > Any scrapers that use HTML will not work. These seem to be for more
> > obscure sites.
> > Digg seems to block the wp_remote_fopen user agent. Blah.
> > To install, just untar in plugins/
> > Go to Users > Action Stream
> > If you have a url(s) (from standard or diso-profile enhanced profile)
> > that match a supported service, they are added automagically. You can
> > add more.
> > A preview of you actionstream is shown right on the page.
> > To add elsewhere the template tag is actionstream_render(); (you
> > can pass an optional userid or user name, and number of items to
> > display, default 10)
> > Enjoy!
> > On Mar 8, 7:19 pm, "Stephen Paul Weber" <singpol...@gmail.com> wrote:
> > > Not yet -- right now it doesn't even cache the data -- WP integration
> > > is the next step
> > > On Sat, Mar 8, 2008 at 4:46 PM, Steve Ivy <steve...@gmail.com> wrote:
> > > > Wow, Stephen, this is great! I wish I had half your time for this
> > > > stuff. :-) Good work. Is this a WP plugin yet?
> > > > On Sat, Mar 8, 2008 at 2:06 PM, Singpolyma <singpol...@gmail.com> wrote:
> > > > > I've knocked up a basic implementation of action streams based on the
> > > > > MT YAML file and a PHP YAML parser.
> > > > > I supports the XPATH and ATOM stuff, but not CSS selectors, etc, since
> > > > > I don't know of a PHP library for that. All this code does is take an
> > > > > array (hard-coded just now) of service => username pairs, and extract
> > > > > the data. Then it iterpolates it using the HTML template from the
> > > > > YAML. Small piece of code suddenly has lots of services it can handle!
I think de-duping will have to be more involved - prolly need to start
with the guid (in ATOM and some variants of RSS) as a basis, then
getting more esoteric from there.
On Mar 10, 7:36 am, Singpolyma <singpol...@gmail.com> wrote:
> Thoughts on more de-duping. Right now it just de-dupes /inside/ a
> service... but if someone adds their tumblr or something and has
> twitter in tumblr, etc, you don't want the same update displaying
> twice.
> Can we safely just do something like:
> $done = array();
> foreach($items as $item)
> if(in_array($item, $done)) continue;
> ? or do the other services often change it a fair bit? Should that
> be handled by cleanup inline (ie, facebook adds 'is twittering' - but
> twitter adds 'username: ' and that gets detected and removed, so the
> other could be as well...)
> I think either way, detected dupes should be handled as current
> "dupes" are - output the node anyway, but hide it (for scrapers, they
> see the whole lifestream with all nodes)
> On Mar 9, 10:38 pm, Pras Sarkar <pras.sar...@gmail.com> wrote:
> > This is great Stephen! Works like a charm; I have it up and running onhttp://headphono.us
> > I'd like to help out. You mentioned something about de-duping? Are you
> > already working on that?
> > Thanks,
> > Pras.
> > On Mar 9, 4:14 pm, Singpolyma <singpol...@gmail.com> wrote:
> > > Big thanks to MT guys for most of the YAML (added last.fm stream,
> > > edited flickr and youtube to display thumbnails) and all of the CSS/
> > > icons and inspiration!
> > > I hereby dual-license this plugin MIT and BSD (or compatible).
> > > And, fancy de-duping!
> > > Any scrapers that use HTML will not work. These seem to be for more
> > > obscure sites.
> > > Digg seems to block the wp_remote_fopen user agent. Blah.
> > > To install, just untar in plugins/
> > > Go to Users > Action Stream
> > > If you have a url(s) (from standard or diso-profile enhanced profile)
> > > that match a supported service, they are added automagically. You can
> > > add more.
> > > A preview of you actionstream is shown right on the page.
> > > To add elsewhere the template tag is actionstream_render(); (you
> > > can pass an optional userid or user name, and number of items to
> > > display, default 10)
> > > Enjoy!
> > > On Mar 8, 7:19 pm, "Stephen Paul Weber" <singpol...@gmail.com> wrote:
> > > > Not yet -- right now it doesn't even cache the data -- WP integration
> > > > is the next step
> > > > On Sat, Mar 8, 2008 at 4:46 PM, Steve Ivy <steve...@gmail.com> wrote:
> > > > > Wow, Stephen, this is great! I wish I had half your time for this
> > > > > stuff. :-) Good work. Is this a WP plugin yet?
> > > > > On Sat, Mar 8, 2008 at 2:06 PM, Singpolyma <singpol...@gmail.com> wrote:
> > > > > > I've knocked up a basic implementation of action streams based on the
> > > > > > MT YAML file and a PHP YAML parser.
> > > > > > I supports the XPATH and ATOM stuff, but not CSS selectors, etc, since
> > > > > > I don't know of a PHP library for that. All this code does is take an
> > > > > > array (hard-coded just now) of service => username pairs, and extract
> > > > > > the data. Then it iterpolates it using the HTML template from the
> > > > > > YAML. Small piece of code suddenly has lots of services it can handle!
> Big thanks to MT guys for most of the YAML (added last.fm stream,
> edited flickr and youtube to display thumbnails) and all of the CSS/
> icons and inspiration!
> I hereby dual-license this plugin MIT and BSD (or compatible).
> And, fancy de-duping!
> Any scrapers that use HTML will not work. These seem to be for more
> obscure sites.
> Digg seems to block the wp_remote_fopen user agent. Blah.
> To install, just untar in plugins/
> Go to Users > Action Stream
> If you have a url(s) (from standard or diso-profile enhanced profile)
> that match a supported service, they are added automagically. You can
> add more.
> A preview of you actionstream is shown right on the page.
> To add elsewhere the template tag is actionstream_render(); (you
> can pass an optional userid or user name, and number of items to
> display, default 10)
> Enjoy!
> On Mar 8, 7:19 pm, "Stephen Paul Weber" <singpol...@gmail.com> wrote:
> > Not yet -- right now it doesn't even cache the data -- WP integration
> > is the next step
> > On Sat, Mar 8, 2008 at 4:46 PM, Steve Ivy <steve...@gmail.com> wrote:
> > > Wow, Stephen, this is great! I wish I had half your time for this
> > > stuff. :-) Good work. Is this a WP plugin yet?
> > > On Sat, Mar 8, 2008 at 2:06 PM, Singpolyma <singpol...@gmail.com> wrote:
> > > > I've knocked up a basic implementation of action streams based on the
> > > > MT YAML file and a PHP YAML parser.
> > > > I supports the XPATH and ATOM stuff, but not CSS selectors, etc, since
> > > > I don't know of a PHP library for that. All this code does is take an
> > > > array (hard-coded just now) of service => username pairs, and extract
> > > > the data. Then it iterpolates it using the HTML template from the
> > > > YAML. Small piece of code suddenly has lots of services it can handle!