Skip to Content

Claudio Cicali – Web Developer and Solution Architect

Blog

Ultimi miei 3 articoli su Edit di HTML.it

How to export your friendfeed stream (posts and comments)

I just wrote a script to easily download your FULL friendfeed stream. I mean: every post with comments, likes and even images and/or files. Enough for the good news: the bad news is that this a PHP command line script and you have to know how to run it. On a recent  OSX or Linux environment you should be ready to go. For Windows-ers it could be a little more difficult. Sorry.

Anyway, here is the features list:

  • can fetch a private stream, giving your remote key
  • locally downloads images and files (detects already downloaded things)
  • upon subsequent runs, it tries to get only the newly added posts
  • the output file is JSON
  • it scales well!
  • it’s free software (MIT license)

Download the scripts from Github (the link points to the project page, where you can read the README too. In this case you’re interested to the ffexp.php script).

You then may run it like:

php ffexp.php somefilename.json

As you may infer from the output file extension, the output is plain good JSON. This format is very handy for whatever thing you may need to do with the export file. But this is up to you (or your programmer friend).

As an example of JSON postprocessor I also wrote a converter that given your export file will render a fully functional HTML file, looking just like a Friendfeed page. It also automatically embeds the necessary JavaScript, CSS and even icon images. Download the ffexp2html from Github, open it, read the fine documentation and run it like:

php ffexp2html.php somefilename.json > somefilename.html

Now you can open the somefile.html file with your browser (no internet connection needed). You may find a generated output here.

Limits? Yes there are:

  • No download of your DMs (don’t know exactly why, maybe a limit of the API. But I don’t care)
  • You can download even entire rooms (just use the room name as the username), but it seems that there is a limit of how back you can go. Very high, but it exists.

Convert Delicious bookmarks to CSV

Following the news that the Delicious social bookmarking service will soon be dismissed by Yahoo!, people started wondering which other service could they use in its place and how to better export their delicious bookmarks. This post is not yet another list of sites, but I’d try to help to better manage the exodus and even gain something from this deliciousastrous.

I wrote a little script in PHP that converts your bookmarks file exported from Delicious in some other formats. The script, if you’re in the mood, is even easily extensibile if you provide it another “driver” to convert in another format (you write it and then plug it into the script. Pretty straightforward).

The script is ready to be used if you need to convert the file in CSV.

Run it like this:

php deliconv.php delicious_export.html > delicious_export.csv

Another idea on how to use the script would be to check every URL for its existance. It’s a pretty easy task if you know how to use the curl extension. I’ll leave it as an exercise for the reader :)

So, if know how to run PHP from the command line, grab the script here (remove the .txt extension).

There is also a Delicious XML exporter, out there.

Update: my friend Nicola D’Agostino has collected some other useful informations and tricks on the matter.



La festa del tartufo a San Miniato

Questo post vuol essere contemporaneamente tre cose: un documento di denuncia, un atto d’amore e uno spot pubblicitario. Il prossimo fine settimana (quello del 13/14 novembre 2010) e per i due fine settimana successivi, si terrà a San Miniato (Pisa) la quarantesima edizione della Mostra Mercato del Tartufo (no WP link, sorry). San Miniato è la città dove sono cresciuto e, inutile dirlo, mi sta a cuore e la amo – come sa bene chi mi frequenta. San Miniato (mappa Google) – detta anche la città delle venti miglia per la sua quasi equidistanza, nel centro della Toscana, da Pisa, Firenze, Lucca, Pistoia e il senese – è un territorio ricco di colline e di campagne fiorenti ma come se non bastasse la natura ne ha fatto anche il ricettacolo per uno dei suoi frutti più preziosi: il tartufo bianco. Questa ricchezza ha sempre messo la città in antagonismo con Alba per il primato italiano sulla produzione del mitico fungo e da molti anni si tiene questa mostra/mercato/sagra per celebrarlo.

La sagra non è solo un’occasione rara per vedere da vicino, assaggiare e magari (beati voi) comprare il tartufo, ma ci dà anche l’occasione per incontrare le cose più preziose (e gustose) offerte dalla toscana in autunno: parlo dell’olio nuovo, dei formaggi, dei salumi e del vino giovane. Da pochi anni, poi, nel periodo della festa si uniscono nel paese anche altre realtà gastronomiche da altre regioni italiane, fenomeno che trasforma per qualche settimana San Miniato in una vera e propria cittadella del gusto. Inutile dire che i buoni ristoranti della zona fanno poi a gara per vendere l’offerta migliore in fatto di prelibatezze locali.

San Miniato si trova in cima ad una collina e durante la festa il traffico è ovviamente bloccato in valle. Il comune offre un servizio di navetta gratuita.

Quello che mi brucia e mi fa arrabbiare è che di tutto questo in rete non si trova niente. Nulla. Un articoletto come questo non lo troverete… troverete magari, conoscendo già la festa e la città, qualcosa di vecchio o stantio (i primi hit sui motori di ricerca rigurdano la festa dell’anno scorso) e, se vi va veramente bene, riuscirete persino a sapere quali siano le date esatte. Una vergogna assoluta, non scusabile. Certo questo post non cambierà niente, ma se soltanto riuscisse a scavalcare anche di una sola posizione una di quelle odiose e terribile paginazze fatte con Word con dentro soltanto il link “Entra” e nessuna informazione (né tantomeno un indirizzo email), beh, allora potrò capire di aver fatto una cosa per la mia adorata città.

Se volete sapere qualcosa di più, ovviamente, non esitate a scrivermi: inutile cercare altrove altri indirizzi di posta elettronica :(

Esiste il gruppo Facebook della manifestazione.

Altra segnalazione su GoNews.


Video: integrare Twitter con Drupal 6

In questo video presento l’installazione e la configurazione del modulo OAuth e Twitter all’interno di una fresca installazione di Drupal 6. Enjoy!

Integrare Twitter con Drupal 6 from Claudio Cicali on Vimeo.


I contenuti di questo sito sono distribuiti con una licenza Creative Commons 2.5 eccetto dove diversamente specificato. Tema WordPress sviluppato da Claudio Cicali; icone del set famfamfam silk e komodomedia. P.IVA: 01712500501

© 2005-2012
Claudio Cicali